.back-link {
    float: left;
}

.back-link a {
    color: #000;
}

.card-header {
    padding: 13px 20px 13px 20px;
}

.card-heading {
    display: flex;
    align-items: center;
}

.card-heading .back-link {
    display: flex;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.country-heading {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex: 1 1 0;
}

.country-heading h4 {
    display: inline-block;
}

.card-body {
    padding: 30px 20px 30px 20px;
}

.groups-multicol {
    column-count: 1; /* mobile: 1 column */
    column-gap: 2rem; /* space between columns */
}

/* each group block (heading + list) */
.group-block {
    break-inside: avoid;  /* don’t split a "group" between columns */
    -webkit-column-break-inside: avoid;
    margin-bottom: 1.5rem; /* consistent spacing between blocks */
}

/* List + bullets, nicely aligned under the heading */
.group-block h3 {
    margin: 0 0 1rem 0;
}

.group-block ul li::marker {
    color: #3369ff;
}

/* custom styles for link hovering */
.group-block ul {
    list-style: disc;
    list-style-position: inside; /* ensure bullet is inside the background area */
    margin: 0;
    padding: 0;
}

/* Each list item */
.group-block ul li {
    position: relative;
    padding: 0.25rem 2rem 0.25rem 0.75rem; /* left pad for bullet spacing, right pad for icon */
    border-radius: 8px;
    margin: 0.15rem 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 160%;
}

/* make the anchor fill the li horizontally (for easier hover area) */
.group-block ul li a {
    position: absolute;
    inset: 0; /* makes the <a> cover the entire <li> */
    z-index: 1;
    text-indent: 25px; 
    top: 5px;
}

.group-block ul li:hover,
.group-block ul li:active {
    background: #ebf0ff;
    background-image: url('/assets/img/views/local/main/go-to-arrow.png');
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 9px 9px;
}

/* tablet: 2 or 3 columns */
@media (min-width: 768px) {
    .card-body {
        padding: 30px 60px 30px 60px;
    }
    
    .groups-multicol {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .groups-multicol {
        column-count: 3;
    }
}

/* desktop: 4 columns */
@media (min-width: 1200px) {
    .groups-multicol {
        column-count: 4;
    }
}