/* SEKCJA BLOGA — pełna szerokość z gradientem */
.blog-intro-section {
    background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
    padding: 80px 20px 60px;
}

/* Wewnętrzny kontener */
.blog-wrapper {
    min-height: 70vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tytuł */
.blog-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #1a478b;
    margin-bottom: 50px;
}

/* LISTA WPISÓW */
.posts-list {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-item {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eaeaea;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-item:hover img {
    transform: scale(1.05);
}

.post-item h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a478b;
    margin: 18px 20px 10px;
    transition: color 0.3s;
}

.post-item a {
    text-decoration: none;
    display: block;
}

.post-item:hover h2 {
    color: #123160;
}

.post-item p {
    font-size: 0.95rem;
    color: #555;
    margin: 0 20px 24px;
    line-height: 1.55;
    min-height: 50px;
}

/* SPINNER */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: #1a478b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ANIMACJA WYSUWANIA */
.fade-in {
    animation: fadeIn 0.7s ease both;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .blog-intro-section {
        padding: 60px 18px;
    }
    .post-thumbnail {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .posts-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .posts-list {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 14px;
    }

    .post-thumbnail {
        height: 160px;
    }

    .post-item h2 {
        font-size: 1.05rem;
        margin: 14px 16px 8px;
    }

    .post-item p {
        font-size: 0.9rem;
        margin: 0 16px 18px;
    }
}

