/* Sekcja Bloga */
.blog-section {
    background-color: #0D2A38;
    padding: 80px 0;
    text-align: center;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

/* Nagłówek */
.blog-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 40px;
}

/* Grid Bloga */
.blog-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Karta bloga */
.blog-card {
    background: white;
    width: 350px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.blog-card:hover {
    transform: scale(1.05);
}

/* Zdjęcie */
.blog-image {
    overflow: hidden;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.blog-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* Treść */
.blog-content {
    padding: 20px;
    text-align: left;
    position: relative;
    transition: height 0.3s ease-in-out;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.blog-summary {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

/* Ukryty dodatkowy tekst */
.blog-hidden {
    font-size: 14px;
    color: #555;
    opacity: 0;
    height: 0;
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

/* Przycisk Więcej */
.blog-button {
    display: inline-block;
    background-color: #2EB872;
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Efekt po najechaniu */
.blog-card:hover .blog-hidden {
    opacity: 1;
    height: auto;
}

.blog-card:hover .blog-button {
    opacity: 1;
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 1024px) {
    .blog-grid {
        flex-direction: column;
        align-items: center;
    }

    .blog-card {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .blog-title {
        font-size: 26px;
    }

    .blog-content h3 {
        font-size: 18px;
    }

    .blog-summary, .blog-hidden {
        font-size: 14px;
    }
}
