/* Microsite vNext compatibility treatment for /news/. */

.csh-vnext.page-news .header-page {
    isolation: isolate;
    min-height: clamp(400px, 52vh, 560px);
}

.csh-vnext.page-news .header-page .header-bg,
.csh-vnext.page-news .header-page .header-bg-mobile {
    z-index: -2;
}

.csh-vnext.page-news .header-page .header-bg::after,
.csh-vnext.page-news .header-page .header-bg-mobile::after {
    background: linear-gradient(90deg, rgba(8, 13, 19, .8), rgba(8, 13, 19, .22));
}

.csh-vnext.page-news .search-box-header {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: max(1rem, calc((100vw - var(--csh-content-width)) / 2 + 2rem));
    display: block;
    width: min(680px, calc(100% - 2rem));
    margin-top: 0 !important;
    padding: clamp(1.5rem, 4vw, 3rem);
    transform: translateY(-50%);
    color: #ffffff;
    background: rgba(12, 18, 24, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--csh-radius-lg);
    box-shadow: var(--csh-shadow);
    backdrop-filter: blur(14px);
}

.csh-vnext.page-news .search-box-header h1 {
    max-width: 14ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.03;
    text-wrap: balance;
}

.csh-vnext.page-news #page-content {
    padding: clamp(2.5rem, 5vw, 5rem) 0;
    background: var(--csh-bg);
}

.csh-vnext.page-news #blog-list .categories {
    margin-bottom: 1.5rem;
}

.csh-vnext.page-news #blog-category-form .form-group {
    align-items: center;
    row-gap: .5rem;
}

/* Use the native category select instead of the incompatible generated menu. */
.csh-vnext.page-news #blog-category-form .bootstrap-select.form-control {
    display: block;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.csh-vnext.page-news #blog-category-form .bootstrap-select > select.form-control {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    clip: auto !important;
    clip-path: none !important;
}

.csh-vnext.page-news #blog-category-form .bootstrap-select > .dropdown-toggle,
.csh-vnext.page-news #blog-category-form .bootstrap-select > .dropdown-menu {
    display: none !important;
}

.csh-vnext.page-news #blog-category-form select.form-control {
    min-height: 46px;
}

.csh-vnext.page-news #blog-list .main-content {
    display: flow-root;
}

.csh-vnext.page-news #blog-list .blog-list-article {
    margin: 0 0 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    overflow: hidden;
    background: var(--csh-surface);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius);
    box-shadow: var(--csh-shadow-sm);
}

.csh-vnext.page-news #blog-list .blog-list-article > .row {
    align-items: center;
    row-gap: 1rem;
}

.csh-vnext.page-news #blog-list .blog-image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--csh-surface-muted);
    border: 1px solid var(--csh-border);
    border-radius: calc(var(--csh-radius) - .2rem);
}

.csh-vnext.page-news #blog-list .blog-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    margin: 0;
    object-fit: cover;
}

.csh-vnext.page-news #blog-list .blog-info h2 {
    margin-top: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.2;
    text-transform: none;
}

.csh-vnext.page-news #blog-list .blog-author {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-bottom: .75rem;
    color: var(--csh-text-muted);
}

.csh-vnext.page-news #blog-list .blog-info > .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .65rem 1.15rem;
    line-height: 1;
    vertical-align: middle;
}

/* Article-page related reading list. */
.csh-vnext.page-news .blog-sidebar > div {
    position: sticky;
    top: 6rem;
    overflow: hidden;
    background: var(--csh-surface);
    border: 1px solid var(--csh-border);
    border-radius: var(--csh-radius);
    box-shadow: var(--csh-shadow-sm);
}

.csh-vnext.page-news .blog-sidebar h3 {
    margin: 0;
    padding: 1rem 1.1rem;
    color: var(--csh-text);
    background: var(--csh-surface-muted);
    border-bottom: 1px solid var(--csh-border);
    font-size: 1.15rem;
    font-weight: 800;
}

.csh-vnext.page-news .blog-sidebar .blog-list-article {
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--csh-border);
    border-radius: 0;
    box-shadow: none;
}

.csh-vnext.page-news .blog-sidebar .blog-list-article:last-child {
    border-bottom: 0;
}

.csh-vnext.page-news .blog-sidebar .blog-list-article > .row {
    display: block;
    margin: 0;
}

.csh-vnext.page-news .blog-sidebar .blog-list-article .col-2 {
    display: none;
}

.csh-vnext.page-news .blog-sidebar .blog-list-article .col-10 {
    width: 100%;
    max-width: none;
    padding: 0 !important;
}

.csh-vnext.page-news .blog-sidebar .blog-info > a {
    display: block;
    padding: .9rem 1.1rem;
    color: var(--csh-text);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, padding-left .18s ease;
}

.csh-vnext.page-news .blog-sidebar .blog-info > a:hover,
.csh-vnext.page-news .blog-sidebar .blog-info > a:focus {
    padding-left: 1.3rem;
    color: var(--csh-primary);
    background: rgba(var(--csh-primary-rgb), .08);
    text-decoration: none;
}

.csh-vnext.page-news #blog-list .center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.csh-vnext.page-news #blog-list .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.csh-vnext.page-news #blog-list .pagination > li {
    display: block;
    margin: 0;
}

.csh-vnext.page-news #blog-list .pagination > li > a,
.csh-vnext.page-news #blog-list .pagination > li > span {
    display: grid;
    place-items: center;
    float: none;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: .55rem .75rem;
    color: var(--csh-text);
    background: var(--csh-surface);
    border: 1px solid var(--csh-border);
    border-radius: .5rem;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.csh-vnext.page-news #blog-list .pagination > li > a:hover,
.csh-vnext.page-news #blog-list .pagination > li > a:focus {
    color: var(--csh-primary);
    background: rgba(var(--csh-primary-rgb), .08);
    border-color: var(--csh-primary);
    text-decoration: none;
}

.csh-vnext.page-news #blog-list .pagination > .active > a,
.csh-vnext.page-news #blog-list .pagination > .active > span,
.csh-vnext.page-news #blog-list .pagination > .active > a:hover,
.csh-vnext.page-news #blog-list .pagination > .active > a:focus {
    color: #ffffff;
    background: var(--csh-primary);
    border-color: var(--csh-primary);
    cursor: default;
}

@media (max-width: 767.98px) {
    .csh-vnext.page-news .header-page {
        min-height: 500px;
    }

    .csh-vnext.page-news .search-box-header {
        right: 1rem;
        left: 1rem;
        width: auto;
        padding: 1.35rem;
    }

    .csh-vnext.page-news .search-box-header h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .csh-vnext.page-news #blog-category-form label {
        text-align: left !important;
    }

    .csh-vnext.page-news #page-content > .container > .row > [class*="col-"],
    .csh-vnext.page-news .blog-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .csh-vnext.page-news .blog-sidebar {
        margin-top: 2rem;
    }

    .csh-vnext.page-news .blog-sidebar > div {
        position: static;
    }
}
