.blog-section {
    padding: 40px 20px;
    text-align: center;
}

.blog-section h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 40px;
}

.blog-container {
    display: grid;
    grid-template-columns: 2fr 1.9fr; /* Dalsze zwiększenie szerokości kolumny po prawej */
    gap: 40px;
    max-width: 1500px; /* Zwiększenie maksymalnej szerokości kontenera */
    margin: 0 auto;
}

.blog-item {
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
}

.blog-item.large {
    grid-row: span 2;
}

.blog-image {
    width: 100%;
    height: 350px; /* Zwiększenie wysokości */
    object-fit: cover; /* Dopasowanie obrazu do kontenera */
    object-position: center !important;
    border-radius: 12px 12px 0 0;
}

.blog-content {
    padding: 20px;
    text-align: left;
}

.blog-title {
    font-size: 1.4em;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    margin: 0 0 15px;
    display: block;
}

.blog-title:hover {
    color: #555; /* Kolor nagłówka po najechaniu */
}


.blog-date {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.blog-item h3 {
    font-size: 1.4em;
    color: #333;
    margin: 0 0 15px;
}


.blog-link {
    font-size: 0.9em;
    color: rgba(109, 109, 109, 0.8);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    position: relative;
    transition: color 0.3s;
}

.blog-link svg {
    width: 1.5em; /* Zwiększenie rozmiaru strzałki */
    height: auto;
    margin-left: 8px; /* Zwiększenie odstępu między tekstem a strzałką */
}

.blog-link svg path {
    fill: rgba(109, 109, 109, 0.8);
    stroke-width: 1.5px; /* Pogrubienie strzałki */
    transition: fill 0.3s;
}

.blog-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px; /* Grubość linii */
    background-color: rgba(109, 109, 109, 0.8); /* Kolor linii taki sam jak tekst */
    position: absolute;
    bottom: -2px; /* Odstęp między tekstem a linią */
    left: 0;
    transform: scaleX(0); /* Ukrycie linii */
    transition: transform 0.3s ease;
    transform-origin: left;
}

.blog-link:hover::after {
    transform: scaleX(1); /* Wyświetlenie linii na hover */
}

.blog-link:hover svg path {
    fill: rgba(109, 109, 109, 0.8); /* Kolor strzałki pozostaje bez zmian na hover */
}


.blog-small-content {
    display: flex;
    align-items: center;
}

.blog-image-small {
    width: 250px;
    height: 240px;
    object-fit: cover;
    object-position: center !important;
    border-radius: 5px;
    margin-right: 15px;
}

.blog-text {
    text-align: left;
    padding: 20px;
}

.see-all-button {
    display: inline-block;
    margin-top: 60px;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background: linear-gradient(to left, #e1001d 0%, #03294c 100%);
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.see-all-button:hover {
    opacity: 0.9;
}



/* Stylowanie tytułów w mniejszych rozdzielczościach */
@media (max-width: 1300px) {
    .blog-title {
        font-size: 1.2em; /* Zmniejszenie rozmiaru czcionki */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Ograniczenie do dwóch linii */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* Layout for screens below 992px */
@media (max-width: 992px) {
    .blog-small-content {
        display: block;
        text-align: center; /* Center the text under the image */
    }

    .blog-image-small {
        width: 100%;
        height: auto; /* Allow the image to scale with the width */
        margin-right: 0; /* Remove margin since image will be on top */
        margin-bottom: 15px; /* Add some space below the image */
        border-radius: 5px 5px 0 0;
    }

    

    .blog-text {
        padding: 0 20px; /* Add padding for better alignment */
        text-align: left; /* Optional: Set text alignment */
    }




}

@media (max-width: 992px) {
    .blog-container {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 30px;
        scroll-snap-type: x mandatory;
    }

    /* Hide scrollbar for a cleaner look */
    .blog-container::-webkit-scrollbar {
        display: none;
    }

    /* For other scrollbars, you can customize visibility here */
    .blog-container {
        scrollbar-width: none; /* Hide scrollbar on Firefox */
    }


    .blog-section h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
      }
   


    .blog-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
        background-color: #f5f5f5;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .blog-item.large,
    .blog-item.small {
        flex: 0 0 80%;
        background-color: #f5f5f5;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .blog-image-small,
    .blog-image {
        width: 100%;
        height: 200px; /* Set a fixed height for consistency */
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }

    /* Text container adjustments */
    .blog-text,
    .blog-content {
        padding: 20px;
        text-align: left; /* Align text to the left */
        width: 100%;
        box-sizing: border-box;
        margin-top: auto; /* Pushes the text to the bottom of the card */
    }

    .blog-date {
        font-size: 0.9em;
        color: #666;
        margin-bottom: 5px;
    }

    .blog-title {
        font-size: 1.2em;
        color: #333;
        font-weight: bold;
        text-decoration: none;
        margin: 10px 0;
        display: block;
    }

    .blog-link {
        font-size: 0.9em;
        color: rgba(109, 109, 109, 0.8);
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        font-weight: 600;
        margin-top: 10px;
    }

    /* Hide scrollbar */
    .blog-container::-webkit-scrollbar {
        display: none;
    }


    .see-all-button  {
        margin-top: 10px;
    }

}



@media (max-width: 992px) {
    .blog-image-small,
    .blog-image {
        width: 100%;
        height: 300px; /* Set a fixed height for all images */
        object-fit: cover; /* Ensure the image covers the area without stretching */
        border-radius: 12px 12px 0 0;
    }
}




@media (max-width: 768px) {
    .blog-title {
      font-size: 1em;
    }

    .blog-section h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
  }




  @media (max-width: 510px) {
    .blog-title {
        white-space: nowrap; /* Prevents the text from wrapping to a new line */
        overflow: hidden; /* Hides overflow text */
        text-overflow: ellipsis; /* Adds an ellipsis (...) at the end of the truncated text */
    }
}