.container-chastudio {
  max-width: 1730px;
  margin: 0 auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/* Updated class names to match HTML structure */
.slider-header {
  margin-bottom: 2rem;
  /*display: flex;*/
  /*justify-content: space-between;*/
  /*align-items: flex-start;
  gap: 40px;*/
}

.slider-header.name{
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.header-content {
  flex: 1;
}

.cha-studio.title {
    font-size: 32px !important;
    color: #000000 !important;
    font-weight: normal !important;
}
.cha-studio.title.name {
    font-size: 38px  !important;
    margin-bottom: 1rem  !important;
}
.label-subtitle {
    background: #e6e2e2;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 13px;
    color: #000;
}

.subtitle {
    font-size: 14px !important;
    color: #616161 !important;
    line-height: 1.5 !important;
    width: 50% !important;
}
.subtitle.name {
     margin-top: 2rem  !important;
}
.slider-controls {
  display: flex;
  align-items: center;
  gap: 24px;
  /*margin-top: 64px;*/
  margin-top: -3.3rem;
  justify-content: flex-end;
}

.pagination {
  font-size: 16px;
  color: #000000;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.separator {
  color: #666666;
}

/* Updated progress bar to use continuous fill instead of segments */
.progress-bar-container {
  width: 500px;
  height: 2px;
  background-color: #e5e5e5;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #000000;
  width: 0%;
  transition: width 0.5s ease;
}

/* Added mobile progress bar positioning */
.progress-bar-bottom {
  display: none; /* Hidden on desktop */
}

.navigation-buttons {
  display: flex;
  gap: 12px;
}

.nav-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

/*.nav-button:hover:not(:disabled) {
  opacity: 0.7;
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}*/

/*.nav-button svg {
  width: 24px;
  height: 24px;
  stroke: #000000;
  stroke-width: 2;
}*/

/* Updated slider wrapper to match HTML */
.slider-wrapper {
  width: 100%;
  max-width: 1730px;
  overflow: hidden;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

/* Keep slides at fixed 274px on all screen sizes */
.slide {
  flex-shrink: 0;
  width: 274px;
  height: 274px;
  margin-right: 15.2px;
}

.slide:last-child {
  margin-right: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f5f5f5;
}

/* Responsive styles - adjust container width to show fewer slides */
/* Added new 1440px breakpoint for 5 visible slides */
@media (max-width: 1730px) {
  .slider-wrapper {
    max-width: 100%;
  }

  .slide {
    width: calc((100vw - 106px - 15.2px) / 5);
    height: calc((100vw - 106px - 15.2px) / 5);
  }

  .slide:not(:last-child) {
    margin-right: 15.2px;
  }
}

@media (max-width: 1280px) {
   .progress-bar-container {
       width: 240px;
   }
}
@media (max-width: 1024px) {
  .slider-wrapper {
    max-width: 100%;
  }
  .subtitle {
    width: 100% !important;
  }
  .slide {
    width: calc((100vw - 75px - 15.2px) / 5);
    height: calc((100vw - 75px - 15.2px) / 5);
  }

  .slide:not(:last-child) {
    margin-right: 15.2px;
  }

  .slider-header.name {
    flex-direction: column;
    gap: 20px;
  }
  .button-controls {
    margin-top: 0;
  }
  .slider-controls {
    align-self: flex-end;
    margin-top: 0;
  }

}

@media (max-width: 1023px) {
  .title {
    font-size: 24px;
  }

  /* Hide pagination and navigation on mobile */
  .pagination {
    display: none;
  }

  .navigation-buttons {
    display: none;
  }

  /* Hide top progress bar and show bottom one on mobile */
  .progress-bar-container {
    display: none;
  }

  /* Updated mobile progress bar to use continuous fill */
  .progress-bar-bottom {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #e5e5e5;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    background-color: #000000;
    width: 0%;
    transition: width 0.5s ease;
  }

  .slider-controls {
    gap: 16px;
  }

  /* Scale down slides for tablets - 3 visible slides */
  .slider-wrapper {
    max-width: 100%;
  }

  /* Updated padding from 80px to 40px for small tablets */
  .slide {
    width: calc((100vw - 75px - 30.4px) / 4); /* 3 slides with gaps and padding */
    height: calc((100vw - 75px - 30.4px) / 4);
  }

  .slide:not(:last-child) {
    margin-right: 15.2px;
  }
}

@media (max-width: 768px) {
   .subtitle {
    width: 100%;
   }
}

@media (max-width: 600px) {
  /* Scale down slides for tablets - 3 visible slides */
  .slider-wrapper {
    max-width: 100%;
  }

  /* Updated padding from 80px to 40px for small tablets */
  .slide {
    width: calc((100vw - 32px - 30.4px) / 3); /* 3 slides with gaps and padding */
    height: calc((100vw - 32px - 30.4px) / 3);
  }

  .slide:not(:last-child) {
    margin-right: 15.2px;
  }
}


@media (max-width: 480px) {
  /* Removed pagination and progress bar width styles as they're hidden */

  /* Scale down slides for mobile - 2 visible slides */
  .slider-wrapper {
    max-width: 100%;
  }

  .slide {
    width: calc((100vw - 40px - 15.2px) / 2); /* 2 slides with gap and padding */
    height: calc((100vw - 40px - 15.2px) / 2);
  }

  .slide:not(:last-child) {
    margin-right: 15.2px;
  }
}
