/**
 * TPT Hub Showcase - scoped front-end styles.
 * Marker: TPT_HUB_SHOWCASE_WP_V1_20261106
 */

.tpt-hub-showcase {
    --tpt-navy: #0a2239;
    --tpt-gold: #f5b324;
    --tpt-cream: #fbf7ee;
    --tpt-ink: #1d2b36;
    --tpt-muted: #5c6b76;
    --tpt-line: #e6dfd1;
    box-sizing: border-box;
    margin: 1.75rem 0;
    color: var(--tpt-ink);
    font-family: inherit;
}

.tpt-hub-showcase *,
.tpt-hub-showcase *::before,
.tpt-hub-showcase *::after {
    box-sizing: border-box;
}

.tpt-hub-showcase__title {
    margin: 0 0 0.4rem;
    color: var(--tpt-navy);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.tpt-hub-showcase__intro {
    margin: 0 0 1.1rem;
    max-width: 52rem;
    color: var(--tpt-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.tpt-hub-showcase__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tpt-hub-showcase__card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--tpt-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(10, 34, 57, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.tpt-hub-showcase__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(10, 34, 57, 0.12);
}

.tpt-hub-showcase__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tpt-hub-showcase__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    background: linear-gradient(135deg, var(--tpt-navy), #143b5e);
    overflow: hidden;
}

.tpt-hub-showcase__media img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.tpt-hub-showcase__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: var(--tpt-gold);
    color: var(--tpt-navy);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.tpt-hub-showcase__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.05rem 1.15rem;
}

.tpt-hub-showcase__eyebrow {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--tpt-cream);
    color: #7a5a10;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tpt-hub-showcase__name {
    margin: 0.15rem 0 0;
    color: var(--tpt-navy);
    font-size: 1.08rem;
    line-height: 1.3;
}

.tpt-hub-showcase__meta {
    margin: 0;
    color: var(--tpt-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.tpt-hub-showcase__summary {
    margin: 0.15rem 0 0;
    color: var(--tpt-ink);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tpt-hub-showcase__pill {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #e8f4ec;
    color: #1f6b3a;
    font-size: 0.75rem;
    font-weight: 700;
}

.tpt-hub-showcase__cta {
    margin-top: auto;
    padding-top: 0.65rem;
    color: var(--tpt-navy);
    font-size: 0.88rem;
    font-weight: 700;
}

.tpt-hub-showcase__cta span {
    color: var(--tpt-gold);
}

/* TPT_HUB_SHOWCASE_VOLUNTEER_ELEMENTS_V1_20261106: real direct Apply button. */
.tpt-hub-showcase__button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--tpt-navy);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 150ms ease;
}

.tpt-hub-showcase__button:hover,
.tpt-hub-showcase__button:focus {
    background: #143b5e;
    color: #fff;
    text-decoration: none;
}

.tpt-hub-showcase__button span {
    color: var(--tpt-gold);
}

.tpt-hub-showcase__footer {
    margin-top: 1rem;
}

.tpt-hub-showcase__more {
    color: var(--tpt-navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--tpt-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.tpt-hub-showcase__empty {
    margin: 0.5rem 0;
    padding: 1rem;
    border: 1px dashed var(--tpt-line);
    border-radius: 12px;
    background: var(--tpt-cream);
    color: var(--tpt-muted);
}

/* List layout: one item per row with media on the left. */
.tpt-hub-showcase--list .tpt-hub-showcase__grid {
    grid-template-columns: 1fr;
}

.tpt-hub-showcase--list .tpt-hub-showcase__card-link,
.tpt-hub-showcase--list .tpt-hub-showcase__card--opportunity {
    flex-direction: row;
    align-items: stretch;
}

.tpt-hub-showcase--list .tpt-hub-showcase__media,
.tpt-hub-showcase--list .tpt-hub-showcase__card--opportunity .tpt-hub-showcase__media {
    flex: 0 0 190px;
    min-height: 100%;
}

.tpt-hub-showcase--list .tpt-hub-showcase__media img {
    height: 100%;
    min-height: 132px;
}

.tpt-hub-showcase--list .tpt-hub-showcase__body,
.tpt-hub-showcase--list .tpt-hub-showcase__card--opportunity .tpt-hub-showcase__body {
    justify-content: center;
}

/* Compact layout: text-only rows. */
.tpt-hub-showcase--compact .tpt-hub-showcase__grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.tpt-hub-showcase--compact .tpt-hub-showcase__card {
    border-radius: 10px;
    box-shadow: none;
}

.tpt-hub-showcase--compact .tpt-hub-showcase__body {
    padding: 0.75rem 0.9rem;
}

.tpt-hub-showcase--compact .tpt-hub-showcase__name {
    font-size: 0.98rem;
}

.tpt-hub-showcase--compact .tpt-hub-showcase__cta {
    padding-top: 0.3rem;
}

@media (max-width: 560px) {
    .tpt-hub-showcase__grid {
        grid-template-columns: 1fr;
    }

    .tpt-hub-showcase--list .tpt-hub-showcase__card-link {
        flex-direction: column;
    }

    .tpt-hub-showcase--list .tpt-hub-showcase__media {
        flex-basis: auto;
    }

    .tpt-hub-showcase--list .tpt-hub-showcase__media img {
        height: 168px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tpt-hub-showcase__card {
        transition: none;
    }
}

/* Visitor search */
.tpt-hub-showcase__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 1.1rem;
}

.tpt-hub-showcase__search input[type="search"] {
    flex: 1 1 240px;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--tpt-line);
    border-radius: 10px;
    background: #fff;
    color: var(--tpt-ink);
    font: inherit;
}

.tpt-hub-showcase__search input[type="search"]:focus {
    border-color: var(--tpt-gold);
    outline: 2px solid rgba(245, 179, 36, 0.35);
    outline-offset: 1px;
}

.tpt-hub-showcase__search button {
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 10px;
    background: var(--tpt-navy);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.tpt-hub-showcase__search button:hover,
.tpt-hub-showcase__search button:focus {
    background: #143b5e;
}

.tpt-hub-showcase__clear {
    color: var(--tpt-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.tpt-hub-showcase__section-title {
    margin: 1.4rem 0 0.7rem;
    color: var(--tpt-navy);
    font-size: 1.12rem;
    line-height: 1.25;
}

.tpt-hub-showcase__section-title:first-of-type {
    margin-top: 0.2rem;
}

.tpt-hub-showcase__grid--events,
.tpt-hub-showcase__grid--roles {
    margin-bottom: 0.35rem;
}

@media (max-width: 560px) {
    .tpt-hub-showcase__search {
        align-items: stretch;
    }

    .tpt-hub-showcase__search button {
        width: 100%;
    }
}
