.treatment-header {
  text-align: center;
}
.treatment-title {
  font-size: 48px;
  font-weight: 500;
  color: #005e9a;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5%;
}
.treatment-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #005e9a;
  text-transform: uppercase;
}
.treatment-content {
  display: flex;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
}
.treatment-sidebar {
  width: 282px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.treatment-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 40px;
}
.treatment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-transform: uppercase;
  cursor: pointer;
}
.treatment-item:hover {
  background: linear-gradient(90deg, #dff1ff80 0%, #fde6e880 100%);
}
.treatment-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
}
.treatment-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
  justify-items: center;
  width: 100% ;
}
.treatment-image-item {
  width: 275px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.treatment-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.treatment-more-btn {
  padding: 12px 20px;
  border: 1px solid transparent;
  color: #055587;
  font-family: Inter;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  text-transform: uppercase;
  transition: background-position 0.3s ease, color 0.3s ease;
  background-size: 200% auto;
  text-decoration: none;
  background: linear-gradient(rgb(251, 253, 255), rgb(252, 254, 255))
      padding-box,
    linear-gradient(to right, #6282b0, #ca2c85) border-box;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.treatment-more-btn:hover {
  background: linear-gradient(90deg, #dff1ff 0%, #fde6e8 100%);
  color: #ca2c85;
}

.treatment-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.treatment-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  max-width: 574px;
  width: 574px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  animation: modalPop 0.25s;
}
@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.treatment-modal-close {
  position: absolute;
  top: 0px;
  right: 7px;
  font-size: 32px;
  color: #ca2c85;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.treatment-modal-close:hover {
  color: #005e9a;
}
.treatment-modal-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.treatment-modal-image-wrap {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
img-comparison-slider {
  --divider-width: 2px;
  --divider-color: #fff;
  --default-handle-opacity: 0.95;
  --default-handle-color: #fff;
  width: 100%;
  height: 526px;
  border-radius: 4px;
  overflow: hidden;
}

#modal-img-before,
#modal-img-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.treatment-modal-image-wrap img {
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
.treatment-modal-info {
  flex: 1;
  padding: 24px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.treatment-modal-title {
  font-size: 28px;
  font-weight: 700;
  color: #005e9a;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.treatment-modal-desc {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .treatment-modal-body {
    flex-direction: column;
  }
  .treatment-modal-image-wrap {
    min-width: 100%;
    max-width: 100%;
  }
  .treatment-modal-content {
    width: 80%;
  }
  img-comparison-slider {
    height: 386px !important;
  }
  .treatment-item span {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .treatment-content {
    flex-direction: column;
    gap: 32px;
  }
  .treatment-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .treatment-sidebar-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .treatment-sidebar-item {
    min-width: 120px;
    text-align: center;
  }
  .treatment-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .treatment-image-item {
    width: 100%;
  }
}
@media (max-width: 600px) {
   .treatment-image-grid {
    margin-bottom: 40px;
   }
  .treatment-result-section {
    padding: 0 8px 0 8px;
  }
  .treatment-title {
    font-size: 28px;
  }
  .treatment-subtitle {
    font-size: 18px;
  }
  .treatment-content {
    gap: 16px;
  }
  .treatment-sidebar {
    gap: 8px;
  }
  .treatment-sidebar-list {
    gap: 8px;
  }
  .treatment-sidebar-item {
    font-size: 14px;
    padding: 8px 12px;
    min-width: 90px;
  }
  .treatment-image-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .treatment-main {
    padding: 0 4px;
  }
}
@media (max-width: 400px) {
  .treatment-title {
    font-size: 20px;
  }
  .treatment-subtitle {
    font-size: 14px;
  }
  .treatment-sidebar-item {
    font-size: 12px;
    padding: 6px 6px;
    min-width: 70px;
  }
}

.body-modal-open {
  overflow: hidden !important;
}
.treatment-more-btn i {
  margin-left: 12px;
  font-size: 1.2em;
  vertical-align: middle;
  transition: transform 0.2s;
}

.treatment-more-btn:hover i {
  transform: translateX(4px);
}

.treatment-item .dropdown-arrow {
  margin-left: 8px;
  transition: transform 0.2s;
  transform: rotate(-90deg);
}

.treatment-sidebar-item.open .treatment-item .dropdown-arrow,
.treatment-sidebar-item.active .treatment-item .dropdown-arrow {
  transform: rotate(0deg);
}

.treatment-sidebar-dropdown {
  display: none;
  width: 100%;
  padding-left: 30px;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}
.treatment-sidebar-item.open > .treatment-sidebar-dropdown {
  display: flex;
}

.treatment-item {
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  font-size: 18px;
  font-weight: 500;
  color: #005e9a;
  text-transform: uppercase;
}

.treatment-item.active {
  background: linear-gradient(90deg, #dff1ff80 0%, #fde6e880 100%);
  border: 1.5px solid #b9e4fe;
}

.treatment-sidebar-item {
  display: flex;
  flex-direction: column;
}
.treatment-sidebar-subitem {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  color: #005e9a;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.treatment-sidebar-subitem.active,
.treatment-sidebar-subitem:hover {
  background: linear-gradient(114.95deg, #dff1ff 18.25%, #fde6e8 81.75%);
  border: 1.5px solid #b9e4fe;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}
.treatment-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.treatment-modal-meta strong {
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #0a4670;
  margin-right: 5px;
}
.treatment-modal-meta {
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #0a9fed;
}

.modal-nav-prev,
.modal-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
}

.modal-nav-prev {
  left: 120px;
}

.modal-nav-next {
  right: 120px;
}

.modal-nav-prev:disabled,
.modal-nav-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.modal-nav-prev img,
.modal-nav-next img {
  width: 48px;
  height: 48px;
}

@media screen and (max-width: 962px) {
  .modal-nav-prev {
    left: 20px;
  }

  .modal-nav-next {
    right: 20px;
  }
}
/*  */
@media screen and (max-width: 1024px) {
  .treatment-sidebar-list {
    flex-direction: column;
    width: 80%;
    gap: 0px;
  }
  .treatment-sidebar-subitem {
    text-align: left;
    font-size: 14px;
  }
  .treatment-sidebar-dropdown {
    padding-left: 0;
  }
  .treatment-item .dropdown-arrow {
    transform: rotate(0deg);
  }
  .treatment-sidebar-item.open .treatment-item .dropdown-arrow,
  .treatment-sidebar-item.active .treatment-item .dropdown-arrow {
    transform: rotate(180deg);
  }
}
@media screen and (max-width: 576px) {
  .treatment-sidebar-list {
    width: 95%;
  }
}
