.blog-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #ffffff30;  
    background-color: #1e1e1e00;
    margin: 50px;
}

.blog-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 10px;
    padding: 0;
}

.blog-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    padding: 5px 10px;
    transition: all 0.3s ease;
    font-size: large;
}

.blog-menu a.selected,
.blog-menu a:hover {
    font-weight: 700;
    border-bottom: 2px solid #ffffff; 
}
#posts-container {
    display: flex; 
    flex-wrap: nowrap; 
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    scrollbar-width: thin; 
    scrollbar-color: #888 #333;
}

#posts-container::-webkit-scrollbar {
    height: 8px;
}

#posts-container::-webkit-scrollbar-thumb {
    background-color: #888; 
    border-radius: 4px;
}

#posts-container::-webkit-scrollbar-track {
    background-color: #333; 
}

.post {
    min-width: 250px; 
    max-width: 300px; 
    background-color: #1e1e1e; 
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post:hover {
    transform: scale(1.03); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); 
}

.post img {
    width: 100%;
    height: 150px; 
    object-fit: cover;
    border-bottom: 1px solid #ffffff30;
}

.post h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 10px 10px 5px;
}

.post p {
    font-size: 0.9rem;
    color: #cccccc;
    margin: 0 10px 10px;
}

.post .read-more {
    background-color: #ffffff;
    color: #121212;
    border: none;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    margin: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.post .read-more:hover {
    background-color: #f5f5f5;
    transform: scale(1.05);
}

#full-post {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none;
}

#full-post h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

#full-post p {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 10px;
}

#full-post img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.back-to-posts {
    background-color: #ffffff;
    color: #121212;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-to-posts:hover {
    background-color: #f5f5f5;
    transform: scale(1.1);
}
@media (max-width: 1024px) {
    .blog-menu {
        flex-wrap: wrap;
        margin: 20px;
    }

    #posts-container {
        flex-wrap: wrap; 
        justify-content: center;
    }

    .post {
        min-width: 220px;
        max-width: 90%; 
    }
}

@media (max-width: 768px) {
    .blog-menu {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

    .blog-menu ul {
        flex-direction: column; 
        gap: 10px;
    }

    #posts-container {
        display: flex;
        flex-direction: column;
        align-items: center; 
        gap: 15px;
        
    }

    .post {
        width: 90%; 
        min-width: 250px;
    }

    .post img {
        height: 120px; 
    }

    #full-post {
        width: 95%;
        padding: 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .blog-menu {
        margin: 10px;
    }

    .post {
        width: 100%;
        min-width: auto;
    }

    .post img {
        height: 100px; 
    }

    .back-to-posts {
        width: 100%;
        text-align: center;
    }
}

