/* ========================================
   Section 1: Basic Slider Section
   ======================================== */
.lab-slider-section {
  background-color: #e8f4f8;
  padding: 4rem 0;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.lab-slider-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.lab-slider-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* 동적 타이틀 스타일 */
#dynamic-title {
  position: relative;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#dynamic-title .title-main {
  width: 100%;
  text-align: center;
  opacity: 1;
  line-height: 1.4;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

#dynamic-title .title-alt {
  width: 100%;
  text-align: center;
  opacity: 1;
  line-height: 1.4;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

#dynamic-title .title-sub {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.5rem;
  opacity: 1;
  line-height: 1.4;
  width: 100%;
  white-space: nowrap;
}

/* 캐러셀 컨테이너 */
.lab-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.lab-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  gap: 0;
}

.lab-track.no-transition {
  transition: none !important;
}

.lab-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  width: 300px;
  flex: 0 0 300px;
  margin-right: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.lab-card:last-child {
  margin-right: 0;
}

.lab-card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  color: #e6eaed;
  text-shadow: none;
}

.lab-card-content {
  margin-top: 1rem;
  padding-top: 1rem;
}

.lab-card-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .basic-slider-section {
    padding: 3rem 0;
  }

  .basic-slider-title h2 {
    font-size: 2rem;
  }

  .basic-slider-title {
    margin-bottom: 2rem;
  }

  #dynamic-title {
    height: 8rem;
  }

  #dynamic-title .title-main {
    font-size: 1.8rem;
  }

  #dynamic-title .title-alt {
    font-size: 2rem;
  }

  #dynamic-title .title-sub {
    font-size: 1.4rem;
    margin-top: 0.4rem;
  }

  .basic-card {
    width: 280px;
    flex: 0 0 280px;
    padding: 1.5rem;
  }

  .basic-card-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .basic-slider-section {
    padding: 2rem 0;
  }

  .basic-slider-title h2 {
    font-size: 1.8rem;
  }

  .basic-slider-title {
    margin-bottom: 1.5rem;
  }

  #dynamic-title {
    height: 7rem;
  }

  #dynamic-title .title-main {
    font-size: 1.5rem;
  }

  #dynamic-title .title-alt {
    font-size: 1.6rem;
  }

  #dynamic-title .title-sub {
    font-size: 1.2rem;
    margin-top: 0.3rem;
  }

  .basic-card {
    width: 260px;
    flex: 0 0 260px;
    padding: 1.2rem;
  }

  .basic-card-number {
    font-size: 2rem;
    top: 1.2rem;
    right: 1.2rem;
  }
}
