/* ============================================================
   Parker News — "Latest News" card redesign (MOCKUP)
   Scoped entirely under .parker-news-cards so it cannot affect
   the existing [parker_press_releases] widget or anything else.
   Output by the [parker_news_cards] shortcode only.
   Brand: navy #16224f / blue #254CA7 / orange #e8722a
   ============================================================ */

.parker-news-cards .parker-press-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto 1fr;
    column-gap: 32px;
    row-gap: 24px;
    margin: 20px auto;
    max-width: 1320px;
    padding: 20px 24px 32px;
    box-sizing: border-box;
}

/* ---------- Header row ---------- */
.parker-news-cards .parker-press-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.parker-news-cards .parker-press-container h3 {
    color: #16224f !important;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 0;
    padding: 0;
    text-align: left;
    text-transform: uppercase;
}

.parker-news-cards .parker-see-all {
    color: #e8722a !important;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.parker-news-cards .parker-see-all .parker-see-all-arrow {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.parker-news-cards .parker-see-all:hover .parker-see-all-arrow {
    transform: translateX(4px);
}

/* ============================================================
   Featured release (left column) — elevated card
   ============================================================ */
.parker-news-cards .featured-press-release {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    padding: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        -3px -3px 0 #f1f2f6,
        3px 3px 0 #e6e8ee,
        6px 6px 0 #dadde5,
        9px 9px 0 #ced2dc,
        12px 12px 0 #c4c8d4,
        16px 18px 26px rgba(72, 82, 102, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.parker-news-cards .featured-press-release:hover {
    transform: scale(1.0075);
    box-shadow:
        -3px -3px 0 #f1f2f6,
        4px 4px 0 #e6e8ee,
        8px 8px 0 #dadde5,
        12px 12px 0 #ced2dc,
        16px 16px 0 #c4c8d4,
        21px 23px 30px rgba(72, 82, 102, 0.18);
}

/* Image area */
.parker-news-cards .featured-press-release-bg-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #254CA7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parker-news-cards .featured-press-release-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    filter: blur(20px);
    opacity: 0.85;
    z-index: 1;
    transform: scale(1.1);
}

.parker-news-cards .featured-press-release .post-thumbnail {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.parker-news-cards .featured-press-release .post-thumbnail img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
}

/* Text area */
.parker-news-cards .featured-press-release .press-release-info {
    margin: 0;
    padding: 26px 30px 30px;
    text-align: left;
}

.parker-news-cards .featured-press-release h4 {
    margin: 0 0 12px;
    line-height: 1.18;
}

.parker-news-cards .featured-press-release h4 a {
    color: #16224f !important;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.18;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.parker-news-cards .featured-press-release h4 a:hover {
    color: #254CA7 !important;
}

.parker-news-cards .featured-press-release .press-release-info .press-release-date {
    color: #8b8f99;
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.parker-news-cards .featured-press-release .press-release-excerpt a {
    color: #5c6270 !important;
    font-size: 17px;
    font-weight: 400 !important;
    line-height: 1.5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.parker-news-cards .featured-press-release .press-release-excerpt .press-release-arrow {
    color: #e8722a;
    font-weight: 800;
    margin-left: 6px;
    white-space: nowrap;
}

/* Countdown bar — sits flush under the image, drains while a hover preview
   is showing, and on empty the main slot reverts to the original article. */
.parker-news-cards .featured-progress {
    width: 100%;
    height: 5px;
    background: #eef0f4;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.parker-news-cards .featured-progress.is-active {
    opacity: 1;
}

.parker-news-cards .featured-progress-bar {
    width: 100%;
    height: 100%;
    background: #e8722a;
}

/* Brief "appear" pop when the ticker swaps in a new main article — same feel
   as the hover lift, ~1s total. */
@keyframes parker-featured-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.015); }
    100% { transform: scale(1); }
}

.parker-news-cards .featured-press-release.is-refreshed {
    animation: parker-featured-pop 1s ease;
}

/* Main image starts slightly zoomed in and eases back out while shown (~5s). */
@keyframes parker-img-zoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1); }
}

.parker-news-cards .featured-press-release.is-refreshed .post-thumbnail img {
    animation: parker-img-zoom 5s ease-out forwards;
}

/* ============================================================
   Secondary releases (right column) — 3 stacked 3D cards
   ============================================================ */
.parker-news-cards .secondary-press-releases {
    grid-column: 2;
    grid-row: 2;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.parker-news-cards .secondary-press-releases ul {
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parker-news-cards .secondary-press-releases li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 0;
    display: flex;
    border-radius: 16px;
    transition: transform 0.22s ease;
}

.parker-news-cards .secondary-press-releases .secondary-card {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        -3px -3px 0 #f1f2f6,
        3px 3px 0 #e6e8ee,
        6px 6px 0 #dadde5,
        9px 9px 0 #ced2dc,
        12px 14px 20px rgba(72, 82, 102, 0.13);
    transition: opacity 0.25s ease, box-shadow 0.22s ease;
}

/* Dim the secondary articles that aren't currently shown as the main one. */
.parker-news-cards .secondary-press-releases li:not(.is-active) .secondary-card {
    opacity: 0.85;
}

.parker-news-cards .secondary-press-releases li:hover,
.parker-news-cards .secondary-press-releases li.is-active {
    transform: scale(1.02);
    z-index: 2;
}

.parker-news-cards .secondary-press-releases li:hover .secondary-card,
.parker-news-cards .secondary-press-releases li.is-active .secondary-card {
    box-shadow:
        -3px -3px 0 #f1f2f6,
        4px 4px 0 #e6e8ee,
        7px 7px 0 #dadde5,
        11px 11px 0 #ced2dc,
        15px 17px 24px rgba(72, 82, 102, 0.15);
}

/* Rounded-corner thumbnail (matches the card radius) */
.parker-news-cards .secondary-press-releases .secondary-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f8;
    box-shadow: 0 4px 10px rgba(20, 35, 80, 0.12);
}

.parker-news-cards .secondary-press-releases .secondary-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.parker-news-cards .secondary-press-releases .secondary-thumb-fallback {
    color: #254CA7;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

/* Card content */
.parker-news-cards .secondary-press-releases .secondary-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parker-news-cards .secondary-press-releases a.secondary-title {
    color: #16224f;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.parker-news-cards .secondary-press-releases a.secondary-title:hover {
    color: #254CA7;
}

.parker-news-cards .secondary-press-releases .secondary-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.parker-news-cards .secondary-press-releases .secondary-meta .press-release-date {
    color: #8b8f99;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.parker-news-cards .secondary-press-releases .secondary-arrow {
    color: #e8722a;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease;
}

.parker-news-cards .secondary-press-releases li:hover .secondary-arrow,
.parker-news-cards .secondary-press-releases li.is-active .secondary-arrow {
    transform: translateX(4px);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1215px) {
    .parker-news-cards .parker-press-container {
        column-gap: 24px;
        row-gap: 20px;
    }

    .parker-news-cards .parker-press-container h3 {
        font-size: 38px;
    }

    .parker-news-cards .featured-press-release h4 a {
        font-size: 24px;
    }

    .parker-news-cards .secondary-press-releases a.secondary-title {
        font-size: 18px;
    }
}

@media (max-width: 900px) {
    .parker-news-cards .parker-press-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .parker-news-cards .featured-press-release {
        grid-column: 1;
        grid-row: 2;
    }

    .parker-news-cards .secondary-press-releases {
        grid-column: 1;
        grid-row: 3;
    }

    .parker-news-cards .secondary-press-releases ul {
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .parker-news-cards .parker-press-container {
        padding: 16px 14px 24px;
    }

    .parker-news-cards .parker-press-container h3 {
        font-size: 30px;
    }

    .parker-news-cards .parker-see-all {
        font-size: 17px;
    }

    .parker-news-cards .featured-press-release h4 a {
        font-size: 21px;
    }

    .parker-news-cards .featured-press-release .press-release-info {
        padding: 20px 20px 24px;
    }

    .parker-news-cards .secondary-press-releases .secondary-thumb {
        width: 60px;
        height: 60px;
    }

    .parker-news-cards .secondary-press-releases li {
        padding: 18px 20px;
        gap: 16px;
    }
}

/* ============================================================
   VARIANT MODIFIERS — chosen via the shortcode's variant="..."
   Placed last so they override the base card chrome at equal
   specificity. Each modifier lives on the root wrapper, so it
   only affects its own shortcode instance.
   ============================================================ */

/* "full" + "no-featured-bg" (i.e. everything except no-secondary-bg): tint the
   secondary card background with 5% #254CA7 over white. Layered so the card
   stays fully opaque. */
.parker-news-cards:not(.parker-news-cards--no-secondary-bg) .secondary-press-releases .secondary-card {
    background:
        linear-gradient(rgba(37, 76, 167, 0.05), rgba(37, 76, 167, 0.05)),
        #ffffff;
}

/* variant="no-featured-bg" — main article WITHOUT its 3D card container */
.parker-news-cards--no-featured-bg .featured-press-release {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.parker-news-cards--no-featured-bg .featured-press-release:hover {
    transform: none;
    box-shadow: none;
}

.parker-news-cards--no-featured-bg .featured-press-release-bg-container {
    border-radius: 14px;     /* keep the photo itself rounded */
    overflow: hidden;
}

.parker-news-cards--no-featured-bg .featured-press-release .press-release-info {
    padding: 18px 2px 0;     /* drop the card padding; align text to the image edge */
}

/* variant="no-secondary-bg" — uses the base 3D cards as-is. Its only distinction
   is in the PHP: the main article is also the first secondary card, then 3 more. */

