/* ==========================================
   NEWS POSTS SECTION
   Plik: assets/css/news-posts.css
   ========================================== */

/* ==========================================
   SEKCJA GŁÓWNA
   ========================================== */
.news-posts-section {
    padding: 60px 0;
    
}

.news-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   GRID - 3 KOLUMNY
   ========================================== */
.news-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ==========================================
   POJEDYNCZY POST
   ========================================== */
.news-post-item {
    position: relative;
}

.news-post-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.news-post-link:hover {
    transform: scale(1.05);
}

/* ==========================================
   ZDJĘCIE JAKO TŁO
   ========================================== */
.news-post-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* ==========================================
   TYTUŁ
   ========================================== */
.news-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.news-post-link:hover .news-post-title {
    color: #FDA635;
}

/* ==========================================
   RESPONSYWNOŚĆ
   ========================================== */

/* Tablet (768px - 1023px) - 2 kolumny */
@media screen and (max-width: 1023px) {
    .news-posts-section {
        padding: 50px 0;
    }
    
    .news-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-post-image {
        height: 220px;
    }
    
    .news-post-title {
        font-size: 20px;
    }
}

/* Mobile (do 767px) - 1 kolumna */
@media screen and (max-width: 767px) {
    .news-posts-section {
        padding: 40px 0;
    }
    
    .news-posts-container {
        padding: 0 15px;
    }
    
    .news-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .news-post-image {
        height: 200px;
    }
    
    .news-post-title {
        font-size: 18px;
    }
}

/* Bardzo małe ekrany (do 480px) */
@media screen and (max-width: 480px) {
    .news-post-image {
        height: 180px;
    }
    
    .news-post-title {
        font-size: 16px;
    }
}
/* ==========================================
   BLOG ARCHIVE PAGE
   ========================================== */

.blog-archive-wrapper {
    padding: 40px 0 60px;
    background: #FFFFFF;
}

/* Breadcrumb */
.blog-breadcrumb {
    margin-bottom: 20px;
}

.blog-breadcrumb #breadcrumbs {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
}

.blog-breadcrumb a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: #FDA635;
}

/* Header */
.blog-header {
    margin-bottom: 40px;
    text-align: center;
}

.blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #333333;
    margin: 0 0 16px 0;
}

.blog-description {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #666666;
}

/* ==========================================
   PAGINACJA
   ========================================== */

.pagination {
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination a,
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #FDA635;
    border-color: #FDA635;
    color: #FFFFFF;
}

.pagination .current {
    background: #FDA635;
    border-color: #FDA635;
    color: #FFFFFF;
}

.pagination .prev,
.pagination .next {
    min-width: auto;
    padding: 0 20px;
}

.pagination .dots {
    min-width: auto;
    border: none;
    background: transparent;
    color: #999999;
}

/* Mobile responsywność paginacji */
@media screen and (max-width: 767px) {
    .blog-title {
        font-size: 28px;
    }
    
    .blog-description {
        font-size: 14px;
    }
    
    .pagination a,
    .pagination .current {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 12px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 0 16px;
    }
}