.resource-filter {
    margin:0 0 20px 0;
}
.resource-filter label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    display: inline-block;
    color: #000;
    font-size: 18px;
    margin-right: 10px;
}

.resource-filter input[type=checkbox] {
    display: none;
}

.resource-filter input[type=checkbox] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    border: 2px solid #ac1361;
    border-radius: 4px;
    background-color: transparent;
}

.resource-filter input[type=checkbox]:checked + label:before {
    background-color: #ac1361;
}

.resource-filter input[type=checkbox] + label:after {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    display: none;
}

.resource-filter input[type=checkbox]:checked + label:after {
    display: block;
}

.resource-filter-table th, .resource-filter-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.resource-filter-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures the table adheres to a fixed layout */
}

.resource-filter-table thead th {
    background-color: #ac1361;
    color: #ffffff;
    text-align: left;
    padding: 10px;
}

.resource-filter-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word; /* Ensures content wraps and doesn't overflow */
    vertical-align: top;
}

.resource-filter-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9; /* Zebra striping for rows */
}

.resource-filter-table tbody tr:hover {
    background-color: #f2f2f2; /* Hover effect for rows */
}

/* Styling for long URLs */
.resource-filter-table tbody td a {
    max-width:100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.resource-filter-table tbody td a:hover {
    white-space: normal;
    background-color: #f2f2f2; /* Optional: Highlight on hover */
}

/* Responsive table */
@media screen and (max-width: 768px) {
    .resource-filter-table,
    .resource-filter-table thead,
    .resource-filter-table tbody,
    .resource-filter-table th,
    .resource-filter-table td,
    .resource-filter-table tr {
        display: block;
    }

    .resource-filter-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .resource-filter-table tr { border: 1px solid #ccc; margin-bottom: 5px;}

    .resource-filter-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%; /* Adjust based on content */
        text-align: right;
    }

    .resource-filter-table td:before {
        /* Now like a table header */
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%; /* Adjust based on content */
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    /* Label the data */
    .resource-filter-table td:nth-of-type(1):before { content: "Organization"; }
    .resource-filter-table td:nth-of-type(2):before { content: "Website"; }
}
