:root {
    --gold: #C6A253;
    --gold-soft: #f4d084;
    --navy: #16233F;
    --shadow-lift: 0 30px 70px -30px rgba(22, 35, 63, 0.32);
    --font-display: Georgia, serif;
    --font-body: 'Work Sans', sans-serif;
}

.aj-blog-wrapper {
    width: 100%;
    margin: 40px 0;
    font-family: var(--font-body);
}

/* --- Filtry Kategorii --- */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.blog-filter-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 4px 15px rgba(198, 162, 83, 0.3);
}

/* --- Grid (2 kolumny) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    transition: opacity 0.3s ease;
}

/* --- Karta Wpisu --- */
.blog-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    height: 0;
    padding-top: 55%; /* Proporcje karty, regulują wysokość */
    box-shadow: var(--shadow-lift);
    text-decoration: none;
}

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(22, 35, 63, 0) 38%, rgba(22, 35, 63, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

.blog-card img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s ease;
    z-index: 0;
}

/* Efekt Zoom na obrazku przy najechaniu */
.blog-card:hover img {
    transform: scale(1.05);
}

.blog-card-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px 8px 17px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover .blog-card-arrow {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

.blog-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px 30px;
}

.blog-card-body .blog-tag {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.blog-card-body h3 {
    color: #fff !important;
    font-size: 26px;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-style: italic;
    line-height: 1.2;
}

.blog-card-body .blog-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    height: 45px;
    max-height: 45px;
    overflow: hidden;
}

.blog-card-body .blog-tagline p span {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    height: 45px !important;
    max-height: 45px !important;
    overflow: hidden !important;
    background-color: transparent !important;
    font-family: 'Work Sans', sans-serif !important;
}

/* --- Style Paginacji --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background-color: #fff;
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.blog-pagination a:hover {
    background-color: var(--gold-soft);
    color: var(--navy);
}

.blog-pagination span.current {
    background-color: var(--navy);
    color: #fff;
    box-shadow: none;
}

/* --- Responsywność --- */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Na telefonach 1 kolumna */
    }
    
    .blog-card {
        padding-top: 65%;
    }
    
    .blog-card-body h3 {
        font-size: 22px;
    }
}