/* News & Events single post ([dt_news_event_post], inc/news-event.php) */

.ne-page {
    --ne-navy: #1c355e;
    --ne-red: #b01f2e;
    --ne-text: #2f3747;
    --ne-ink: #1f2733;
    --ne-muted: #5d6472;
    --ne-muted-2: #4e5563;
    --ne-line: #d9d3c6;
    --ne-line-soft: #eeebe4;
    --ne-placeholder: #d8d2c4;

    background: #f7f5f0;
    color: var(--ne-text);
    font-family: "Inter", system-ui, sans-serif;
    width: 100%;
}

.ne-page h1,
.ne-page h2,
.ne-page h3,
.ne-page p,
.ne-page figure,
.ne-page blockquote {
    margin: 0;
}

.ne-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ne-column {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* header lines up with the featured image (same width and left edge) */
.ne-column--wide {
    max-width: 1040px;
}

.ne-page .ne-column--wide .ne-title {
    max-width: 860px;
}

.ne-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ne-red);
    text-decoration: none;
}

a.ne-eyebrow:hover {
    color: var(--ne-navy);
}

/* Header */
.ne-header {
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ne-page .ne-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 46px;
    line-height: 1.18;
    font-weight: 600;
    color: var(--ne-navy);
    letter-spacing: normal;
    text-transform: none;
}

.ne-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    margin-top: 8px;
    border-top: 1px solid var(--ne-line);
    border-bottom: 1px solid var(--ne-line);
}

.ne-meta__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ne-muted-2);
}

.ne-meta__author {
    font-weight: 600;
    color: var(--ne-ink);
}

/* Share icons */
.ne-share {
    display: flex;
    gap: 4px;
}

.ne-share a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ne-red);
    background: #f3f1ec;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.ne-share a:hover {
    background: var(--ne-red);
    color: #fff;
}

.ne-share--plain a {
    background: transparent;
}

/* Featured image */
.ne-hero {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding-top: 48px;
    box-sizing: border-box;
}

.ne-hero__figure {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ne-hero__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
    background: var(--ne-placeholder);
}

.ne-caption {
    font-size: 14px;
    line-height: 1.5;
    color: var(--ne-muted);
}

/* Body */
.ne-body {
    padding-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ne-prose {
    font-size: 17px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* flatten wrapper divs left by the old page builder so spacing stays consistent */
.ne-prose div {
    display: contents;
}

.ne-prose > *,
.ne-prose div > * {
    margin: 0;
}

.ne-page .ne-prose h2,
.ne-page .ne-prose h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    color: var(--ne-navy);
    letter-spacing: normal;
    text-transform: none;
    margin-top: 12px;
}

.ne-page .ne-prose h2 {
    font-size: 28px;
    line-height: 1.3;
}

.ne-page .ne-prose h3 {
    font-size: 22px;
    line-height: 1.35;
}

.ne-prose h2 strong,
.ne-prose h3 strong {
    font-weight: inherit;
}

.ne-prose a {
    color: var(--ne-red);
    text-decoration: underline;
}

.ne-prose ul,
.ne-prose ol {
    padding-left: 1.2em;
}

.ne-prose img {
    border-radius: 6px;
}

.ne-prose .dropcap2 {
    float: none;
    font: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    background: none;
}

.ne-quote {
    padding: 4px 0 4px 20px;
    border: 0;
    border-left: 3px solid var(--ne-red);
    background: none;
    font-size: 20px;
    line-height: 1.55;
    font-style: italic;
    color: var(--ne-navy);
}

/* Sections */
.ne-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ne-section + .ne-section {
    margin-top: 14px;
}

.ne-page .ne-section__heading,
.ne-page .ne-gallery__heading {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ne-navy);
    letter-spacing: normal;
    text-transform: none;
}

/* Section images: 1 full width, otherwise 2 per row with an odd last one centred */
.ne-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 16px;
    margin: 14px 0 10px;
}

.ne-images .ne-figure {
    width: calc(50% - 8px);
}

.ne-images--single .ne-figure {
    width: 100%;
}

.ne-images--grid .ne-figure__img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ne-images--single .ne-figure__img {
    width: 100%;
    height: auto !important;
    max-height: 560px;
    object-fit: cover;
}

/* Single wide image */
.ne-figure--wide .ne-figure__img {
    height: auto !important;
    max-height: 560px;
}

/* Gallery (3+ images) */
.ne-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 12px;
}

.ne-gallery__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.ne-gallery__hint {
    font-size: 14px;
    color: var(--ne-muted);
}

.ne-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ne-gallery__item {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ne-placeholder);
}

.ne-gallery__img {
    width: 100%;
    height: 180px !important;
    object-fit: cover;
}

/* Image pair */
.ne-figure-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 12px;
}

.ne-figure {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ne-figure__img {
    width: 100%;
    height: 300px !important;
    object-fit: cover;
    border-radius: 6px;
    background: var(--ne-placeholder);
}

/* Related project / event details card */
.ne-card {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e6e2d9;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(28, 53, 94, 0.06);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ne-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.ne-card__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ne-red);
    margin-bottom: 6px;
}

.ne-card__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ne-navy);
}

.ne-card__button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid var(--ne-red);
    color: var(--ne-red);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.ne-card__button:hover {
    background: var(--ne-red);
    color: #fff;
}

.ne-card__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--ne-line-soft);
}

.ne-card__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ne-muted);
    margin-bottom: 4px;
}

.ne-card__value {
    font-size: 15px;
    line-height: 1.45;
    color: var(--ne-ink);
}

/* Footer: back button + share */
.ne-footer {
    margin-top: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--ne-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ne-back {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 6px;
    background: var(--ne-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.ne-back:hover {
    background: #8f1825;
    color: #fff;
}

.ne-footer__share {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ne-footer__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ne-muted);
    padding-right: 8px;
}

/* Related updates */
.ne-related {
    margin-top: 96px;
    background: #fff;
    padding: 72px 20px 88px;
}

.ne-related__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ne-related__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.ne-page .ne-related__heading {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ne-navy);
    margin-top: 8px;
    letter-spacing: normal;
    text-transform: none;
}

.ne-related__all {
    font-size: 14px;
    font-weight: 600;
    color: var(--ne-red);
    text-decoration: none;
    white-space: nowrap;
}

.ne-related__all:hover {
    text-decoration: underline;
}

.ne-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.ne-related__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: var(--ne-ink);
}

.ne-related__media {
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ne-placeholder);
}

.ne-related__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.ne-related__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ne-related__date {
    font-size: 13px;
    color: var(--ne-muted);
}

.ne-related__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--ne-navy);
}

.ne-related__card:hover .ne-related__title {
    color: var(--ne-red);
}

/* Rounded images: Elementor resets border-radius on every img inside its widgets, so these need the extra specificity */
.ne-page .ne-hero__img {
    border-radius: 10px;
}

.ne-page .ne-figure__img,
.ne-page .ne-gallery__item,
.ne-page .ne-related__media,
.ne-page .ne-prose img {
    border-radius: 8px;
}

/* Tablet */
@media (max-width: 1080px) {
    .ne-column,
    .ne-hero {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ne-header {
        padding-top: 32px;
        gap: 14px;
    }

    .ne-eyebrow {
        font-size: 12px;
    }

    .ne-page .ne-title {
        font-size: 30px;
        line-height: 1.22;
    }

    .ne-meta {
        padding: 12px 0;
        margin-top: 0;
    }

    /* author above date, no separator, share icons stay on the right */
    .ne-meta__text {
        flex-direction: column;
        align-items: flex-start;
        font-size: 13px;
        gap: 2px;
    }

    .ne-meta__text > span[aria-hidden="true"] {
        display: none;
    }

    .ne-meta .ne-share {
        flex-shrink: 0;
        gap: 0;
    }

    .ne-meta .ne-share a {
        width: 36px;
        height: 36px;
    }

    /* featured image edge to edge */
    .ne-hero {
        padding: 24px 0 0;
    }

    .ne-hero__figure {
        gap: 8px;
    }

    .ne-page .ne-hero__img {
        aspect-ratio: auto;
        height: 240px !important;
        border-radius: 0;
    }

    .ne-hero .ne-caption {
        padding: 0 20px;
    }

    .ne-caption {
        font-size: 13px;
    }

    .ne-body {
        padding-top: 28px;
        gap: 18px;
    }

    .ne-prose {
        font-size: 16px;
        gap: 18px;
    }

    .ne-page .ne-prose h2,
    .ne-page .ne-section__heading,
    .ne-page .ne-gallery__heading {
        font-size: 24px;
    }

    .ne-section {
        gap: 18px;
    }

    .ne-images {
        gap: 18px;
        margin: 6px 0 4px;
    }

    .ne-images .ne-figure {
        width: 100%;
    }

    .ne-gallery__head {
        flex-direction: column;
        gap: 4px;
    }

    .ne-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .ne-gallery__img {
        height: 150px !important;
    }

    .ne-figure-pair {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .ne-figure__img {
        height: 240px !important;
    }

    .ne-card {
        padding: 20px;
        gap: 14px;
    }

    .ne-card__head {
        flex-direction: column;
        gap: 14px;
    }

    .ne-card__title {
        font-size: 20px;
    }

    .ne-card__button {
        order: 3;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .ne-card__details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ne-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        padding-top: 16px;
        gap: 14px;
    }

    .ne-back {
        justify-content: center;
        height: 48px;
    }

    .ne-related {
        margin-top: 56px;
        padding: 40px 20px 48px;
    }

    .ne-related__inner {
        gap: 20px;
    }

    .ne-related__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ne-page .ne-related__heading {
        font-size: 24px;
    }

    /* related posts as a compact list */
    .ne-related__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ne-related__card {
        flex-direction: row;
        gap: 14px;
    }

    .ne-related__media {
        width: 110px;
        height: 80px;
        flex-shrink: 0;
    }

    .ne-related__text {
        gap: 4px;
    }

    .ne-related__date {
        font-size: 12px;
    }

    .ne-related__title {
        font-size: 17px;
        line-height: 1.3;
    }
}
