/* Banner Styling */

.banner-treatment {
  background: 
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
    url("/images/join.jpg") center/cover no-repeat;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  margin-top: 70px;
}

.banner-content h1 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.banner-content p {
  color: #e5e7eb;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Treatment Section Styling */
.treatments-section {
    padding: 4rem 4rem 1rem 4rem;
    background-color: #f5f3f2;
}

.treatment-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    margin: 0 1rem;
    border: none;
    background-color: #59aeb0;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.category-btn:hover {
    background-color: #ca733f;
}

.treatment-item {
    display: flex;
    padding-bottom: 4rem;
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease-in, transform 0.5s ease-in; /* Smooth transition */
    transform: translateY(0);
}

.treatment-item.hide {
    opacity: 0; /* Fade out when hidden */
    transform: translateY(20px); /* Slightly move down when hidden */
    pointer-events: none; /* Avoid interaction when hidden */
}

.treatment-image {
    flex: 1;
    max-width: 50%;
    position: relative;
}

.treatment-image img {
    width: 100%; /* Make image responsive */
    height: auto; /* Maintain aspect ratio */
    max-height: 600px;
    object-fit: cover; /* Cover the area without distortion */
    border-radius: 8px; /* Optional: for rounded corners */
}

.treatment-details {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    margin-left: -10%; /* Overlapping effect */
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.treatment-title {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
}

.treatment-info .info-item {
    margin-bottom: 1rem;
}

.info-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item {
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}

.info-content {
    margin-bottom: 1.5rem;
}

.info-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-title:hover {
    color: #ca733f;
}

.toggle-arrow {
    font-size: 1.5rem; /* Slightly larger font size for visibility */
    transition: transform 0.3s ease;
    margin-left: 0.5rem; /* Add some space between title and arrow */
    color: #ca733f;
}

.info-content {
    display: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid #ca733f;
}

.info-content ol {
    padding-left: 1.5rem; /* Add padding to the left for better readability */
}

.info-content li {
    margin: 0.5rem 0; /* Add some space between list items */
}

/* Show info content when clicked */
.info-item.active .info-content {
    display: block;
}

.treatment-appointment {
    margin-top: 2rem;
    align-items: flex-end;
}

.treatment-appointment a{
    text-decoration: none;
    background-color: #59aeb0;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
}

.treatment-appointment a:hover {
    background-color: #ca733f;
}

.eyebrow { letter-spacing: 1px; color: #59aeb0; font-size: 16px; font-weight: 500; }

/* Responsive Design */
@media (max-width: 768px) {

    .banner-treatment h1 {
        font-size: 2rem;
    }

    .banner-treatment p {
        font-size: 1.2rem;
    }

    .banner-treatment {
        height: 30vh;
    }

    .treatments-section {
        padding: 3rem 0 0 0;
    }

    .mobile-view {
        display: flex;
        justify-content: space-between;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .treatment-image img {
        border-radius: 0;
    }

    .treatment-item {
        flex-direction: column;
    }

    .treatment-image,
    .treatment-details {
        max-width: 100%;
        margin-left: 0;
    }

    .treatment-details {
        margin: -50% 2rem 0 2rem;
    }

    .treatment-appointment {
        width: 100%;
        text-align: center;
    }

    .treatment-appointment a {
        display: inline-block;
        width: 100%;
    }

    /* Dropdown Styling */
    .category-dropdown {
        border: 1px solid #ccc; /* Light border */
        padding: 0 1rem;
    }

    /* Optional: Hover Effect */
    .category-dropdown:hover {
        border-color: #ca733f; /* Highlight border on hover */
    }

    /* Focused State (when dropdown is clicked) */
    .category-dropdown:focus {
        outline: none;
        border-color: #ca733f; /* Green border on focus */
    }

    /* Optional: Styling for the Options */
    .category-dropdown option {
        padding: 10px; /* Padding inside options */
        color: #333; /* Text color */
        background-color: #fff; /* Background color */
    }

    .category-dropdown option:hover{
        background-color: #ca733f;
    }
}