/**
 * Press Release listing page.
 * Visual language aligned with homepage news / section styling.
 *
 * @package jpd-theme
 */

.jpd-page--press-release {
    color: #292929;
    background: #ffffff;
}

.jpd-press-release-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 56px 0 72px;
}

.jpd-press-release-page__heading {
    margin: 0;
    color: #2a2a2a;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.jpd-press-release-page__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jpd-press-release-page__list.jpd-listing--loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.jpd-listing__empty {
    margin: 0;
    padding: 28px 0;
    color: #4f4f4f;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* ── Top filters (Search By / Show) ── */
.jpd-press-release-filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 26px;
    border: 1px solid #d3d3d3;
    border-radius: 12px;
    background: #f3f3f3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.jpd-press-release-filters__row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 16px 20px;
    align-items: center;
}

.jpd-press-release-filters__row-label {
    color: #2b2b2b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.jpd-press-release-filters__row-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    min-width: 0;
}

.jpd-press-release-filters__select-wrap {
    position: relative;
    flex: 0 1 150px;
    min-width: 132px;
}

.jpd-press-release-filters__select {
    width: 100%;
    height: 44px;
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    padding: 0 40px 0 16px;
    background: #ffffff;
    color: #2b2b2b;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.jpd-press-release-filters__select:hover {
    border-color: #a9a9a9;
}

.jpd-press-release-filters__select:focus {
    border-color: #103d74;
    box-shadow: 0 0 0 3px rgba(16, 61, 116, 0.14);
}

.jpd-press-release-filters__select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.jpd-press-release-filters__select-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #333333;
    pointer-events: none;
    transform: translateY(-50%);
}

.jpd-press-release-filters__select-arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.jpd-press-release-filters__keyword-wrap {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 420px;
}

.jpd-press-release-filters__keyword {
    width: 100%;
    height: 44px;
    border: 1px solid #cfcfcf;
    border-radius: 999px;
    padding: 0 18px;
    background: #ffffff;
    color: #2b2b2b;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1;
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.jpd-press-release-filters__keyword::placeholder {
    color: #9a9a9a;
}

.jpd-press-release-filters__keyword:focus {
    border-color: #103d74;
    box-shadow: 0 0 0 3px rgba(16, 61, 116, 0.14);
}

/* ── News card ── */
.jpd-news-card {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 280px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.jpd-news-card__image-wrap {
    position: relative;
    align-self: stretch;
    min-height: 280px;
    overflow: hidden;
    background: #e8e8e8;
}

.jpd-news-card__image-wrap > a {
    display: block;
    height: 100%;
    min-height: 280px;
}

.jpd-news-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jpd-news-card__image-wrap > a.jpd-news-card__image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: #e8e8e8;
    text-decoration: none;
}

.jpd-news-card__placeholder-logo {
    width: 88%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
}

.jpd-news-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    padding: 12px 0 12px 28px;
    box-sizing: border-box;
}

.jpd-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    line-height: 1.2;
}

.jpd-news-card__category {
    color: var(--jpd-secondary, #e8a020);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.jpd-news-card__category:hover,
.jpd-news-card__category:focus-visible {
    color: #b87d10;
}

.jpd-news-card__meta-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: #c8c8c8;
}

.jpd-news-card__date {
    color: #8a8a8a;
    font-size: 0.92rem;
    line-height: 1;
}

.jpd-news-card__title {
    margin: 0;
    color: #1a1a1a;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.jpd-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.jpd-news-card__title a:hover,
.jpd-news-card__title a:focus-visible {
    color: var(--jpd-secondary, #e8a020);
}

.jpd-news-card__excerpt {
    display: -webkit-box;
    flex: 1;
    margin: 0;
    overflow: hidden;
    color: #6b6b6b;
    font-size: 0.95rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.jpd-news-card__readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    margin-top: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: var(--jpd-secondary, #e8a020);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.jpd-news-card__readmore:hover,
.jpd-news-card__readmore:focus-visible {
    background: #c98912;
    color: #ffffff;
}

.jpd-listing-pagination {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .jpd-press-release-page {
        gap: 20px;
        padding: 40px 0 56px;
    }

    .jpd-press-release-page__heading {
        font-size: 1.45rem;
    }

    .jpd-press-release-filters {
        padding: 18px;
    }

    .jpd-press-release-filters__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jpd-press-release-filters__select-wrap,
    .jpd-press-release-filters__keyword-wrap {
        flex: 1 1 100%;
        max-width: none;
    }

    .jpd-news-card {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: 0;
    }

    .jpd-news-card__image-wrap,
    .jpd-news-card__image-wrap > a,
    .jpd-news-card__image-placeholder {
        min-height: 220px;
    }

    .jpd-news-card__body {
        min-height: 0;
        padding: 0;
    }

    .jpd-news-card__excerpt {
        -webkit-line-clamp: 2;
    }

    .jpd-listing-pagination {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jpd-news-card__readmore,
    .jpd-press-release-filters__select,
    .jpd-press-release-filters__keyword {
        transition: none;
    }
}
