/* Treatments Section Styles */
.treatments-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    background-image: radial-gradient(#00B050 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-position: 0 0;
    background-color: rgba(248, 249, 250, 0.95);
    background-blend-mode: overlay;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    color: #00B050;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 1px;
}

.section-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, #00B050, transparent);
    opacity: 0.3;
}

/* Flex Layout for Explicit Columns */
.treatments-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.treatment-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    /* Prevents flex items from overflowing */
}

/* Card Styles */
.treatment-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.treatment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 176, 80, 0.1);
    border-color: #e0f2f1;
}

.treatment-card.active {
    box-shadow: 0 15px 40px rgba(0, 176, 80, 0.15);
    border-color: #00B050;
    transform: translateY(-5px);
}

/* Card Header (Always Visible) */
.card-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Ensure proper spacing */
    gap: 15px;
    cursor: pointer;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

/* Card Icon */
.card-icon {
    width: 50px;
    height: 50px;
    background-color: #e8f5e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin: 0;
    /* Ensure no margin interferes */
}

.card-icon i {
    font-size: 20px;
    color: #00B050;
    line-height: 1;
    /* Fix vertical alignment of icon font */
    display: block;
}

.treatment-card:hover .card-icon,
.treatment-card.active .card-icon {
    background-color: #00B050;
}

.treatment-card:hover .card-icon i,
.treatment-card.active .card-icon i {
    color: #fff;
}

/* Card Title */
.card-title {
    font-size: 18px;
    color: #333;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    line-height: 1.4;
    /* Slightly increased for better readability */
    display: flex;
    align-items: center;
    /* Ensure text is vertically centered if it has height */
    min-height: 50px;
    /* Match icon height to ensure alignment */
}

/* Expand Icon */
.expand-icon {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
}

.treatment-card.active .expand-icon {
    transform: rotate(180deg);
    color: #00B050;
}

/* Card Content (Hidden by default) */
.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
}

.treatment-card.active .card-content {
    max-height: 1000px;
    /* Large enough value to fit content */
    border-top: 1px solid #f0f0f0;
}

/* Treatment List */
.treatment-list {
    list-style: none;
    padding: 20px 25px 30px;
    margin: 0;
}

.treatment-list li {
    font-size: 15px;
    color: #555;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px dashed #eee;
    transition: color 0.2s ease;
}

.treatment-list li:last-child {
    border-bottom: none;
}

.treatment-list li::before {
    content: '\f00c';
    /* FontAwesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 12px;
    color: #00B050;
    opacity: 0.7;
}

.treatment-list li:hover {
    color: #00B050;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .treatments-grid {
        flex-wrap: wrap;
    }

    .treatment-column {
        flex: 1 1 45%;
        /* 2 columns on tablet */
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .treatments-section {
        padding: 60px 0;
    }

    .treatments-grid {
        flex-direction: column;
    }

    .treatment-column {
        flex: 1 1 100%;
        /* 1 column on mobile */
        width: 100%;
    }

    .section-title {
        font-size: 24px;
    }

    .card-header {
        padding: 15px;
        gap: 12px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .card-icon i {
        font-size: 16px;
    }

    .card-title {
        font-size: 15px;
        min-height: 40px;
        /* Match mobile icon height */
    }

    .expand-icon {
        font-size: 12px;
    }
}