.country-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 30px;
    clear: both;
    padding: 0 15px;
    margin: 0 0 30px;
}

.country-list > .country-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
}

.country-card .country-card__media {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    background: #f2f3f4;
    text-decoration: none;
}

.country-card .country-card__placeholder {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b737a;
    font-size: 40px;
}

.country-card .country-card__placeholder[aria-hidden="true"] {
    visibility: hidden;
}

.country-card .country-card__image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-card .country-card__image[hidden] {
    display: none;
}

.country-card .country-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.country-card .country-card__title {
    flex: 0 0 42px;
    height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    line-height: 21px;
    text-transform: uppercase;
}

.country-card .country-card__title a {
    display: -webkit-box;
    max-height: 42px;
    overflow: hidden;
    color: #222;
    line-height: inherit;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.country-card .country-card__title a:hover {
    color: #01ace4;
}

.country-card .country-card__description {
    display: -webkit-box;
    flex: 0 0 84px;
    height: 84px;
    margin: 0 0 20px;
    overflow: hidden;
    color: #626262;
    font-size: 13px;
    line-height: 21px;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.country-card .country-card__footer {
    margin-top: auto;
}

.country-card .country-card__count {
    min-height: 21px;
    margin: 0 0 12px;
    color: #626262;
    font-size: 13px;
    line-height: 21px;
}

.country-card .country-card__button {
    display: block;
    width: 100%;
    height: auto;
    min-height: 36px;
    padding: 8px 12px;
    color: #666;
    line-height: 18px;
    white-space: normal;
}

.country-card .country-card__button:hover {
    color: #fff;
}

.country-card .country-card__media:focus,
.country-card .country-card__title a:focus,
.country-card .country-card__button:focus {
    outline: 2px solid #01ace4;
    outline-offset: 2px;
}

.country-overview-link {
    margin-bottom: 30px;
    text-align: center;
}

.country-overview-link .btn {
    height: auto;
    min-height: 45px;
    max-width: 100%;
    padding: 10px 20px;
    line-height: 22px;
    white-space: normal;
}

.country-overview {
    padding: 110px 0 60px;
}

.country-overview__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.country-overview__breadcrumb li + li::before {
    margin-right: 8px;
    color: #767676;
    content: "/";
}

.country-overview__intro {
    margin: 0;
    color: #626262;
}

.country-overview__sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 25px 0 30px;
}

.country-overview__sort-label {
    margin-right: 4px;
    font-weight: 600;
}

.country-overview__sort a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #626262;
    line-height: 20px;
    text-decoration: none;
}

.country-overview__sort a:hover,
.country-overview__sort a:focus {
    border-color: #01ace4;
    color: #01ace4;
}

.country-overview__sort a.is-active {
    border-color: #01ace4;
    background: #01ace4;
    color: #fff;
}

.country-overview__sort a:focus {
    outline: 2px solid #01ace4;
    outline-offset: 2px;
}

.country-overview__empty {
    margin: 30px 0;
}

@media (min-width: 768px) {
    .country-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .country-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
