/* Blog Section */
#blog-section {
    width: 90%;
    max-width: 1200px;
    text-align: center;
    margin: 30px auto;
    padding: 20px 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

#blog-section h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #8d58f8;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

/* Blog Scroll Container */
#blog-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    width: 100%;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

#blog-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Individual Blog Post */
.blog-post {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.2); /* Transparent glass background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    width: 320px;
    flex-shrink: 0;
    padding: 20px;
    scroll-snap-align: center;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.blog-post:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(141, 88, 248, 0.5);
}

/* Thumbnail Image */
.blog-post img.blog-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.blog-post:hover img.blog-thumbnail {
    transform: scale(1.1);
}

/* Blog Post Title */
.blog-post h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Post Date */
.blog-post .post-date {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Post Content */
.blog-post p {
    font-size: 0.95rem;
    color: #f0f0f0;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Read More Button */
.blog-post button {
    background: linear-gradient(90deg, #8d58f8, #7d32ff);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
    outline: none;
}

.blog-post button:hover {
    background: linear-gradient(90deg, #7d32ff, #8d58f8);
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(141, 88, 248, 0.5);
}
