/*
 * Professional Blog Listing Stylesheet
 */

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.blog-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 50px 20px; /* Top padding for fixed nav */
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.blog-header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.8;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.post-card {
    display: flex;
    gap: 2rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.post-image {
    flex: 0 0 40%; /* Image takes 40% of the card width */
    min-width: 250px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0.7;
}

.post-category {
    background: rgba(0, 153, 255, 0.2);
    color: #0099ff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.post-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: #00ff88;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ffffff;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1; /* Pushes the 'Read More' link to the bottom */
    color: #ffffff;
    opacity: 0.9;
}

.read-more-link {
    margin-top: 1.5rem;
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start; /* Aligns link to the left */
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-card {
        flex-direction: column;
    }

    .post-image {
        flex-basis: 200px; /* Fixed height for image on mobile */
    }

    .post-content {
        padding: 1.5rem;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }
}
