/* Reset stylów */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Główny kontener */
.main-content {
    margin: 100px auto 0 auto;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

body.menu-open .main-content {
    margin-top: 340px; /* Wysokość headera, gdy menu jest otwarte (powinna odpowiadać max-height z nav.menu-open) */
}

/* Lista blogów */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Pojedynczy artykuł */
.blog-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Fredoka', Arial, sans-serif;
    color: #333;
}

.blog-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.blog-excerpt {
    font-size: 1rem;
    color: #555;
    flex: 1;
    text-align: justify;
}

.blog-item:hover .blog-title {
    color: #f86969;
}

.blog-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #f86969;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Fredoka', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    text-align: center;
    width: 100%;
}

.blog-button:hover {
    background-color: #e45858;
}

@media (max-width: 800px) {
    .main-content {
        margin-top: 220px;
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .blog-image img {
        height: 150px;
    }

    .blog-title {
        font-size: 1.3rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }
}
