#tpl-market-report {
    margin-top: -32px;
    h1 {
        margin-bottom: 8px;
    }
    .page-subtitle {
        font-size: 24px;
    }
    .page-subtitle  p:last-child {
        margin-bottom: 0;
    }
}
.mr-header {
    background-color: var(--darkblue);
    color: var(--white);
    padding: 64px 0 64px;
}
.mr-tag {
    background-color: var(--bs-orange);
    color: white;
    line-height: 1;
    display: inline-block;
    padding: 4px 8px;
    text-transform: uppercase;
    font-weight: 700;
}
.mr-h2 {
    font-weight: 700;
    color: gray;
    font-size: 20px;
    border-bottom: 2px solid lightgray;
    padding-bottom: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    &:not(:first-child){
        margin-top: 64px;
    }
}
.mr-h3 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
} 

.mr-quarter-select{
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0px 3px 30px #0000001A;
    color: var(--darkblue);
    padding: 20px;
    h4 {
        padding-bottom: 8px;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--darkblue);
    }
}

.mr-quarter-grid {
    display: flex;
    flex-wrap: wrap;
    gap:8px;
    a {
        text-decoration: none;
        color: lightslategray;
        border: 1px solid lightgray;
        line-height: 1;
        padding:8px 16px;
        font-weight: 700;
    }
    a:hover,
    a.active {
        background-color: var(--darkblue);
        border-color: var(--darkblue);
        color: var(--white);
        
    }
}

.mr-filter-wrapper {
    position: relative;
}
.mr-filter-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 121, 168, 0),
        rgba(0, 121, 168, 0.7) 60%,
        #0079a8 100%
    );
    pointer-events: none;
}
/* .mr-filter-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(0, 121, 168, 0),
        rgba(0, 121, 168, 0.7) 60%,
        #0079a8 100%
    );
    pointer-events: none;
} */

.container-region {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.mr-region-filter {
    background-color: var(--white);
    color: gray;
    border-bottom: 1px solid lightgray;
    .mr-filter-wrapper {
        min-width: 0;
    }
    .mr-filter-wrapper::before {
        width: 0;
        height: 0;
    }
    .mr-filter-wrapper::after {
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.7) 60%,
            #ffffff 100%
        );
    }
    .filter-heading {
        text-transform: uppercase;
        font-weight: 700;
        padding: 14px 20px;
        border-right: 1px solid lightgray;
    }
    .filter-list {
        display: flex;
        gap:8px;
        white-space: nowrap;
        padding-right: 80px;
        &> a {
            color: gray;
            text-decoration: none;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 14px 20px;
            cursor: pointer;
            font-weight: 700;
            border-bottom: 2px solid transparent;
            &:hover,
            &.active {
                color: #1a3d6b;
                border-color: #1a3d6b;
                
            }
        }
    }
    .container-lg {
        display: flex;
    }
}
.mr-filter-container {
    overflow-x: auto;
}
.mr-category-filter {
    background-color: var(--secondary);
    /* #1a3d6b */
    
    a {
        text-decoration: none;
        color: var(--white);
        padding: 14px 20px;
        display: flex;
        align-items: center;
        gap:8px;
        flex-shrink: 0;
        &:hover,
        &.active {
            /* background-color: #274874; */
            background-color: var(--primary);
        }
    }
    .filter-heading {
        color: var(--white);
        text-transform: uppercase;
        font-weight: 700;
        font-size: 20px;
        text-align: center;
        padding: 16px 0 8px 0;
    }
    .filter-list {
        display: flex;
        gap:8px;
        justify-content: center;
        min-width: max-content;
        white-space: nowrap;
        
    }
}

.mr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
    background-color: #eaebea;
    border: 1px solid #d2d6da;
    padding: 4px 8px;
    font-weight: 700;
}


.mr-breadcrumb .separator {
    color: var(--text-muted);
    font-size: 12px;
}

.mr-content {
    
    margin-top:32px
}


.mr-news {
    background-color: white;
    text-decoration: none;
    /* min-height: 150px; */
    border-radius: 5px;
    border: 1px solid lightgray;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    img {
        object-fit:cover;
        aspect-ratio: 4/3;
        width: 100%;
    }
}

.mr-meta {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}
.mr-group {
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}
.mr-date {
    color: var(--logogrey);
}
.mr-title {
    font-size: 20px;
    color: var(--darkblue);
    font-weight: 700;
}
.mr-info {
    flex: 1;
    padding: 16px;
}

.mr-category-container {
    position: sticky;
    top: var(--header-height, 0px);
}

@media screen and (min-width: 520px) {
    .mr-news {
        flex-direction: row;
        img {
            width: 160px;
        }
    }
}

@media screen and (min-width: 992px) {
    .mr-content {
        display:grid;
        grid-template-columns:2fr 1fr;
        gap:32px;
    }
}
