:root {
    --navy: #16233F;
    --navy-deep: #16233F;
    --navy-hover: #1C2C4D;
    --gold: #C6A253;
    --gold-soft: #E7D9B4;
    --gold-pale: #FFFFFF;
    --ink: #1C2A44;
    --paper: #FFFFFF;
    --paper-warm: #FFFFFF;
    --line: rgba(22, 35, 63, 0.12);
    --line-gold: rgba(198, 162, 83, 0.45);
    --font-display: 'Playfair Display', serif; /* Możesz podmienić na to czego używasz globalnie */
    --font-body: 'Work Sans', sans-serif;
    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 24px;
    --shadow-card: 0 20px 50px -24px rgba(22, 35, 63, 0.22);
    --shadow-lift: 0 30px 70px -30px rgba(22, 35, 63, 0.32);
}

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

/* --- Siatka Grid (3 kolumny) --- */
.inspo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* --- Karty --- */
.inspo-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px); 
    
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.inspo-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

.inspo-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.inspo-photo img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block; /* Usuwa biały pasek pod obrazkiem w linkach */
}

/* Subtelny zoom obrazka na hover (opcjonalne, fajnie wygląda) */
.inspo-card:hover .inspo-photo img {
    transform: scale(1.05);
}

.inspo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Lekko szare/ciemne półprzezroczyste tło */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1; /* Pomiędzy zdjęciem a plakietką */
}

.inspo-overlay span {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.inspo-card:hover .inspo-overlay {
    opacity: 1;
}

.inspo-card:hover .inspo-overlay span {
    transform: translateY(0);
}

.inspo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
}

.inspo-body {
    padding: 16px 18px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.inspo-body h3 {
    font-size: 15.5px !important;
    margin: 0 0 6px 0;
    line-height: 1.3;
    color: var(--navy) !important;
    font-family: var(--font-display) !important;
    font-weight: 700;
    font-style: unset !important;
}

.inspo-body p {
    font-size: 12.5px;
    color: rgba(28, 42, 68, 0.6);
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1; /* Pycha CTA do samego dołu jeśli teksty mają różną długość */
}

/* --- Przycisk "Zapytaj o ofertę" --- */
.inspo-body a.inspo-cta-lg {
    font-size: 15px;
    padding-bottom: 3px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.inspo-body a.inspo-cta-lg:hover {
    color: var(--navy);
    border-color: var(--gold);
}

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

.inspo-pagination a,
.inspo-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;
}

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

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

/* --- Responsywność --- */
@media (max-width: 992px) {
    .inspo-card {
        flex: 0 0 calc(50% - 15px); 
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .inspo-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}