.main-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  padding: 80px 0px 30px 0px;
  background: #ffffff;
  /*min-height: 700px;*/
  position: relative;
}

.left-panel {
  width: 30%;
  background: white;
  padding: 0px;
  height: fit-content;
}

.left-panel h3 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #202020;
  line-height: 1.2;
}

.left-panel p {
  font-size: 18px;
  color: #555;
  margin-bottom: 50px;
  line-height: 1.7;
  text-align: justify;
}

.nav-buttons {
  display: flex;
  flex-direction: row;
  gap: 25px;
  justify-content: left;
  margin-top: 155px;
}

.nav-buttons button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 20px;
}

.btn-prev {
  background: #e0e0e0;
  color: #666;
}

.btn-prev:hover {
  background: #F66E00;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(246, 110, 0, 0.3);
}

.btn-next {
  background: #e0e0e0;
  color: #666;
}

.btn-next:hover {
  background: #F66E00;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(246, 110, 0, 0.3);
}

.right-panel {
  /*flex: 1;*/
  max-width: 1200px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0px 0px 9px 1px rgb(206,206,206);
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  padding: 0 30px;
}

.carousel-header h3 {
  font-size: 24px;
  font-weight: bold;
  color: #202020;
  margin: 0;
}

.mode-buttons {
  display: flex;
  gap: 20px;
}

.mode-btn {
  padding: 12px 25px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: white;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.mode-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.steps-carousel {
  position: relative;
  display: flex;
  gap: 40px;
  overflow: visible;
  align-items: center;
  padding-left: 0;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card {
  min-width: 450px;
  background: white;
  border-radius: 25px;
  padding: 45px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.25;
  transform: scale(0.7);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.step-card:hover {
  opacity: 0.5;
  transform: scale(0.8);
}

.step-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  z-index: 10;
}

.step-card.active::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #F66E00, #ff8c42);
  border-radius: 29px;
  z-index: -1;
  opacity: 0.4;
}

.step-number {
  font-size: 30px;
  font-weight: 600;
  color: #202020;
  margin-bottom: 155px;
  font-family: 'Noto Sans TC', sans-serif;
}

.step-img {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orange-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(246, 110, 0, 0.3) 0%, rgba(246, 110, 0, 0.1) 100%);
  pointer-events: none;
}

.step-title {
  font-size: 22px;
  font-weight: bold;
  color: #F66E00;
  margin-bottom: 25px;
  line-height: 1.4;
}

.step-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin: 0;
  font-family: 'Noto Sans TC', sans-serif;
}

.bottom-btn {
  text-align: center;
  margin-top: 60px;
  padding: 0 30px;
  position: relative;
  z-index: 5;
}

.bottom-btn button {
  padding: 18px 50px;
  border: 2px solid #202020;
  border-radius: 35px;
  background: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.bottom-btn button:hover {
  background: #202020;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.step-card-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 15px 15px 15px 35px;
  min-width: 600px;
  max-width: 700px;
  min-height: 320px;
  margin: 0 auto;
  gap: 36px;
}

.step-info {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #F66E00;
  margin-bottom: 16px;
  font-family: 'Noto Sans TC', sans-serif;
}

.step-desc {
  font-size: 1.12rem !important;
  color: #555;
  line-height: 1.7;
  text-align: justify;
}

.step-img-rect {
  flex: 1;
  overflow: hidden;
  align-self: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
}

.step-img-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1400px) {
  .main-container {
    gap: 60px;
    padding: 60px 40px;
  }
}

@media (max-width: 1400px) {
  .left-panel {
    width: 350px;
    padding: 50px 40px;
  }
}

@media (max-width: 1400px) {
  .step-card {
    min-width: 400px;
    padding: 40px;
  }
}

@media (max-width: 1200px) {
  .main-container {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    padding: 50px 30px;
  }
}

@media (max-width: 1200px) {
  .left-panel {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 1200px) {
  .right-panel {
    width: 100%;
    max-width: 900px;
  }
}

@media (max-width: 1200px) {
  .steps-carousel {
    justify-content: center;
    overflow: hidden;
  }
}

@media (max-width: 1200px) {
  .step-card {
    min-width: 350px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 40px 20px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .left-panel {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .left-panel h3 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .left-panel p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .nav-buttons button {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .carousel-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .steps-carousel {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .step-card {
    min-width: auto;
    width: 100%;
    max-width: 400px;
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .step-card.active {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .bottom-btn {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .bottom-btn button {
    padding: 15px 40px;
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .step-card-flex {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
    padding: 30px 16px;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .step-img-rect {
    width: 100%;
    max-width: 320px;
    height: 180px;
    margin: 0 auto;
  }
}

