/*   Prefix --news-   */

body {
    /* --where-property-when */

    --news-card-overlay-background-start: rgba(0, 6, 57, 0);
    --news-card-overlay-background-end: rgba(0, 4, 39, 0.74); 
}

/* Containers */

.news-space {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 0px;
    margin-block: 16px;
    font-family: Commissioner;
}

.news-card-block /* Left block */ { 
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

.news-card-collection {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: min-content;
}

.news-list-block /* Right block */ {
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    padding-right: 16px;
}

@media (max-width: 725.98px) {
    .news-card-block {
        width: 0%;
    }
    .news-list-block {
        width: 100%;
        padding: 0 16px;
    }
}

@media (min-width: 726px) and (max-width: 1043.98px) {
    .news-card-block {
        width: 50%;
    }
    .news-list-block {
        width: 50%;
    }
}

@media (min-width: 1044px) {
    .news-card-block {
        width: calc(100% - 400px);
    }
    .news-list-block {
        width: 400px;
    }
}

.news-block-title {
    display: block;
    color: #000;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -1.50px;
    text-transform: uppercase;
    /*---*/
    width: 0;
    margin-bottom: 16px;
    overflow: visible;
}

@media (max-width: 725.98px) {
    .news-block-title.no-mobile {
        display: none;
    }
}

@media (min-width: 726px) {
    .news-block-title.mobile {
        display: none;
    }
}

/* Card */

.news-card-outer {
    display: block;
}

.news-card {
    position: relative;
    background-color: #ffffff;
    height: 294px;
    width: calc(100% - 16px);
    display: inline-flex;
    flex-direction: column-reverse;
    border-radius: 3px;
    margin: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px var(--base-box-shadow-color);
}

.news-card-image {
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px) !important;
    height: 220px !important;
    border-radius: 3px;
    object-fit: cover;
    background-color: #ccc;
    transition: all 300ms ease-out 100ms;
}

.news-card:hover .news-card-image {
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.news-card-image:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "\2639" " NO PHOTO";
    color: #fff;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-card-overlay {
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(var(--news-card-overlay-background-start), var(--news-card-overlay-background-end));
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    transition: all 300ms ease-out 100ms;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

.news-card-info {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    padding: 8px;
    color: #000;
    z-index: 1;
}

@media (max-width: 725.98px) {
    .news-card-outer {
        width: 100%;
    }
    .news-card-block {
        display: none;
    }
}

@media (min-width: 726px) and (max-width: 1043.98px) {
    .news-card-outer {
        width: 100%;
    }
    .news-card-outer .news-card {
        margin-inline: 0;
        width: 100%;
    }
    .news-card-outer:nth-child(-n+1) .news-card {
        margin-top: 0;
    }
    .news-card-outer:nth-last-child(-n+5) .news-card {
        margin-bottom: 0;
    }

    .news-card-outer:nth-last-child(-n+4) {
        display: none;
    }
}

@media (min-width: 1044px) and (max-width: 1335.98px) {
    .news-card-outer {
        width: 50%;
    }
    .news-card-outer:nth-child(2n+1) .news-card {
        margin-left: 0;
        width: calc(100% - 8px);
    }
    .news-card-outer:nth-child(2n) .news-card {
        margin-right: 0;
        width: calc(100% - 8px);
    }
    
    .news-card-outer:nth-child(-n+2) .news-card {
        margin-top: 0;
    }
    .news-card-outer:nth-last-child(-n+4) .news-card {
        margin-bottom: 0;
    }

    .news-card-outer:nth-last-child(-n+2) {
        display: none;
    }
}

@media (min-width: 1336px) {
    .news-card-outer {
        width: 33.3333333%;
    }
    .news-card-outer:nth-child(3n+1) .news-card {
        margin-left: 0;
        width: calc(100% - 8px);
    }
    .news-card-outer:nth-child(3n) .news-card {
        margin-right: 0;
        width: calc(100% - 8px);
    }
    .news-card-outer:nth-child(-n+3) .news-card {
        margin-top: 0;
    }
    .news-card-outer:nth-last-child(-n+3) .news-card {
        margin-bottom: 0;
    }
}

/* Top part of card info */

.news-card-info-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.news-card-date {
    display: block;
    color: #000;
    text-decoration: none !important;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    transition: all 300ms ease-out 100ms;
}

.news-card:hover .news-card-date {
    color: #fff;
}

.news-card-category {
    pointer-events: all;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    color: var(--base-link-color);
    border-radius: 3px;
    padding: 2px 5px;
    background-color: transparent;
    text-decoration: none !important;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    transition: all 300ms ease-out 100ms;
}

.news-card:hover .news-card-category {
    color: var(--base-link-color-bright);
}

.news-card-category:hover {
    text-decoration: underline !important;
}

/* Bottom part of card info */

.news-card-info-bottom {
    display: flex;
    flex-direction: row;
    min-height: 32px;
    transition: all 300ms ease-out 100ms;
}

.news-card:hover .news-card-info-bottom {
    min-height: 16px;
}

.news-card-title {
    display: -webkit-box !important;
    text-wrap: balance;
    word-wrap: break-word;
    line-height: 1.2;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000;
    max-height: 32px;
    text-decoration: none !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    transition: all 300ms ease-out 100ms;
}

.news-card:hover .news-card-title {
    color: #fff;
}

/* List */

.news-list-block-inner {
    background-color: #ffffff;
    height: 604px;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--base-box-shadow-color);
}

@media (max-width: 725.98px) {
    .news-list-block-inner {
        height: 522px;
        height: min-content;
    }
    .news-list-block-inner.no-category {
        height: 444px;
        height: min-content;
    }
}

/* List row column */

.news-list-col {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    margin: 8px;
}

.news-list-col::-webkit-scrollbar {
    width: 6px;
}

.news-list-col::-webkit-scrollbar-thumb {
    border: solid 1px transparent;
}

.news-list-col::-webkit-scrollbar-track {
    border: solid 2px transparent;
}

.news-list-row {
    box-sizing: border-box !important;
    position: relative;
    display: flex;
    flex-direction: column;
    color: #000;
    border-radius: 3px;
    padding: 8px;
    margin-right: 8px;
    height: min-content;
    min-height: min-content; /* Windows XP - Old Google */
    transition: all 0ms ease-out;
}

.news-list-row:hover {
    background-color: var(--base-list-element-background-hover);
}

@media (max-width: 725.98px) {
    .news-list-row {
        margin: 0;
    }
    .news-list-row:nth-last-of-type(-n+14) {
        display: none;
    }
}

@media (min-width: 726px) and (max-width: 1043.98px) {
    .news-list-row:nth-of-type(-n+2) {
        display: none;
    }
}

@media (min-width: 1044px) and (max-width: 1335.98px) {
    .news-list-row:nth-of-type(-n+4) {
        display: none;
    }
}

@media (min-width: 1336px) {
    .news-list-row:nth-of-type(-n+6) {
        display: none;
    }
}

.news-list-row-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Row content */

.news-list-row-link {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.news-list-row-text {
    pointer-events: none;
    z-index: 1;
}

.news-list-row-date {
    display: block;
    color: var(--base-neutral);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.news-list-row-title {
    display: block;
    text-decoration: none !important;
    text-wrap: balance;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.news-list-row-category {
    pointer-events: all;
    display: block;
    background-color: var(--base-special-button-background);
    color: var(--base-special-button-color);
    border-radius: 16px;
    padding: 2px 10px 4px 10px;
    margin-top: 4px;
    text-decoration: none !important;
    place-self: center;
    width: -moz-fit-content;
    width: fit-content;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    transition: all 0ms ease-out;
}

.news-list-row-category:hover {
    background-color: var(--base-special-button-background-hover);
    color: var(--base-special-button-color-hover);
}

/* List bottom section */

.news-list-bottom {
    display: flex;
    flex-direction: row;
    height: min-content;
    min-height: min-content; /* Windows XP - Old Google */
    margin: 4px;
}

.news-button {
    display: block;
    background-color: var(--base-button-background);
    color: var(--base-button-color);
    text-decoration: none !important;
    place-self: center;
    border-radius: 16px;
    padding: 6px 24px 8px 24px;
    cursor: pointer;
    width: min-content;
    white-space: nowrap;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 17px;
    margin: 8px;
    transition: all 0ms ease-out;
}

.news-button:hover {
    background-color: var(--base-button-background-hover);
    color: var(--base-button-color-hover) !important;
    text-decoration: none;
}

.news-button:focus {
    color: var(--base-button-color-hover) !important;
    text-decoration: none;
}