/* Dobcross Latest News - scoped presentation */

.latest-news-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 25%, rgba(200, 32, 47, .22), transparent 34%),
        linear-gradient(118deg, #031325 0%, #061b33 62%, #0c2948 100%);
    color: #fff;
}

.latest-news-hero__media,
.latest-news-hero__slide,
.latest-news-hero__shade {
    position: absolute;
    inset: 0;
}

.latest-news-hero__slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease;
}

.latest-news-hero__slide.is-active {
    opacity: 1;
}

.latest-news-hero__shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 19, 37, .94) 0%, rgba(3, 19, 37, .76) 47%, rgba(3, 19, 37, .42) 100%),
        linear-gradient(0deg, rgba(3, 19, 37, .18), rgba(3, 19, 37, .18));
}

.latest-news-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 86px;
    padding-bottom: 92px;
}

.latest-news-hero .eyebrow,
.news-article-hero .eyebrow {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
    padding-bottom: 15px;
    color: #fff;
}

.latest-news-hero .eyebrow::after,
.news-article-hero .eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    background: #c8202f;
}

.latest-news-hero h1,
.news-article-hero h1 {
    max-width: 920px;
    margin: 0;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(3.3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.035em;
}

.latest-news-hero .page-hero__intro {
    max-width: 690px;
    margin-top: 27px;
    color: rgba(255,255,255,.84);
    font-size: 1.08rem;
    line-height: 1.72;
}

.latest-news-content {
    padding: 88px 0 108px;
    background: #f6f3ed;
}

.latest-news-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(6, 27, 51, .16);
}

.latest-news-heading .eyebrow {
    margin-bottom: 12px;
    color: #c8202f;
}

.latest-news-heading h2,
.latest-news-empty h2 {
    margin: 0;
    color: #061b33;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.025em;
}

.latest-news-count {
    margin: 0 0 7px;
    color: #68717d;
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.latest-news-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(6, 27, 51, .08);
    box-shadow: 0 8px 28px rgba(6, 27, 51, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.latest-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 38px rgba(6, 27, 51, .1);
}

.latest-news-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #061b33;
}

.latest-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.latest-news-card:hover .latest-news-card__image img {
    transform: scale(1.035);
}

.latest-news-card__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    background:
        linear-gradient(145deg, rgba(200,32,47,.92), rgba(6,27,51,.92)),
        #061b33;
}

.latest-news-card__placeholder::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -74px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
}

.latest-news-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 29px 29px 31px;
}

.latest-news-card__date,
.news-article-hero time {
    display: block;
    margin: 0 0 13px;
    color: #c8202f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.latest-news-card h3 {
    margin: 0;
    color: #061b33;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.08;
}

.latest-news-card h3 a:hover {
    color: #c8202f;
}

.latest-news-card p {
    margin: 17px 0 5px;
    color: #68717d;
    line-height: 1.7;
}

.latest-news-card__link {
    margin-top: auto;
    padding-top: 20px;
}

.latest-news-empty {
    padding: 70px 0;
}

.latest-news-empty p {
    color: #68717d;
    font-size: 1.05rem;
}

.news-pagination {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: 24px;
    margin-top: 54px;
    padding-top: 30px;
    border-top: 1px solid rgba(6, 27, 51, .16);
}

.news-pagination__direction {
    color: #061b33;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-pagination__direction:last-child {
    text-align: right;
}

.news-pagination__direction:hover {
    color: #c8202f;
}

.news-pagination__direction.is-disabled {
    color: rgba(6,27,51,.3);
    pointer-events: none;
}

.news-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-pagination__pages a,
.news-pagination__pages .is-current {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6,27,51,.14);
    background: #fff;
    color: #061b33;
    font-size: .78rem;
    font-weight: 800;
}

.news-pagination__pages a:hover,
.news-pagination__pages .is-current {
    background: #061b33;
    border-color: #061b33;
    color: #fff;
}

.news-pagination__ellipsis {
    padding: 0 2px;
    color: #68717d;
}

/* Article */
.news-article-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 82% 32%, rgba(200,32,47,.2), transparent 34%),
        linear-gradient(118deg, #031325, #061b33 68%, #0c2948);
    color: #fff;
}

.news-article-hero__inner,
.news-article-hero--missing .container {
    padding-top: 76px;
    padding-bottom: 82px;
}

.news-article-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.3rem);
}

.news-article-hero time {
    margin-top: 26px;
    margin-bottom: 0;
    color: rgba(255,255,255,.72);
}

.news-article-hero .page-hero__intro {
    max-width: 680px;
    color: rgba(255,255,255,.8);
}

.news-article-content {
    padding: 76px 0 96px;
    background: #fff;
}

.news-article-content__inner {
    max-width: 920px;
}

.news-article-body {
    color: #273545;
    font-size: 1.08rem;
    line-height: 1.82;
}

.news-article-body > :first-child {
    margin-top: 0;
}

.news-article-body p,
.news-article-body ul,
.news-article-body ol,
.news-article-body blockquote {
    margin-top: 0;
    margin-bottom: 1.45em;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
    margin: 1.4em 0 .55em;
    color: #061b33;
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
}

.news-article-body h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.news-article-body h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); }

.news-article-body a {
    color: #c8202f;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.news-article-body img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 34px auto;
}

.news-article-body figure {
    margin: 34px 0;
}

.news-article-body figure img {
    margin: 0 auto;
}

.news-article-body figcaption {
    margin-top: 9px;
    color: #68717d;
    font-size: .82rem;
    text-align: center;
}

.news-article-body blockquote {
    padding: 4px 0 4px 24px;
    border-left: 4px solid #c8202f;
    color: #4c5967;
}

.news-article-body .wp-block-image,
.news-article-body .wp-block-gallery {
    max-width: 100%;
}

.news-article-back {
    margin-top: 58px;
    padding-top: 30px;
    border-top: 1px solid rgba(6,27,51,.12);
}

@media (max-width: 1000px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .latest-news-hero,
    .news-article-hero {
        min-height: 390px;
    }

    .latest-news-hero__content,
    .news-article-hero__inner,
    .news-article-hero--missing .container {
        padding-top: 66px;
        padding-bottom: 70px;
    }

    .latest-news-content {
        padding: 66px 0 82px;
    }

    .latest-news-heading {
        display: block;
    }

    .latest-news-count {
        margin-top: 20px;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .news-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .news-pagination__pages {
        grid-column: 1 / -1;
        grid-row: 1;
        flex-wrap: wrap;
    }

    .news-pagination__direction {
        grid-row: 2;
    }

    .news-article-content {
        padding: 58px 0 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .latest-news-hero__slide,
    .latest-news-card,
    .latest-news-card__image img {
        transition: none;
    }
}
