/* ============================================================
   GreenBayPackers.eu — Articles Hub (Články page)
   Template: template-articles.php
   ============================================================ */


/* ── Page wrapper ──────────────────────────────────────────  */
.gbp-articles-page {
    background: var(--gbp-bg-dark);
}


/* ══ A. HERO ════════════════════════════════════════════════ */
.gbp-articles-hero {
    position: relative;
    padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px);
    overflow: hidden;
    background: #203731;
    border-bottom: 1px solid rgba(255, 182, 18, 0.18);
}

/* Gold top border */
.gbp-articles-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent               0%,
        rgba(255, 182, 18, 0.08)  8%,
        rgba(255, 182, 18, 0.22) 40%,
        rgba(255, 182, 18, 0.22) 70%,
        rgba(255, 182, 18, 0.05) 92%,
        transparent              100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Player portrait — celá výška (menší hráč), ukotvený vpravo */
.gbp-articles-hero__player {
    position: absolute;
    inset: 0;
    background: url('../images/ClankyPozadie.jpg') right center / auto 100% no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* Gradient — plne tmavý až po hranu obrázka (skryje sek), potom fade do hráča */
.gbp-articles-hero__player::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        #203731                0%,
        #203731               50%,
        rgba(32, 55, 49, 0.88) 60%,
        rgba(32, 55, 49, 0.55) 70%,
        rgba(32, 55, 49, 0.22) 80%,
        rgba(32, 55, 49, 0.05) 90%,
        transparent           100%
    );
    pointer-events: none;
}

.gbp-articles-hero__content {
    position: relative;
    z-index: 3;
    max-width: var(--width-narrow);
}

.gbp-articles-hero__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: #d49a0a;
    margin-bottom: var(--space-4);
}

.gbp-articles-hero__title {
    font-family: var(--font-headline);
    font-size: var(--text-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    color: #F8F5EE;
    margin: 0 0 var(--space-6);
    position: relative;
}
.gbp-articles-hero__title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--packers-gold);
    margin-top: var(--space-4);
    border-radius: 2px;
}

.gbp-articles-hero__intro {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: #FFFFFF;
    line-height: var(--lh-relaxed);
    max-width: 640px;
    margin: 0 0 var(--space-10);
}

/* Stats strip */
.gbp-articles-hero__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.gbp-articles-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}
.gbp-articles-stat + .gbp-articles-stat::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-4));
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: var(--gbp-divider-gold);
}

.gbp-articles-stat__value {
    font-family: var(--font-headline);
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--packers-gold);
    line-height: var(--lh-tight);
}

.gbp-articles-stat__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: #FFFFFF;
}

@media (max-width: 600px) {
    .gbp-articles-hero__stats { gap: var(--space-6); }
    .gbp-articles-stat + .gbp-articles-stat::before { left: calc(-1 * var(--space-3)); }
    .gbp-articles-hero__player {
        background-position: 12% center;
        background-size: cover;
    }
}


/* ══ B. FEATURED ARTICLES ═══════════════════════════════════ */
.gbp-articles-featured {
    padding: var(--space-12) 0;
    background: var(--gbp-bg-dark);
    border-bottom: 1px solid var(--gbp-divider);
}

/* Desktop: large card left (2/3) + side column right (1/3) */
.gbp-af-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-6);
    align-items: start;
}

@media (max-width: 768px) {
    .gbp-af-grid { grid-template-columns: 1fr; }
}

/* Side column: 2 stacked article cards */
.gbp-af-grid__side {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
}


/* ── Featured hero card (solid vertical: image top, content below) ────────  */
.gbp-card-featured {
    display: flex;
    flex-direction: column;
    background: var(--gbp-card-dark);
    border: 1px solid var(--gbp-card-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--shadow-panel);
    height: 100%;
    transition: border-color var(--transition-base), box-shadow var(--transition-base),
                transform var(--transition-base);
}
@media (prefers-reduced-motion: no-preference) {
    .gbp-card-featured:hover {
        border-color: var(--gbp-card-border-hover);
        box-shadow: var(--shadow-card-hover), var(--shadow-gold);
        transform: translateY(-3px);
    }
    .gbp-card-featured:hover .gbp-card-featured__img {
        transform: scale(1.04);
    }
}

/* Image area — 16:9 aspect ratio, flex-shrink: 0 */
.gbp-card-featured__img-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.gbp-card-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

/* Placeholder fills the image area */
.gbp-card-featured .gbp-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border-radius: 0;
}

/* Content area */
.gbp-card-featured__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-6) var(--space-5);
    flex: 1;
}

.gbp-card-featured__meta-top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.gbp-card-featured__date {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--gbp-muted-dark);
}

.gbp-card-featured__title {
    font-family: var(--font-headline);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    margin: 0;
    flex: 1;
}
.gbp-card-featured__title a {
    color: var(--gbp-white-soft);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.gbp-card-featured__title a:hover { color: var(--packers-gold); }

.gbp-card-featured__excerpt {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--gbp-muted);
    line-height: var(--lh-normal);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.gbp-card-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding-top: var(--space-4);
    border-top: 1px solid var(--gbp-divider);
    margin-top: auto;
}

.gbp-card-featured__byline {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    min-width: 0;
}
.gbp-card-featured__author {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gbp-white-soft);
}
.gbp-card-featured__sep {
    color: var(--gbp-muted-dark);
    font-size: var(--text-xs);
}
.gbp-card-featured__read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--gbp-muted);
    white-space: nowrap;
}


/* ── Article grid card ─────────────────────────────────────  */
.gbp-article-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #071308 0%, #122418 62%, #050C08 100%);
    border: 1px solid var(--gbp-card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-base), box-shadow var(--transition-base),
                transform var(--transition-base);
    height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
    .gbp-article-card:hover {
        border-color: var(--gbp-card-border-hover);
        box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(255,182,18,0.08);
        transform: translateY(-3px);
    }
    .gbp-article-card:hover .gbp-article-card__img-wrap img {
        transform: scale(1.04);
    }
}

.gbp-article-card__img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.gbp-article-card__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,12,8,0.82) 0%, rgba(5,12,8,0.22) 45%, rgba(5,12,8,0.02) 100%);
    pointer-events: none;
    z-index: 1;
}
.gbp-article-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

/* Category badge — absolute over the image */
.gbp-article-card__cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: auto;
    font-size: 10px;
    padding: 4px 10px;
    line-height: 1.4;
}

.gbp-article-card__inner {
    padding: var(--space-4) var(--space-5) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.gbp-article-card__title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gbp-article-card__title a {
    color: var(--gbp-white-soft);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.gbp-article-card__title a:hover { color: var(--packers-gold); }

.gbp-article-card__excerpt {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--gbp-muted);
    line-height: var(--lh-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

.gbp-article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255,182,18,0.08);
    margin-top: auto;
    flex-wrap: wrap;
}

.gbp-article-card__byline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    flex: 1;
}
.gbp-article-card__author {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--gbp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gbp-article-card__read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--gbp-muted-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.gbp-article-card__time {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--gbp-muted-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.gbp-article-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-headline);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--gbp-muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: color var(--transition-fast), gap var(--transition-fast);
}
.gbp-article-card__cta:hover {
    color: var(--packers-gold);
    gap: 8px;
}
.gbp-article-card__cta svg {
    transition: transform var(--transition-fast);
}
.gbp-article-card__cta:hover svg {
    transform: translateX(2px);
}

/* Side-column card: horizontal layout, wider image, excerpt visible */
.gbp-af-grid__side .gbp-article-card {
    flex-direction: row;
    min-height: unset;
    border-radius: var(--radius-md);
    flex: 1;
}
.gbp-af-grid__side .gbp-article-card__img-wrap {
    width: 44%;
    min-width: 160px;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-radius: 0;
}
.gbp-af-grid__side .gbp-article-card__cat-badge {
    top: 10px;
    left: 10px;
}
.gbp-af-grid__side .gbp-article-card__inner {
    padding: var(--space-5);
    gap: var(--space-2);
    justify-content: center;
}
.gbp-af-grid__side .gbp-article-card__title {
    font-size: var(--text-h5);
    font-weight: 700;
    -webkit-line-clamp: 2;
}
.gbp-af-grid__side .gbp-article-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    font-size: var(--text-xs);
}
.gbp-af-grid__side .gbp-article-card__footer {
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255,182,18,0.08);
}

@media (max-width: 600px) {
    .gbp-af-grid__side .gbp-article-card { flex-direction: column; }
    .gbp-af-grid__side .gbp-article-card__img-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-width: unset;
    }
}


/* ══ C. FILTER BAR ══════════════════════════════════════════ */
.gbp-articles-filters-wrap {
    background: #020E0A;
    border-bottom: 1px solid rgba(255, 182, 18, 0.15);
    /* NOT sticky — compact bar handles sticky at scroll */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40);
}

/* Main filter container */
.gbp-filters {
    padding: var(--space-4) 0;
}

/* Mobile toggle button */
.gbp-filters__mobile-toggle {
    display: none;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 182, 18, 0.08);
    border: 1px solid rgba(255, 182, 18, 0.25);
    color: var(--gbp-white-soft);
    font-family: var(--font-headline);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    width: 100%;
}
.gbp-filters__mobile-toggle:hover {
    background: rgba(255, 182, 18, 0.14);
    border-color: rgba(255, 182, 18, 0.45);
}

.gbp-filters__toggle-chevron {
    margin-left: auto;
    transition: transform var(--transition-fast);
    color: var(--gbp-muted);
}
.gbp-filters__mobile-toggle[aria-expanded="true"] .gbp-filters__toggle-chevron {
    transform: rotate(180deg);
}

.gbp-filters__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--packers-gold);
    color: #07130D;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
    flex-shrink: 0;
}

/* Filter body */
.gbp-filters__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Form */
.gbp-filters__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Filter rows */
.gbp-filters__row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.gbp-filters__row-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--gbp-muted-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Pills row ─────────────────────────────────────────────  */
.gbp-filters__row--pills {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    overflow-x: visible;
    padding-bottom: 0;
}

.gbp-filters__pills-track {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.gbp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gbp-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    user-select: none;
}
.gbp-filter-pill:hover {
    background: rgba(255, 182, 18, 0.08);
    border-color: rgba(255, 182, 18, 0.35);
    color: var(--gbp-white-soft);
}
.gbp-filter-pill--active {
    background: var(--packers-gold);
    border-color: var(--packers-gold);
    color: #07130D;
    box-shadow: 0 0 12px rgba(255, 182, 18, 0.25);
}
.gbp-filter-pill--active:hover {
    background: #FFCA44;
    border-color: #FFCA44;
    color: #07130D;
}

.gbp-filter-pill__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gbp-filter-pill__count {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.6;
}
.gbp-filter-pill--active .gbp-filter-pill__count { opacity: 0.7; }

/* ── Controls row ──────────────────────────────────────────  */
.gbp-filters__row--controls {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

/* Select wrapper */
.gbp-filter-select-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    position: relative;
    flex-shrink: 0;
}

.gbp-filter-select__label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--gbp-muted-dark);
}

/* Wrapper needed for custom chevron positioning */
.gbp-filter-select__inner {
    position: relative;
    display: flex;
    align-items: center;
}
.gbp-filter-select__inner .gbp-filter-select__chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gbp-muted);
}

.gbp-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--gbp-white-soft);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: 9px 36px 9px 12px;
    cursor: pointer;
    outline: none;
    min-width: 140px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.gbp-filter-select:focus {
    border-color: var(--packers-gold);
    box-shadow: 0 0 0 3px rgba(255, 182, 18, 0.15);
}
.gbp-filter-select option {
    background: #0D1F15;
    color: var(--gbp-white-soft);
}

/* Search wrapper */
.gbp-filter-search-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
    min-width: 200px;
}

.gbp-filter-search {
    position: relative;
    display: flex;
    align-items: center;
}
.gbp-filter-search__icon {
    position: absolute;
    left: 12px;
    color: var(--gbp-muted-dark);
    pointer-events: none;
    flex-shrink: 0;
}
.gbp-filter-search__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: var(--gbp-white-soft);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: 9px 40px 9px 38px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.gbp-filter-search__input::placeholder { color: var(--gbp-muted-dark); }
.gbp-filter-search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.gbp-filter-search__input::-webkit-search-decoration { display: none; }
.gbp-filter-search__input::-ms-clear { display: none; }
.gbp-filter-search__input:focus {
    border-color: var(--packers-gold);
    box-shadow: 0 0 0 3px rgba(255, 182, 18, 0.15);
}

.gbp-filter-search__clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--gbp-muted-dark);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}
.gbp-filter-search__clear:hover { color: var(--gbp-white-soft); }

/* Reset link */
.gbp-filters__reset {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px 14px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--gbp-muted);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    align-self: flex-end;
}
.gbp-filters__reset:hover {
    color: var(--gbp-error);
    border-color: rgba(231, 76, 60, 0.35);
    background: rgba(231, 76, 60, 0.06);
}

/* Submit button — always visible, hidden by JS after dropdowns auto-submit */
.gbp-filters__submit-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px 18px;
    background: rgba(255, 182, 18, 0.12);
    color: var(--packers-gold);
    font-family: var(--font-headline);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    border: 1.5px solid rgba(255, 182, 18, 0.35);
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-end;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.gbp-filters__submit-btn:hover {
    background: var(--packers-gold);
    border-color: var(--packers-gold);
    color: #07130D;
}
/* JS hides it once auto-submit is wired up */
.gbp-filters--js-ready .gbp-filters__submit-btn { display: none; }

/* ── Mobile filter bar (cat trigger + filter toggle) ────────  */
.gbp-filters__mobile-bar { display: none; }
.gbp-filters__cat-trigger { display: none; }

/* ── Category bottom sheet ───────────────────────────────────  */
.gbp-filters__cat-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.gbp-filters__cat-sheet[hidden] { display: none; }
.gbp-filters__cat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}
.gbp-filters__cat-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #F8F5EE;
    border-top: 3px solid #203731;
    border-radius: 20px 20px 0 0;
    padding: 12px 0 32px;
    animation: gbp-sheet-up 0.28s cubic-bezier(0.32,0.72,0,1);
    max-height: 80vh;
    overflow-y: auto;
}
@keyframes gbp-sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.gbp-filters__cat-handle {
    width: 40px; height: 4px;
    background: rgba(32,55,49,0.18);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.gbp-filters__cat-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(32,55,49,0.5);
    margin: 0 0 8px;
    padding: 0 20px;
}
.gbp-filters__cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gbp-filters__cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #203731;
    text-decoration: none;
    border-bottom: 1px solid rgba(32,55,49,0.07);
    transition: background 0.15s;
}
.gbp-filters__cat-item:hover { background: rgba(32,55,49,0.04); }
.gbp-filters__cat-item.is-active { font-weight: 700; color: #203731; }
.gbp-filters__cat-check { color: #203731; flex-shrink: 0; }

/* ── Mobile filter layout ───────────────────────────────────  */
@media (max-width: 767px) {
    .gbp-articles-filters-wrap {
        padding-top: var(--space-2);
        padding-bottom: var(--space-2);
    }

    /* Show mobile bar, hide desktop pills */
    .gbp-filters__mobile-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    .gbp-filters__row--pills-always { display: none !important; }

    /* Category trigger button */
    .gbp-filters__cat-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
        padding: 10px 14px;
        background: #FFFFFF;
        border: 1.5px solid rgba(32,55,49,0.22);
        border-radius: 12px;
        color: #203731;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        text-transform: none;
        letter-spacing: 0;
        cursor: pointer;
        transition: border-color 0.18s;
        text-align: left;
        overflow: visible;
    }
    .gbp-filters__cat-trigger:hover { border-color: #203731; }
    .gbp-filters__cat-trigger span {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Advanced filter toggle */
    .gbp-filters__mobile-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        background: #FFFFFF;
        border: 1.5px solid rgba(32,55,49,0.22);
        border-radius: 12px;
        color: #203731;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        text-transform: none;
        letter-spacing: 0;
        cursor: pointer;
        white-space: nowrap;
        width: auto;
        flex-shrink: 0;
        transition: border-color 0.18s, background 0.18s;
    }
    .gbp-filters__mobile-toggle:hover { border-color: #203731; }
    .gbp-filters__mobile-toggle[aria-expanded="true"] {
        background: #203731;
        border-color: #203731;
        color: #F8F5EE;
    }

    /* Filters body hidden by default on mobile */
    .gbp-filters__body {
        display: none;
        padding-top: 0;
    }
    .gbp-filters__body.is-open {
        display: flex;
    }

    .gbp-filters__row--controls {
        flex-direction: column;
        align-items: stretch;
    }

    .gbp-filter-select-wrap { flex: 1; }
    .gbp-filter-select { min-width: unset; width: 100%; min-height: 44px; }
    .gbp-filter-search-wrap { min-width: unset; }
    .gbp-filter-search__input { min-height: 44px; }
    .gbp-filters__reset { align-self: flex-start; }
}

@keyframes gbp-fade-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ══ D. ARTICLES GRID ═══════════════════════════════════════ */
.gbp-articles-grid-section {
    padding: var(--space-10) 0 var(--space-20);
}

/* Results count / header */
.gbp-articles-results-bar {
    display: flex;
    align-items: center;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--gbp-divider);
    margin-bottom: var(--space-8);
}

.gbp-articles-results-count {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--gbp-muted);
    margin: 0;
}

/* 3-column responsive grid */
.gbp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1023px) {
    .gbp-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gbp-articles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

/* Grid cards — override side-column horizontal layout */
.gbp-articles-grid .gbp-article-card { flex-direction: column; }
.gbp-articles-grid .gbp-article-card__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
}
.gbp-articles-grid .gbp-article-card__excerpt { display: -webkit-box; }


/* ── Pagination ────────────────────────────────────────────  */
.gbp-articles-pagination {
    margin-top: var(--space-12);
    display: flex;
    justify-content: center;
}

.gbp-articles-pagination .page-numbers {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0;
    margin: 0;
}

.gbp-articles-pagination .page-numbers li a,
.gbp-articles-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gbp-muted);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.gbp-articles-pagination .page-numbers li a:hover {
    background: rgba(255, 182, 18, 0.10);
    border-color: rgba(255, 182, 18, 0.40);
    color: var(--gbp-white-soft);
}

.gbp-articles-pagination .page-numbers li span.current {
    background: var(--packers-gold);
    border-color: var(--packers-gold);
    color: #07130D;
    font-weight: 700;
}

.gbp-articles-pagination .page-numbers li .prev,
.gbp-articles-pagination .page-numbers li .next {
    font-family: var(--font-headline);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    font-size: var(--text-xs);
    padding: 0 var(--space-5);
}


/* ══ E. EMPTY STATE ═════════════════════════════════════════ */
.gbp-articles-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(64px, 10vw, 120px) var(--space-6);
    gap: var(--space-5);
}

.gbp-articles-empty__icon {
    opacity: 0.7;
    margin-bottom: var(--space-2);
}

.gbp-articles-empty__title {
    font-family: var(--font-headline);
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--gbp-white-soft);
    letter-spacing: var(--ls-tight);
    max-width: 480px;
    margin: 0;
}

.gbp-articles-empty__text {
    font-family: var(--font-body);
    font-size: var(--text-md);
    color: var(--gbp-muted);
    max-width: 380px;
    margin: 0;
}


/* ── Image placeholder ─────────────────────────────────────  */
.gbp-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #203731 0%, #07130D 60%, #10291B 100%);
    width: 100%;
    height: 100%;
}
.gbp-img-placeholder--large  { min-height: 320px; }
.gbp-img-placeholder--medium { min-height: 180px; }

.gbp-img-placeholder__g {
    font-family: var(--font-headline);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    color: rgba(255, 182, 18, 0.25);
    line-height: 1;
    user-select: none;
}


/* ── Reduced motion overrides ──────────────────────────────  */
@media (prefers-reduced-motion: reduce) {
    .gbp-card-featured,
    .gbp-article-card,
    .gbp-filter-pill,
    .gbp-filter-select,
    .gbp-filter-search__input,
    .gbp-filters__body {
        transition: none;
        animation: none;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   COMPACT STICKY BAR
   Appears (fixed) when full filter panel scrolls out of viewport.
   ══════════════════════════════════════════════════════════════════════════ */

.gbp-articles-compact-bar {
    position: fixed;
    top: calc(var(--wp-admin-bar-offset) + var(--gbp-header-h, 72px)); /* sticks below header + admin bar */
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(2, 14, 10, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 182, 18, 0.18);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
    z-index: 150; /* below header (200) so nav dropdowns stay visible */

    /* Hidden until JS activates it */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.32, 0, 0.67, 0),
                opacity    0.22s ease;
    will-change: transform, opacity;
}

.gbp-articles-compact-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1),
                opacity    0.22s ease;
}

/* ── Row layout ─────────────────────────────────────────────  */
.gbp-cab__row {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 10px;
}

/* ── Label ──────────────────────────────────────────────────  */
.gbp-cab__label {
    font-family: var(--font-headline);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--packers-gold);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Active filter summary ──────────────────────────────────  */
.gbp-cab__summary {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--packers-gold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
    flex-shrink: 1;
    /* Subtle separator: left border */
    padding-left: 12px;
    border-left: 1px solid rgba(255, 182, 18, 0.22);
    margin-left: 2px;
}

/* ── Spacer (pushes right elements to the end) ──────────────  */
.gbp-cab__spacer { flex: 1; min-width: 8px; }

/* ── Result count ───────────────────────────────────────────  */
.gbp-cab__count {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--gbp-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Inline search (desktop only) ──────────────────────────  */
.gbp-cab__search-form { flex-shrink: 0; }

.gbp-cab__search {
    position: relative;
    display: flex;
    align-items: center;
}

.gbp-cab__search-icon {
    position: absolute;
    left: 9px;
    color: var(--gbp-muted-dark);
    pointer-events: none;
    flex-shrink: 0;
}

.gbp-cab__search input[type="search"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    color: var(--gbp-white-soft);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 7px 10px 7px 30px;
    width: 170px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, width 0.2s ease;
    -webkit-appearance: none;
}
.gbp-cab__search input[type="search"]::placeholder { color: var(--gbp-muted-dark); }
.gbp-cab__search input[type="search"]:focus {
    border-color: rgba(255, 182, 18, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 182, 18, 0.12);
    width: 220px;
}
/* Hide native cancel button */
.gbp-cab__search input[type="search"]::-webkit-search-cancel-button { display: none; }

/* ── Filtre button ──────────────────────────────────────────  */
.gbp-cab__filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    background: rgba(255, 182, 18, 0.08);
    border: 1px solid rgba(255, 182, 18, 0.25);
    border-radius: var(--radius-md);
    color: var(--gbp-white-soft);
    font-family: var(--font-headline);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.gbp-cab__filters-btn:hover {
    background: rgba(255, 182, 18, 0.14);
    border-color: rgba(255, 182, 18, 0.45);
    color: var(--packers-gold);
}
.gbp-cab__filters-btn[aria-expanded="true"] {
    background: rgba(255, 182, 18, 0.16);
    border-color: rgba(255, 182, 18, 0.55);
    color: var(--packers-gold);
}

.gbp-cab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: var(--packers-gold);
    color: #07130D;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}

/* ── Mobile search icon button (shown only on mobile) ───────  */
.gbp-cab__search-icon-btn {
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    color: var(--gbp-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.gbp-cab__search-icon-btn:hover {
    background: rgba(255, 182, 18, 0.10);
    color: var(--gbp-white-soft);
}

/* ── Mobile compact bar ─────────────────────────────────────  */
@media (max-width: 767px) {
    .gbp-articles-compact-bar {
        top: 60px;
        height: 56px;
    }
    .gbp-cab__row { height: 56px; gap: 8px; }
    .gbp-cab__count { display: none; }
    .gbp-cab__search-form { display: none; }
    .gbp-cab__filters-label { display: none; }
    .gbp-cab__filters-btn { padding: 8px 12px; gap: 0; }
    .gbp-cab__search-icon-btn { display: flex; }
    /* Truncate summary aggressively — show just cat name usually */
    .gbp-cab__summary { max-width: clamp(60px, 28vw, 130px); }
    .gbp-cab__spacer { flex: 1; }
}


/* ══════════════════════════════════════════════════════════════════════════
   FILTER DRAWER  (desktop: floating panel; mobile: bottom sheet)
   ══════════════════════════════════════════════════════════════════════════ */

.gbp-filter-drawer {
    display: none; /* JS adds .is-open */
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay); /* 300 */
}

.gbp-filter-drawer.is-open { display: block; }

/* Backdrop */
.gbp-filter-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gbp-filter-drawer.is-open .gbp-filter-drawer__backdrop { opacity: 1; }

/* ── Panel (mobile bottom sheet default) ────────────────────  */
.gbp-filter-drawer__panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: #0D1F15;
    border-top: 1px solid rgba(255, 182, 18, 0.2);
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 12px);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.32, 0, 0.67, 0),
                opacity    0.22s ease;
}
.gbp-filter-drawer.is-open .gbp-filter-drawer__panel {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.34s cubic-bezier(0.33, 1, 0.68, 1),
                opacity    0.22s ease;
}

/* ── Panel (desktop floating panel) ─────────────────────────  */
@media (min-width: 768px) {
    .gbp-filter-drawer__panel {
        position: absolute;
        top: calc(72px + 64px + 6px); /* nav + compact bar + gap */
        right: 20px;
        bottom: auto;
        left: auto;
        width: 480px;
        max-width: calc(100vw - 40px);
        border-radius: 14px;
        border: 1px solid rgba(255, 182, 18, 0.2);
        max-height: calc(100vh - 180px);
        transform: translateY(-12px) scale(0.97);
        transform-origin: top right;
    }
    .gbp-filter-drawer.is-open .gbp-filter-drawer__panel {
        transform: translateY(0) scale(1);
    }
    /* Search section in drawer hidden on desktop (it's in the bar) */
    .gbp-filter-drawer__search-section { display: none; }
    /* Backdrop on desktop transparent (click-to-close still works) */
    .gbp-filter-drawer__backdrop { background: transparent; }
}

/* ── Header ─────────────────────────────────────────────────  */
.gbp-filter-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(255, 182, 18, 0.10);
}

.gbp-filter-drawer__title {
    font-family: var(--font-headline);
    font-size: var(--text-h5);
    font-weight: 700;
    letter-spacing: var(--ls-tight);
    color: var(--gbp-white-soft);
}

.gbp-filter-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-full, 999px);
    color: var(--gbp-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.gbp-filter-drawer__close:hover {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.3);
    color: var(--gbp-error, #e74c3c);
}

/* ── Body ───────────────────────────────────────────────────  */
.gbp-filter-drawer__body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ── Section: category pills ────────────────────────────────  */
.gbp-filter-drawer__section { display: flex; flex-direction: column; gap: var(--space-3); }

.gbp-filter-drawer__section-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--gbp-muted-dark);
    margin: 0;
}

.gbp-filter-drawer__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.gbp-filter-drawer__pill-wrap {
    cursor: pointer;
    display: inline-flex;
}
.gbp-filter-drawer__pill-wrap .gbp-filter-pill__input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
/* Radio selection reflects visually on the pill span */
.gbp-filter-drawer__pill-wrap input:checked + .gbp-filter-pill {
    background: var(--packers-gold);
    border-color: var(--packers-gold);
    color: #07130D;
    box-shadow: 0 0 12px rgba(255, 182, 18, 0.25);
}

/* ── Row: rok/mesiac/zoradiť ────────────────────────────────  */
.gbp-filter-drawer__row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.gbp-filter-drawer__row .gbp-filter-select-wrap { flex: 1; min-width: 120px; }

/* ── Search section ─────────────────────────────────────────  */
.gbp-filter-drawer__search-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* ── Actions ────────────────────────────────────────────────  */
.gbp-filter-drawer__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 182, 18, 0.08);
    flex-wrap: wrap;
}

.gbp-filter-drawer__apply { flex: 1; justify-content: center; min-width: 140px; }

/* ── Reduced motion ─────────────────────────────────────────  */
@media (prefers-reduced-motion: reduce) {
    .gbp-articles-compact-bar,
    .gbp-filter-drawer__panel,
    .gbp-filter-drawer__backdrop {
        transition: none;
        animation: none;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   ENCYCLOPEDIA LIGHT THEME OVERRIDES
   Converts dark-themed articles page to cream/white Encyclopedia style.
   Hero section stays dark (matching homepage hero).
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Page background ─────────────────────────────────────────────────────  */
.gbp-articles-page {
    background: #F8F5EE !important;
    color: #07130D !important;
}

/* ── Hero: keep dark, match homepage hero style ──────────────────────────  */
.gbp-articles-hero {
    background: #07130D !important;
    border-bottom: 1px solid rgba(255, 182, 18, 0.15) !important;
}
.gbp-articles-hero__eyebrow {
    color: #d49a0a !important;
    border-color: rgba(212, 154, 10, 0.35) !important;
    background: transparent !important;
}
.gbp-articles-hero__title {
    color: #FFB612 !important;
}
.gbp-articles-hero__intro {
    color: #FFFFFF !important;
}
.gbp-articles-hero__subtitle {
    color: #FFFFFF !important;
}
.gbp-articles-hero__stat-number {
    color: #FFB612 !important;
}
.gbp-articles-hero__stat-label {
    color: rgba(240, 237, 230, 0.72) !important;
}
.gbp-articles-hero__stat-divider {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ── Quick-filter bar (below hero) ──────────────────────────────────────  */
.gbp-articles-filters-wrap {
    background: #F8F5EE !important;
    border-bottom: 1px solid rgba(32, 55, 49, 0.12) !important;
}
.gbp-filter-pill {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-filter-pill:hover {
    background: #203731 !important;
    border-color: #203731 !important;
    color: #FFB612 !important;
    box-shadow: none !important;
}
.gbp-filter-pill.is-active,
.gbp-filter-pill--active {
    background: #203731 !important;
    border-color: #203731 !important;
    color: #FFB612 !important;
    box-shadow: none !important;
}
.gbp-filters__row-label {
    color: rgba(32, 55, 49, 0.55) !important;
}
.gbp-filter-select__label {
    color: rgba(32, 55, 49, 0.55) !important;
}
.gbp-filter-select-wrap::after {
    border-top-color: #203731 !important;
}
.gbp-filter-select {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-filter-select:focus {
    border-color: #FFB612 !important;
    box-shadow: 0 0 0 3px rgba(255, 182, 18, 0.15) !important;
}
.gbp-filter-search-wrap .gbp-filter-search {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
    border-radius: 8px !important;
    overflow: hidden;
}
.gbp-filter-search-wrap .gbp-filter-search::placeholder,
.gbp-filter-search__input::placeholder {
    color: rgba(32, 55, 49, 0.38) !important;
}
.gbp-filter-search-wrap .gbp-filter-search:focus,
.gbp-filter-search__input:focus {
    border-color: #FFB612 !important;
    box-shadow: 0 0 0 3px rgba(255, 182, 18, 0.15) !important;
}
.gbp-filter-search__input {
    background: transparent !important;
    color: #203731 !important;
    border-radius: 8px !important;
}
.gbp-filter-search-icon,
.gbp-filter-search__icon {
    color: rgba(32, 55, 49, 0.4) !important;
}
.gbp-filter-search__clear {
    color: #203731 !important;
}
.gbp-filter-search__clear:hover {
    color: #FFB612 !important;
}
.gbp-filters__reset {
    color: rgba(32, 55, 49, 0.6) !important;
    border-color: rgba(32, 55, 49, 0.2) !important;
}
.gbp-filters__reset:hover {
    color: #c0392b !important;
    border-color: rgba(192, 57, 43, 0.35) !important;
    background: rgba(192, 57, 43, 0.06) !important;
}

/* ── Grid section ────────────────────────────────────────────────────────  */
.gbp-articles-grid-section {
    background: #F8F5EE !important;
}

/* ── Results meta bar ────────────────────────────────────────────────────  */
.gbp-articles-meta-bar,
.gbp-articles-results-bar {
    background: transparent !important;
    border-bottom: 1px solid rgba(32, 55, 49, 0.10) !important;
}
.gbp-articles-count,
.gbp-articles-results-count {
    color: rgba(32, 55, 49, 0.55) !important;
}
.gbp-articles-sort-label {
    color: rgba(32, 55, 49, 0.55) !important;
}

/* ── Article cards ───────────────────────────────────────────────────────  */
.gbp-article-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(32, 55, 49, 0.10) !important;
    box-shadow: 0 2px 8px rgba(7, 19, 13, 0.05) !important;
}
.gbp-article-card:hover {
    border-color: rgba(255, 182, 18, 0.45) !important;
    box-shadow: 0 6px 24px rgba(7, 19, 13, 0.10) !important;
    transform: translateY(-2px);
}
.gbp-article-card__inner {
    background: transparent !important;
}
.gbp-article-card__category {
    background: rgba(255, 182, 18, 0.10) !important;
    color: #203731 !important;
    border-color: rgba(255, 182, 18, 0.3) !important;
}
.gbp-article-card__title {
    color: #07130D !important;
}
.gbp-article-card__title a {
    color: #07130D !important;
}
.gbp-article-card__title a:hover {
    color: #203731 !important;
}
.gbp-article-card__excerpt {
    color: rgba(32, 55, 49, 0.85) !important;
}
.gbp-article-card__meta {
    color: rgba(32, 55, 49, 0.70) !important;
    border-top-color: rgba(32, 55, 49, 0.08) !important;
}
.gbp-article-card__author {
    color: rgba(32, 55, 49, 0.70) !important;
}
.gbp-article-card__read-time {
    color: rgba(32, 55, 49, 0.55) !important;
}
.gbp-article-card__time {
    color: rgba(32, 55, 49, 0.55) !important;
}
.gbp-article-card__footer {
    border-top-color: rgba(32, 55, 49, 0.08) !important;
}
.gbp-article-card__cta {
    color: #203731 !important;
}
.gbp-article-card__cta:hover {
    color: #FFB612 !important;
}
.gbp-article-card__read-more {
    color: #203731 !important;
}
.gbp-article-card__read-more:hover {
    color: #FFB612 !important;
}

/* Featured card — keep visual contrast while staying light */
.gbp-article-card--featured {
    background: #FFFFFF !important;
    border-color: rgba(255, 182, 18, 0.25) !important;
}
.gbp-article-card--featured .gbp-article-card__category {
    background: #203731 !important;
    color: #FFB612 !important;
    border-color: transparent !important;
}

/* ── No-results state ────────────────────────────────────────────────────  */
.gbp-articles-no-results {
    background: #FFFFFF !important;
    border: 1px solid rgba(32, 55, 49, 0.10) !important;
    color: #07130D !important;
}
.gbp-articles-no-results__icon {
    color: rgba(32, 55, 49, 0.25) !important;
}
.gbp-articles-no-results__title {
    color: #07130D !important;
}
.gbp-articles-no-results__text {
    color: rgba(32, 55, 49, 0.55) !important;
}

/* ── Pagination ──────────────────────────────────────────────────────────  */
.gbp-articles-pagination {
    background: transparent !important;
    border-top: 1px solid rgba(32, 55, 49, 0.10) !important;
}
.gbp-pagination__btn {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-pagination__btn:hover {
    border-color: #FFB612 !important;
    color: #07130D !important;
    background: rgba(255, 182, 18, 0.06) !important;
}
.gbp-pagination__btn.is-active,
.gbp-pagination__btn--active {
    background: #203731 !important;
    border-color: #203731 !important;
    color: #FFB612 !important;
}
.gbp-pagination__btn:disabled {
    background: rgba(32, 55, 49, 0.04) !important;
    border-color: rgba(32, 55, 49, 0.10) !important;
    color: rgba(32, 55, 49, 0.28) !important;
}

/* ── Pagination — page-numbers (WP default markup) ──────────────────────  */
.gbp-articles-pagination .page-numbers li a,
.gbp-articles-pagination .page-numbers li span {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-articles-pagination .page-numbers li a:hover {
    background: rgba(255, 182, 18, 0.06) !important;
    border-color: #FFB612 !important;
    color: #07130D !important;
}
.gbp-articles-pagination .page-numbers li span.current {
    background: #203731 !important;
    border-color: #203731 !important;
    color: #FFB612 !important;
}
.gbp-articles-pagination .page-numbers li .prev,
.gbp-articles-pagination .page-numbers li .next {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-articles-pagination .page-numbers li .prev:hover,
.gbp-articles-pagination .page-numbers li .next:hover {
    background: rgba(255, 182, 18, 0.06) !important;
    border-color: #FFB612 !important;
    color: #07130D !important;
}

/* ── Compact sticky bar ──────────────────────────────────────────────────  */
.gbp-articles-compact-bar {
    background: rgba(248, 245, 238, 0.94) !important;
    border-bottom: 1px solid rgba(32, 55, 49, 0.12) !important;
    box-shadow: 0 2px 16px rgba(7, 19, 13, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
.gbp-cab__count {
    color: rgba(32, 55, 49, 0.55) !important;
}
.gbp-cab__summary {
    color: #203731 !important;
    background: rgba(255, 182, 18, 0.10) !important;
    border-color: rgba(255, 182, 18, 0.3) !important;
}
.gbp-cab__summary-clear {
    color: rgba(32, 55, 49, 0.5) !important;
}
.gbp-cab__summary-clear:hover {
    color: #07130D !important;
}
.gbp-cab__filters-btn {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-cab__filters-btn:hover,
.gbp-cab__filters-btn.is-active {
    border-color: #FFB612 !important;
    color: #07130D !important;
    background: rgba(255, 182, 18, 0.06) !important;
}
.gbp-cab__filters-btn .gbp-cab__badge {
    background: #FFB612 !important;
    color: #07130D !important;
}
.gbp-cab__search-form .gbp-cab__search-input {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-cab__search-form .gbp-cab__search-input::placeholder {
    color: rgba(32, 55, 49, 0.38) !important;
}
.gbp-cab__search-form .gbp-cab__search-input:focus {
    border-color: #FFB612 !important;
}
.gbp-cab__search-icon-btn {
    color: rgba(32, 55, 49, 0.5) !important;
}

/* ── Filter drawer ───────────────────────────────────────────────────────  */
.gbp-filter-drawer__panel {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.12) !important;
}
.gbp-filter-drawer__header {
    border-bottom-color: rgba(32, 55, 49, 0.08) !important;
}
.gbp-filter-drawer__title {
    color: #07130D !important;
}
.gbp-filter-drawer__close {
    background: rgba(32, 55, 49, 0.05) !important;
    border-color: rgba(32, 55, 49, 0.12) !important;
    color: rgba(32, 55, 49, 0.5) !important;
}
.gbp-filter-drawer__close:hover {
    background: rgba(231, 76, 60, 0.08) !important;
    border-color: rgba(231, 76, 60, 0.25) !important;
    color: #e74c3c !important;
}
.gbp-filter-drawer__section-label {
    color: rgba(32, 55, 49, 0.5) !important;
}
.gbp-filter-drawer__pill-wrap input:checked + .gbp-filter-pill {
    background: #203731 !important;
    border-color: #203731 !important;
    color: #FFB612 !important;
    box-shadow: none !important;
}
.gbp-filter-drawer__actions {
    border-top-color: rgba(32, 55, 49, 0.08) !important;
}

/* ── Load more button ────────────────────────────────────────────────────  */
.gbp-articles-load-more-btn {
    background: #FFFFFF !important;
    border-color: rgba(32, 55, 49, 0.18) !important;
    color: #203731 !important;
}
.gbp-articles-load-more-btn:hover {
    border-color: #FFB612 !important;
    background: rgba(255, 182, 18, 0.06) !important;
    color: #07130D !important;
}
