﻿.medical-faq .accordion-button {
    padding-bottom: 10px;
}

.medical-faq ol, .medical-faq ul {
    padding-left: 1rem;
}

.medical-faq .accordion-body {
    padding-top: 0;
}

@media (max-width:768px) {
    .same-table {
        width: 100% !important;
    }
}

.same-table {
    width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 20px;
}

td {
    border: 1px solid black;
    text-align: start;
}

ul {
    list-style-type: disc;
}
/* 1. Base Styles for items */
.medical-faq .accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0 !important;
}

    /* 2. Style the ODD items (Blue background) */
    .medical-faq .accordion-item:nth-child(odd) {
        background-color: #f2fbfe;
    }

        /* 1. ODD ITEMS (Light Blue Background) */
        .medical-faq .accordion-item:nth-child(odd),
        .medical-faq .accordion-item:nth-child(odd) .accordion-button,
        .medical-faq .accordion-item:nth-child(odd) .accordion-body {
            background-color: #f2fbfe !important;
        }

    /* 2. EVEN ITEMS (White Background) */
    .medical-faq .accordion-item:nth-child(even),
    .medical-faq .accordion-item:nth-child(even) .accordion-button,
    .medical-faq .accordion-item:nth-child(even) .accordion-body {
        background-color: #ffffff !important;
    }

/* 3. HEADER TEXT COLOR (Always Blue) */
.medical-faq .accordion-button {
    color: var(--pantai-blue) !important;
    font-weight: bold; /* Optional: makes the blue header pop */
}

/* 4. BODY TEXT COLOR (Always Grey - no matter if odd or even) */
.medical-faq .accordion-body,
.medical-faq .accordion-body p,
.medical-faq .accordion-body span {
    color: #6d6f71 !important;
}

/* 5. Fix for Expanded State Background */
/* This prevents Bootstrap from adding its own default blue tint when open */
.medical-faq .accordion-button:not(.collapsed) {
    background-color: transparent !important;
    box-shadow: none;
}

.accordion-body {
    color: #6d6f71;
}
/* 4. Fix Bootstrap's "Active" state */
/* By default, Bootstrap adds a blue tint to expanded buttons. This overrides it. */
.medical-faq .accordion-button:not(.collapsed) {
    background-color: transparent !important; /* Lets the item/row color show through */
    color: var(--pantai-blue);
    box-shadow: none;
}

/* 5. Text color inside the body */
.medical-faq .accordion-body p {
    color: #6d6f71;
}

.table-custom,
.table-custom td,
.table-custom th {
    border: none !important;
    color: #6d6f71;
}

    .table-custom td:first-child {
        text-align: left !important;
    }

    /* Align the second column to the center */
    .table-custom th:first-child,
    .table-custom td:last-child,
    .table-custom th:last-child {
        vertical-align: middle;
        text-align: center !important;
    }
    /* 2. Set White for Odd rows */
    .table-custom tbody tr:nth-child(odd) td {
        background-color: #ffffff !important;
    }

    /* 3. Set Blue for Even rows */
    .table-custom tbody tr:nth-child(even) td {
        background-color: #f2fbfe !important; /* Light Bootstrap Blue */
    }

    /* 4. The Vertical Line between Column 1 and 2 */
    .table-custom td:first-child,
    .table-custom th:first-child {
        border-right: 1px solid #307fde !important; /* Solid black vertical line */
    }

.medical-faq .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056b3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* Change arrow color when expanded (open) */
.medical-faq .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230056b3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

