/* Reset previous styles */
.container, .container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding:0;
}

.blog-block{
    overflow: hidden;
    margin-top: 32px !important;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: var(--eliq-box-shadow);
}

.psblog-container .blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0;
    padding: 20px 0;
}

.psblog-container .blog-post-item {
    width: 100%;
    padding: 0;
    max-width: 100%;
}

.psblog-container .blog-post-item article {
    height: 100%;
    display: flex;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex-wrap: wrap;
}

.psblog-container .blog-post-item article a{
    max-height: 90px;
    display:flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px
}

@media screen and (max-width:400px){
    .psblog-container .blog-post-item article a{
        flex-direction: column;
        max-height: fit-content;
    }
}

.psblog-container .blog-post-item article a img{
    max-height: 100%;
    object-fit: contain;
    width: auto;
}

.psblog-container .blog-post-item article:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.psblog-container .blog-post-item img {
    height: fit-content;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    max-height: 100%;
}

.psblog-container .blog-post-item h2 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: #232323;
}

.psblog-container .post-excerpt {
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.psblog-container .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
    width:100%;
}

.psblog-container .read-more {
    color: var(--bs-link-hover-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.psblog-container .read-more:hover {
    color: var(--bs-link-hover-color);
}

.psblog-container .blog-block {
    margin-bottom: 30px;
}

.psblog-container .blog-posts-preview-container {
    display: grid;
    overflow-x: auto;
    gap: 20px 40px;
    padding: 10px 0;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #2fb5d2 #f5f5f5;
    display:flex;
    max-width:100%;
    flex-wrap: wrap;

}

.psblog-container .blog-posts-preview-container::-webkit-scrollbar {
    height: 6px;
}

.psblog-container .blog-posts-preview-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.psblog-container .blog-posts-preview-container::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

.psblog-container .blog-post-preview {
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    flex: 1;
    overflow: hidden;
}

@media screen and (max-width:880px){
    .psblog-container .blog-post-preview {
        min-width: 40%;
    }
}

@media screen and (max-width:400px){
    .psblog-container .blog-post-preview {
        min-width: 70%;
    }
}

.psblog-container .blog-post-preview:hover {
    background: #f8f9fa !important;
}

.psblog-container .blog-post-preview img {

    width: 100%;
    height:100%;
    object-fit: cover;
    object-position: left
}

.psblog-container .blog-post-preview h3 {
    padding: 10px;
    margin: 0;
    font-size: 1rem;
    color: #232323;
    display: flex;
    align-items: center;
}

.psblog-container .blog-post-preview a {
    text-decoration: none;
    color: inherit;
}

.psblog-container .block-title {
    margin-bottom: 20px;
}

.psblog-container .btn-primary {
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease-in-out;
}

.psblog-container .btn-primary:hover {
    background-color: var(--bs-link-hover-color);
    color: white;
    text-decoration: none;
}

.psblog-container .text-center {
    text-align: center;
}

.psblog-container .mt-3 {
    margin-top: 1rem;
}

/* ===== NOWE STYLE DLA POJEDYNCZEGO POSTA ===== */

/* Kontener pojedynczego posta */
.blog-post-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 0; /* Usuń padding z głównego kontenera */
    background: transparent; /* Usuń tło z głównego kontenera */
    width: 95vw
}

.blog-post-single img{
    max-width:100%;
    height: auto;
    object-fit: contain;
}

/* Nowy wrapper dla treści */
.blog-post-content-wrapper {
    background: #fff;
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Breadcrumb poza ramką */
.blog-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    padding: 10px 0;
}

/* Breadcrumb nawigacja */
.blog-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    padding: 10px 0;
}

.blog-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumb a:hover {
    color: #005a87;
}

.blog-breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.blog-breadcrumb .current-page {
    color: #333;
    font-weight: 500;
}

/* Nagłówek posta */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px;

}

.date-icon {
    font-size: 14px;
}

.date-text {
    font-weight: 500;
}

/* Obraz główny */
.post-featured-image {
    margin: 40px 0;
    text-align: center;
}

.featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-img:hover {
    transform: scale(1.02);
}

/* Treść posta */
.post-content {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin: 40px 0;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #232323;
    font-weight: 600;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f5f5f5;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #007cba;
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.post-content code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Sekcja udostępniania */
.social-share-section {
    background: transparent; /* Zmień na przezroczyste */
    padding: 30px 0; /* Usuń padding z boków */
    border-radius: 0; /* Usuń border-radius */
    margin: 50px 0;
    text-align: center;
    border: none; /* Usuń border */
}

.share-title {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #f8f9fa; /* Przenieś tło tutaj */
    padding: 20px; /* Dodaj padding tylko do przycisków */
    border-radius: 12px; /* Dodaj border-radius tylko do przycisków */
    border: 1px solid #e9ecef; /* Dodaj border tylko do przycisków */
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.share-btn:hover {
    text-decoration: none;
}

.share-icon {
    font-weight: bold;
    font-size: 16px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1991db;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #22c55e;
    color: white;
}

.share-btn.email {
    background: #6c757d;
    color: white;
}

.share-btn.email:hover {
    background: #5a6268;
    color: white;
}

/* Powrót do bloga */
.back-to-blog {
    text-align: center;
    margin: 50px 0 30px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.btn-back {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid  var(--eliq-blue);
    color: var(--eliq-blue);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--eliq-blue-hover);
    border-color:  var(--eliq-blue) !important;
    color: white;
    text-decoration: none;

}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1200px) {
    .psblog-container .blog-posts-preview-container {
        gap: 10px;
        grid-template-columns: 1fr;
        grid-template-rows: 60px 60px 60px 60px;
    }

}

@media (max-width: 992px) {
    .psblog-container .blog-post-preview h3 {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .psblog-container .blog-posts-grid {
        grid-template-columns: 100%;
    }

    .blog-post-single {
        padding: 15px 0px;
    }

    .post-title {
        font-size: 1.4rem;
        text-align: left;
    }

    .post-content {
        font-size: 16px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-btn {
        width: 200px;
    }

    .social-share-section {
        padding: 20px;
        margin: 30px 0;
    }

    .psblog-container .blog-post-item h2{
        font-size: 18px
    }

    .post-excerpt{
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .psblog-container .blog-posts-preview-container {
        gap: 10px;
        grid-template-columns: 1fr;
        grid-template-rows: 70px 70px 70px 70px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-breadcrumb {
        font-size: 12px;
    }

    .blog-breadcrumb .current-page {
        display: block;
        margin-top: 5px;
    }
}


.blog-post-preview a{
    display:flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between
}


.blog-post-preview a img{
    flex:10
}


.blog-post-preview a h3{
    flex:1
}