/* ------------- 
 Section: News 
------------- */

section#news {
    background: transparent;
    /* background: linear-gradient(318deg, rgba(71, 167, 183, 1) 0%, rgba(55, 156, 214, 1) 100%); */
    padding: 0;
    display: flex;
    flex-direction: column;
}

section#news .heading_withlink::before {
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
}

.news_widget {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    color: var(--mr-color-light);
    gap: 1em;
}

.news_widget .news_item {
    width: 100%;
}

.news_more {
    width: calc(40% - 2em);
    min-width: 234px;
    flex-grow: 1;
    margin: 0 1em;
}

.news_widget .news_item {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0 15px;
    flex-grow: 1;
    /* flex-wrap: wrap; */
    background: #f5f5f5;
    margin-bottom: .5rem;
    color: black;
    align-items: center;
}

.news_widget .news_item .news_img {
    /* background-size: cover; */
    /* background-repeat: no-repeat; */
    /* background-position: center; */
    /* margin: 0 1em 1em; */
    /* width: 200px; */
    /* min-width: 30px; */
    flex-grow: 0;
    /* min-height: auto; */
    height: 100%;
    flex-grow: 1;
    max-height: 270px;
}

.news_listings .news_item {
    position: relative;
    background: rgb(237 237 237);
    padding: 1em;
    margin-bottom: 1em;
}

.news_item h2 {
    margin-top: 0;
}

.news_details {
    /* width: calc(100% - 280px); */
    /* padding: 0 0.5em; */
    flex-grow: 1;
    min-width: 65%;
    margin: 0;
    padding: 1rem 2rem;
}

.news_description {
    font-size: clamp(16px, 1.5vw, 1.3rem);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.news_title {
    color: grey;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(22px, 2vw, 1.7rem);
    line-height: 1.1;
    /* margin-bottom: 0.5em; */
    display: block;
    text-transform: none;
    text-transform: uppercase;
}

.news_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0;
}

.news_tag {
    background: #e9eef3;
    color: #2a2a2a;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news_widget .load_more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--mr-color-accent);
    color: var(--mr-color-accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: transparent;
}

.news_widget .load_more:hover {
    border: 1px solid var(--mr-color-accent-shade);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    background: #0000001f;
}

.news_widget .load_more span {
    display: inline-flex;
    align-items: center;
}

.news_read_more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    text-decoration: none;
    margin-top: 0.35rem;
}

.news_read_more:hover {
    text-decoration: underline;
}

.news_more .news_item .news_img,
.news_more .news_item .news_description {
    display: none;
}

.news_more .news_details {
    width: 100%;
    margin: 0;
}

.news_more .news_item {
    border-bottom: 3px solid white;
    margin-bottom: 1em;
}

.news_more .news_title {
    font-size: 1.4em;
}

.news_title:hover {
    /* color: black; */
    text-decoration: underline;
}

.news_story {
    /* flex-direction: column; */
    background: #fff;
    display: flex;
    width: calc(100% - 14em);
    margin: auto;
    position: relative;
    padding: 0;
    text-align: left;
    color: #000000;
    box-shadow: 1px 1px 20px #00000085;
    width: calc(100% - 14em);
    height: 100%;
    border-radius: 1.6em;
    overflow: hidden;
    text-decoration: none;
}

.news_date {
    color: #8b8b8b;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--mr-color-contrast);
    /* width: 100%; */
    font-weight: 700;
    margin-bottom: 0;
    margin-right: 1rem;
}

.news_content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2em;
    justify-content: center;
    width: 74%;
    position: relative;
    letter-spacing: .06em;
}

.news_photo {
    /* width: 26%; */
    /* padding-bottom: 13%; */
    /* padding-bottom: 27%; */
    display: block;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

.news_summary {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-size: 1.2em;
}

.news_readmore {
    justify-self: self-end;
    align-self: flex-end;
    background: black;
    color: white;
    font-weight: 900;
    padding: .25em 2em;
    border-top-left-radius: 2em;
    position: absolute;
    bottom: 0;
    right: 0;
    text-transform: uppercase;
    margin-bottom: 0;
}

.news_headline {
    font-size: 2em;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: .25em;
}

.news_story:hover {
    color: black;
}

.news_readmore:after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .5em;
    font-size: .9em;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/chevron-right.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/chevron-right.svg') no-repeat center / contain;
}

.single_news .news_date,
.news_item .news_date {
    border-bottom: none;
    /* margin-bottom: .25rem; */
    display: block;
}

.news_icon::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
    mask: url('https://static.mrwebsites.ca/icon/fa/solid/newspaper.svg') no-repeat center / contain;
}

.search_results_section.showall a:nth-of-type(n + 4) {
    display: flex;
}

.news_widget h2 {
    width: 100%;
    border-bottom-color: var(--mr-color-primary);
    border-bottom-width: 5px;
}

.news_widget .news_item .news_img img {
    margin: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.news_widget .flex_holder {
    min-width: 280px;
    width: calc(33.3% - 30px);
    margin: 0 15px;
    flex-grow: 1;
}

.news_source {
    color: grey;
    order: 3;
    font-size: 1em;
}

article.news_item.featured {
    width: 100%;
    position: relative;
    padding-bottom: 45%;
}

article.news_item.featured img {
    width: 100%;
}

article.news_item.featured .news_details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    background: black;
    background: linear-gradient(0deg, rgb(39 38 38) 0%, rgba(0, 0, 0, 0) 100%);
    margin: 0;
    padding: 2rem;
    justify-content: flex-end;
    z-index: 99999;
    color: white;
}

article.news_item.featured a.news_img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
}

article.news_item {}

.news_description p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    margin: 0.4em 0;
    color: grey;
}

.featured .news_description p {
    color: #d1d0d0;
}

.featured a.news_title {
    font-size: 1.5em;
}

a.news_title:hover {
    /* color: grey; */
}

.news_item>a {
    width: 9em;
    height: 7em;
    position: relative;
}

.news_item>a img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news_block .news_widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 0;
}

.news_block .flex_holder {
    display: none;
}

.news_block .news_item {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
}

.news_block .news_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.news_block .news_media {
    position: relative;
    display: block;
    flex: 0 0 190px;
    aspect-ratio: 4 / 3;
    background: #eef2f6;
    overflow: hidden;
}

.news_block .news_media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news_block .news_item > a {
    width: auto;
    height: auto;
}

.news_block .news_details {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0f172a;
    flex-grow: 1;
    width: 100%;
}

.news_block .news_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.news_block .news_meta_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.news_block .news_meta_row .news_meta,
.news_block .news_meta_row .news_tags {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.news_block .news_title {
    color: #0f172a;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    text-transform: none;
}

.news_block .news_description p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4b5563;
    margin: 0;
}

.news_block .news_source_row {
    /* margin-top: 2px; */
}

.news_block .news_source {
    color: #6b7280;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news_block .news_item.featured {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    position: relative;
    padding-bottom: 0;
}

.news_block .news_item.featured .news_media {
    position: relative;
    height: 100%;
}

.news_block .news_item.featured .news_details {
    position: static;
    background: transparent;
    margin: 0;
    z-index: auto;
    width: auto;
    min-width: auto;
}

.news_block .news_item.featured .news_media {
    flex-basis: 42%;
    min-height: 260px;
}

.news_block .news_item.featured .news_details {
    padding: 24px 28px;
}

.news_block .news_item.featured .news_title {
    font-size: clamp(22px, 2.6vw, 32px);
}

.news_block .news_item.featured .news_description p {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
}

@media (max-width: 900px) {
    .news_block .news_item,
    .news_block .news_item.featured {
        flex-direction: column;
    }

    .news_block .news_item .news_media,
    .news_block .news_item.featured .news_media {
        flex-basis: auto;
        width: 100%;
        min-height: 180px;
        max-height: 30vw;
    }
}


.featured .news_tags {
    margin: 0.35rem 0 0.5rem;
}


.news_more_wrap {
    width: 100%;
}/* WCP 2026 feature overrides */
.news_widget .news_item,
.news_block .news_item {
  border: 1px solid rgba(27,31,24,.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(27,31,24,.08);
}
.news_widget .news_title,
.news_block .news_title {
  color: var(--mr-color-primary-shade);
  font-family: var(--mr-font-heading);
}
.news_widget .news_date,
.news_block .news_date {
  color: #697064;
}
