/* =============================================
   STUDY CASE SECTION
   ============================================= */

.studycase {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 55px 55px;  
  
  padding: 80px 0 60px;
}

/* Header */
.studycase__header {
  text-align: center;
  margin-bottom: 50px;
}

.studycase__title {
  font-family: 'Poppins', sans-serif;
  font-size: 90px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 3px;
}

.studycase__title--black  { color: #111; display: block; }
.studycase__title--purple { color: var(--purple); display: block; }

/* Slider area */
.studycase__slider-area {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0px;
}

/* Arrow */

.studycase__arrow {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #bbb;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
  padding: 0;
}

.studycase__arrow:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: #fff;
}

.studycase__arrow:hover { color: var(--purple); }

/* Track */
.studycase__track {
  flex: 1;
  overflow: hidden;
  cursor: grab;
}

.studycase__track:active {
  cursor: grabbing;
}

/* Slide inner — semua slide jejer horizontal */
.studycase__track-inner {
  display: flex;
  will-change: transform;
  gap: 28px;
}

/* Slide */
.studycase__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: stretch;
  gap: 28px;
}

/* LEFT: 3 cards stacked */
.studycase__left {
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cards */
.sc-card {
  border-radius: 14px;
  padding: 20px 25px;
}

.sc-card--purple {
  background: var(--purple);
  text-align: center;
  z-index: 2;
}

.sc-card__name {
  font-family: 'Poppins', sans-serif;
  font-size: 35px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.sc-card__desc {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
  text-align: center;
}

.sc-card--dark {
  background: #1a1a1a;
  z-index: 1;
  margin-top:-30px;
  width: 96%;
  margin-left:10px;
  padding: 55px 20px 35px 20px;
  text-align: center;
}

.sc-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center; /* tambahkan ini */
  margin-left:0;
}

.sc-metric__number {
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
}

.sc-metric__label {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}

.sc-card--lime {
  background: var(--lime);
  text-align: center;
  margin-top: 30px;
}

.sc-card__cta-label {
  font-size: 25px;
  font-weight: 600;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.4;
}

.sc-card__buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* RIGHT: image */
.studycase__right {
  flex: 1;
  border-radius: 30px;
  overflow: hidden;
}

.studycase__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dots */
.studycase__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.studycase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.studycase__dot.active {
  background: #555;
  transform: scale(1.3);
}

/* Footer CTA */
.studycase__footer {
  text-align: center;
  margin-top: 40px;
}

.studycase__btn-all {
  display: inline-block;
  background: transparent;
  border: 2.5px solid #111;
  color: #111;
  font-size: 20px;
  font-weight: 600;
  padding: 14px 48px;
  border-radius: 40px;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.studycase__btn-all:hover {
  background: #111;
  color: #fff;
}

/* =============================================
   RESPONSIVE – STUDY CASE
   ============================================= */

/* ===== TABLET 768px ===== */
@media (max-width: 768px) {

  .studycase { padding: 60px 0 40px; }

  .studycase__title { font-size: 64px; letter-spacing: 1px; }

  .studycase__slider-area {
    gap: 6px;
    padding: 0 8px;
  }

  .studycase__arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  /* Slide stack vertikal */
  .studycase__slide {
    flex-direction: column;
    gap: 0;
  }

  .studycase__left {
    flex: none;
    width: 100%;
  }

  /* Reset overlap card hitam */
  .sc-card--dark {
    margin-top: -26px;
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px 24px;
  }

  .sc-card--lime {
    margin-top: 0;
  }

  .sc-metric { margin-left: 0; }

  .sc-card__name   { font-size: 26px; }
  .sc-card__desc   { font-size: 16px; }
  .sc-metric__number { font-size: 40px; }
  .sc-metric__label  { font-size: 16px; }
  .sc-card__cta-label { font-size: 18px; }

  /* Foto kanan */
  .studycase__right {
    flex: none;
    width: 100%;
    height: 240px;
    border-radius: 14px;
    margin-top: 16px;
  }

  .studycase__btn-all {
    font-size: 16px;
    padding: 12px 36px;
  }
}

/* ===== MOBILE 480px ===== */
@media (max-width: 480px) {

  .studycase { padding: 48px 0 32px; }

  .studycase__title { font-size: 48px; }

  .studycase__slider-area { padding: 0 4px; }

  .studycase__arrow {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .sc-card { padding: 16px 18px; }

  .sc-card__name     { font-size: 22px; }
  .sc-card__desc     { font-size: 14px; }
  .sc-metric__number { font-size: 34px; }
  .sc-metric__label  { font-size: 14px; }
  .sc-card__cta-label { font-size: 16px; }

  .sc-card__buttons .btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .studycase__right { height: 200px; }

  .studycase__btn-all {
    font-size: 14px;
    padding: 11px 28px;
  }
  
  .sc-card--dark {
    margin-top: -26px;
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 16px 20px;
  }  
}
