:root {
    --wwnr-navy: #061b29;
    --wwnr-navy-2: #0b2b3f;
    --wwnr-gold: #c89520;
    --wwnr-gold-bright: #e0b93e;
    --wwnr-red: #c8102e;
    --wwnr-light: #f6f8fb;
    --wwnr-white: #ffffff;
    --wwnr-text: #173041;
    --wwnr-muted: #667987;
    --wwnr-border: rgba(200,149,32,.35);
}

.wwnr-wrap,
.wwnr-wrap * {
    box-sizing: border-box;
}

.wwnr-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    color: var(--wwnr-text);
    font-family: inherit;
}

.wwnr-admin-preview {
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #fff3cd;
    border: 1px solid #f2d271;
    color: #624b00;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .05em;
    text-align: center;
}

.wwnr-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 42px 38px;
    text-align: center;
    background:
        linear-gradient(90deg, rgba(6,27,41,.98) 0%, rgba(6,27,41,.94) 58%, rgba(6,27,41,.68) 100%),
        url('../images/military-budgeting.jpg') right center / 48% auto no-repeat,
        var(--wwnr-navy);
    color: var(--wwnr-white);
    border-bottom: 3px solid var(--wwnr-gold);
}

.wwnr-eyebrow,
.wwnr-section-heading span:first-child {
    color: var(--wwnr-gold-bright);
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.wwnr-hero h1 {
    margin: 10px auto 12px;
    max-width: 980px;
    color: var(--wwnr-white);
    font-family: Oswald, Impact, "Arial Narrow", sans-serif;
    font-size: clamp(42px, 5.25vw, 78px);
    line-height: .98;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.wwnr-hero p {
    max-width: 880px;
    margin: 0 auto;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.55;
}

.wwnr-trending {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 52px;
    background: var(--wwnr-white);
    border: 1px solid #e5e9ed;
    border-top: 0;
    overflow: hidden;
}

.wwnr-trending-label {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px;
    background: var(--wwnr-red);
    color: var(--wwnr-white);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .08em;
}

.wwnr-trending-window {
    position: relative;
    min-height: 50px;
    overflow: hidden;
}

.wwnr-trending-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .45s ease, transform .45s ease;
    color: var(--wwnr-navy);
    font-weight: 700;
}

.wwnr-trending-item span {
    color: var(--wwnr-red);
    font-weight: 900;
}

.wwnr-trending-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

.wwnr-feature-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 14px;
    margin: 28px 0 48px;
}

.wwnr-feature-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wwnr-feature-card {
    position: relative;
    display: block;
    min-height: 250px;
    overflow: hidden;
    background: var(--wwnr-navy-2);
    color: var(--wwnr-white);
    text-decoration: none !important;
    border: 1px solid rgba(200,149,32,.28);
}

.wwnr-feature-large {
    min-height: 540px;
}

.wwnr-card-image {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, #0c3045 0%, #061b29 58%, #8d6819 160%);
    background-size: cover;
    background-position: center;
    transform: scale(1.001);
    transition: transform .55s ease, filter .55s ease;
}

.wwnr-image-mark {
    position: absolute;
    right: 24px;
    bottom: 18px;
    color: rgba(255,255,255,.07);
    font-family: Oswald, Impact, sans-serif;
    font-size: 80px;
    font-weight: 800;
}

.wwnr-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1,8,13,.04) 20%, rgba(2,13,20,.34) 52%, rgba(2,13,20,.96) 100%);
}

.wwnr-feature-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
}

.wwnr-feature-content h3,
.wwnr-article-copy h3,
.wwnr-cta h2 {
    font-family: Oswald, Impact, "Arial Narrow", sans-serif;
    text-transform: uppercase;
}

.wwnr-feature-content h3 {
    margin: 8px 0 9px;
    color: var(--wwnr-white);
    font-size: clamp(26px, 2.6vw, 46px);
    line-height: 1.02;
}

.wwnr-feature-excerpt {
    max-width: 720px;
    margin: 0 0 11px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
    line-height: 1.5;
}

.wwnr-feature-small .wwnr-feature-content {
    padding: 18px;
}

.wwnr-feature-small .wwnr-feature-content h3 {
    font-size: clamp(18px, 1.55vw, 23px);
}

.wwnr-feature-small .wwnr-feature-read {
    margin-top: 7px;
}

.wwnr-kicker {
    display: inline-block;
    color: var(--wwnr-gold-bright);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wwnr-meta {
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.wwnr-feature-read {
    display: block;
    margin-top: 10px;
    color: var(--wwnr-white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
}

.wwnr-feature-card:hover .wwnr-card-image,
.wwnr-article-card:hover .wwnr-card-image {
    transform: scale(1.045);
    filter: brightness(1.04);
}

.wwnr-section {
    margin: 0 0 56px;
}

.wwnr-section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.wwnr-section-rule {
    height: 2px;
    background: linear-gradient(90deg, var(--wwnr-gold), rgba(200,149,32,.08));
}

.wwnr-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wwnr-article-card {
    position: relative;
    display: block;
    min-width: 0;
    background: var(--wwnr-white);
    border: 1px solid #e3e7ea;
    border-top: 3px solid var(--wwnr-gold);
    text-decoration: none !important;
    color: inherit;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.wwnr-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(4, 26, 40, .10);
}

.wwnr-article-image {
    position: relative;
    inset: auto;
    height: 185px;
    overflow: hidden;
}

.wwnr-article-copy {
    padding: 20px;
}

.wwnr-article-topline {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wwnr-article-topline .wwnr-meta {
    color: var(--wwnr-muted);
    white-space: nowrap;
}

.wwnr-article-copy h3 {
    margin: 0 0 10px;
    color: var(--wwnr-navy);
    font-size: clamp(20px, 1.8vw, 25px);
    line-height: 1.08;
}

.wwnr-article-copy p {
    margin: 0 0 13px;
    color: var(--wwnr-muted);
    font-size: 14px;
    line-height: 1.6;
}

.wwnr-byline {
    margin-bottom: 14px;
    color: #7d8a93;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wwnr-read-more {
    color: var(--wwnr-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wwnr-empty {
    padding: 36px;
    margin: 28px 0;
    text-align: center;
    border: 1px dashed #c8d0d5;
    background: var(--wwnr-light);
    color: var(--wwnr-muted);
}

.wwnr-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 58px;
    padding: 42px;
    background: var(--wwnr-navy);
    border: 1px solid var(--wwnr-gold);
    color: var(--wwnr-white);
}

.wwnr-cta h2 {
    margin: 6px 0 8px;
    color: var(--wwnr-white);
    font-size: clamp(32px, 3vw, 54px);
    line-height: 1;
}

.wwnr-cta p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.wwnr-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 26px;
    background: var(--wwnr-red);
    color: var(--wwnr-white) !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.18);
}

@media (max-width: 1100px) {
    .wwnr-feature-grid {
        grid-template-columns: 1fr;
    }
    .wwnr-feature-large {
        min-height: 470px;
    }
    .wwnr-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .wwnr-hero {
        padding: 42px 20px 30px;
        background:
            linear-gradient(90deg, rgba(6,27,41,.97), rgba(6,27,41,.88)),
            url('../images/military-budgeting.jpg') center / cover no-repeat,
            var(--wwnr-navy);
    }
    .wwnr-hero p {
        font-size: 15px;
    }
    .wwnr-trending {
        grid-template-columns: 1fr;
    }
    .wwnr-trending-label {
        justify-content: center;
        min-height: 36px;
    }
    .wwnr-trending-window {
        min-height: 58px;
    }
    .wwnr-feature-side,
    .wwnr-section-grid {
        grid-template-columns: 1fr;
    }
    .wwnr-feature-large,
    .wwnr-feature-card {
        min-height: 390px;
    }
    .wwnr-feature-small .wwnr-feature-content h3 {
        font-size: 24px;
    }
    .wwnr-section {
        margin-bottom: 42px;
    }
    .wwnr-article-image {
        height: 210px;
    }
    .wwnr-cta {
        grid-template-columns: 1fr;
        padding: 30px 22px;
    }
    .wwnr-cta-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wwnr-card-image,
    .wwnr-article-card,
    .wwnr-trending-item {
        transition: none !important;
    }
}


/* v3: the host News page already has its own hero, so the plugin begins with Trending Now. */
.wwnr-wrap > .wwnr-trending:first-child {
    border-top: 3px solid var(--wwnr-gold);
}

/* Make preview article photography feel intentionally varied without altering real post featured images. */
.wwnr-section:nth-of-type(even) .wwnr-article-card:nth-child(2) .wwnr-card-image { background-position: 42% center; }
.wwnr-section:nth-of-type(even) .wwnr-article-card:nth-child(3) .wwnr-card-image { background-position: 58% center; }
.wwnr-section:nth-of-type(odd) .wwnr-article-card:nth-child(4) .wwnr-card-image { background-position: 68% center; }
