.treatments h1 {
    padding: 50px 0px 30px;
    font-size: 36px;
    text-align: center;
    font-weight: 300;
}
.treatments h2 {
    text-align: center;
    color: #034ea1;
    padding-bottom: 30px;
    font-weight: 300;
    font-size: 30px;
}

/* Carousel Styles */
.carousel {
    padding: 5px 60px;
    overflow: hidden;
    position: sticky;
    top: 132px;
    z-index: 100;
    margin-bottom: 40px;
}

.carousel-wrapper {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: #fff;
    justify-content: space-around;
}

.carousel-item {
    flex: 0 0 auto;
    margin: 0 8px;
}
.carousel-item:first-child {
    margin-left: 0;
}
.carousel-item:last-child {
    margin-right: 0;
}

.carousel-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #034ea1;
    background-color: white;
    color: #034ea1;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-button.active {
    background-color: #1e4d92;
    color: #fff;
    border-color: #1e4d92;
}

.carousel-button:hover:not(.active) {
    border-color: #00b7ac;
    color: #00b7ac;
}

.nav-button {
    color: #034ea1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 25px;
}

.nav-prev {
    left: 10px;
}

.nav-next {
    right: 10px;
}
.accordion-header {
    padding: 15px 0px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h2 {
    font-size: 24px;
    color: rgba(128, 133, 138, 1);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.accordion-content {
    display: none;
    padding: 0;
}

.accordion-content.active {
    display: block;
}

.medical-conditions {
    background: #fff;
    border-radius: 10px;
}

.medical-link {
    color: #034ea1;
    font-size: 18px;
    line-height: 1.5;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
    display: block;
    transition: text-decoration-color 0.3s ease, text-underline-offset 0.3s ease;
    /* display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; */
    padding: 8px 0;
}
.medical-link:not(:last-child){
    margin-bottom: 12px;
}
.medical-link:hover {
    color: #00b7ac;
    text-decoration-color: transparent;
    text-underline-offset: 8px;
}
.accordion {
    padding-bottom: 60px;
}
.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .medical-conditions {
        grid-template-columns: repeat(2, 1fr);
    }
    .accordion-header {
      padding: 15px 15px;
  }
  .medical-conditions {
    grid-template-columns: 1fr;
    gap: 0;
}
}
@media (max-width: 499px) {
    .carousel {
        top: 75px;
    }
    .carousel-button {
        width: 35px;
        height: 35px;
    }
    .carousel-item {
        margin: 0px 15px;
    }
    .treatments h1{
      font-size: 26px;
      padding: 25px 0px 25px;
    }
    .treatments h2, .accordion-header h2 {
      font-size: 20px;
    }
    .medical-link{
        font-size: 16px;
    }
    .carousel {
        padding: 5px 50px;
    }
}
@media (max-width: 375px) {
    .carousel {
        padding: 5px 55px;
    }
}
