.policies-section {
    padding: 20px 20px; /* Adjust padding to left and right */
}

.policies-section div {
    color: #000;
    text-align: left; /* Center align the text */
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    /* line-height: 200%; */
    /* 35px */
    margin-bottom: 0px;
}

.policies-section .last-updated {
    margin-top: 20px;
}

.policies-section .description {
    text-align: center;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    color: rgba(14, 14, 14, 0.90);
}

.policies-section table {
    margin-bottom: 40px; /* Add margin-bottom for spacing */
}

.nav-tabs .nav-link {
    color: #505050;
    font-size: 1.25rem; /* 20px */
    font-weight: 500;
    padding: 10px 15px;
    background-color: transparent;
    border: none !important;  /* Add this */
    transition: none !important;  /* Add this */
}

.nav-tabs .nav-link.active {
    color: #0040c3;
    font-weight: bold;
    border: none;
    position: relative;
    background-color: transparent;
}

.nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0040c3;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.nav-tabs {
    border: none !important;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

/* Accordion styling to match FAQ page exactly */
.accordion-item {
    margin-bottom: 20px; /* Adds bottom margin to each accordion card */
    border-radius: 20px;
    color: #FFF;
    box-shadow: 0 4px 8px rgba(21, 21, 21, 0.1);
}

.accordion-button {
    background-color: #fff;
    color: #000;
    font-weight: 500;
    border-radius: 20px;
    height: 100px;
}

.accordion-item:first-of-type {
    border-radius: 20px;
}

.accordion-item:last-of-type {
    border-radius: 20px;
}

/* Apply border-radius to the first accordion button */
.accordion-item:first-of-type .accordion-button, .accordion-item:first-of-type .accordion-collapse.collapse:not(.show) .accordion-body {
    border-top-left-radius: 20px; /* Adjust as needed */
    border-top-right-radius: 20px; /* Adjust as needed */
}

/* Apply border-radius to the last accordion item when not collapsed */
.accordion-item:last-of-type .accordion-collapse.collapse:not(.show) .accordion-body {
    border-bottom-left-radius: 20px; /* Adjust as needed */
    border-bottom-right-radius: 20px; /* Adjust as needed */
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-radius: 20px;
}

/* Ensure the last accordion item always has rounded corners at the bottom */
.accordion-item:last-of-type, .accordion-item:last-of-type .accordion-button {
    border-bottom-left-radius: 20px; /* Adjust as needed */
    border-bottom-right-radius: 20px; /* Adjust as needed */
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-button::after {
    background-image: url('data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 16 16\' fill=\'%23666565\'%3e%3cpath stroke=\'%23666565\' stroke-width=\'2\' 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');
    width: clamp(16px, 2vw, 20px);
    height: clamp(16px, 2vw, 20px);
    background-size: contain;
    transition: transform 0.3s ease;
}

.accordion-button:hover {
    background-color: inherit; /* Or use the specific color of the button's non-hover state */
    color: inherit; /* Adjust if the text color also changes on hover */
}

.accordion-header {
    background-color: #fff;
    color: #000;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 20px;
    height: 100px;
    font-family: 'Poppins', sans-serif;
}

.accordion {
    border-radius: 20px;
}

.accordion-body {
    color: #000;
    background-color: #FFF;
    border-radius: 0 0 20px 20px;
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .policies-section .description {
        display: flex;
        flex-wrap: nowrap; /* Ensure text stays in one line */
        justify-content: center;
    }

    .policies-section .description span {
        white-space: nowrap; /* Ensure text stays in one line */
    }
}

@media (max-width: 1199.98px) {
    .policies-section {
        padding: 20px 15px; /* Adjust padding for large devices */
    }

    .nav-tabs .nav-link {
        font-size: 1rem; /* Reduced from 1.25rem */
    }

    .accordion-button::after {
        background-size: 22px;
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 1024px) {
    .policies-section {
        padding: 20px 15px; /* Adjust padding for laptops */
    }

    .policies-section .description {
        display: flex;
        flex-wrap: nowrap; /* Ensure text stays in one line */
        justify-content: center;
    }

    .policies-section .description span {
        white-space: nowrap; /* Ensure text stays in one line */
    }

    .nav-tabs .nav-link {
        font-size: 0.75rem; /* Reduced from 1.25rem */
    }
}

@media (max-width: 991.98px) {
    .policies-section {
        padding: 20px 10px; /* Adjust padding for medium devices */
    }

    .policies-section p,
    .policies-section .description,
    .accordion-button,
    .accordion-body {
        font-size: 0.875rem; /* Further reduced */
    }

    .nav-tabs .nav-link {
        font-size: 0.75rem; /* Further reduced */
    }

    .accordion-button::after {
        background-size: 20px;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .policies-section {
        padding: 20px 5px; /* Adjust padding for small devices */
    }

    .policies-section p,
    .policies-section .description,
    .accordion-button,
    .accordion-body {
        font-size: 0.75rem; /* Further reduced */
    }

    .nav-tabs .nav-link {
        font-size: 0.625rem; /* Further reduced */
    }

    .accordion-button::after {
        width: clamp(14px, 1.8vw, 20px);
        height: clamp(14px, 1.8vw, 20px);
    }

    .accordion-button {
        font-size: 1rem; /* Adjust font size for smaller screens */
        padding: 0.5rem 1rem; /* Adjust padding for smaller screens */
    }

    .accordion-body {
        font-size: 0.875rem; /* Adjust font size for smaller screens */
    }

    .policies-section .heading {
        font-size: 32px; /* Smaller heading for mobile */
    }

    .policies-section .sub-heading {
        font-size: 18px; /* Smaller sub-heading for mobile */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .accordion-button::after {
        width: clamp(15px, 1.9vw, 22px);
        height: clamp(15px, 1.9vw, 22px);
    }
}

@media (max-width: 575.98px) {
    .policies-section {
        padding: 10px 5px; /* Adjust padding for extra small devices */
    }

    .policies-section p,
    .policies-section .description,
    .accordion-button,
    .accordion-body {
        font-size: 0.625rem; /* Further reduced */
    }

    .nav-tabs .nav-link {
        font-size: 0.5rem; /* Further reduced */
    }

    .accordion-button::after {
        background-size: 14px;
        width: 14px;
        height: 14px;
    }
}

.card {
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px; /* Ensure font size is 20px */
    font-weight: bold;
}

.card-text {
    font-size: 20px; /* Ensure font size is 20px */
}

.table th, .table td {
    vertical-align: middle;
}

.badge-warning {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px; /* Ensure font size is 20px */
}

.img-fluid {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Add this line to limit image height */
}

@media (max-width: 768px) {
    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 20px; /* Ensure font size is 20px */
    }

    .card-text {
        font-size: 20px; /* Ensure font size is 20px */
    }

    .badge-warning {
        font-size: 20px; 
    }
}
.accordion-item:not(:first-of-type) {
    border-top: 1px solid rgba(0,0,0,.125) !important;
}