/* Blog Section Styles */
.blog-section {
    text-align: left !important;
    --alignment: left !important;
    --flex-alignment: flex-start !important;
}

.blog-section * {
    text-align: left !important;
}

.blog-section h2 {
    text-align: center !important;
}

.blog-post-content {
    text-align: left !important;
}

.blog-post-title,
.blog-post-date,
.blog-post-excerpt,
.blog-post-link {
    text-align: left !important;
}

.blog-section {
    padding: 2rem 0;
    background: black;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #B81A2C;
}

.blog-container {
    max-height: 600px;
    overflow-y: scroll;
    padding: 1rem;
    background: #2e2e2e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem;
    max-width: 900px;
}

.blog-post {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

/* .blog-post:hover {
    background-color: #ababab;
    .blog-post-title a{color: #333};
    .blog-post-date {color: #333};
    .blog-post-excerpt {color: #333};
} */

.blog-post:last-child {
    border-bottom: none;
}

.blog-post-image {
    flex-shrink: 0;
    width: 170px;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    align-self: center;
    
}

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

.blog-post-image img:hover {
    transform: scale(1.05);
    border-color: #B81A2C;
}

.blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-post-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.blog-post-title a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

.blog-post-date {
    font-size: 0.85rem;
    color: #ababab;
    margin: 0;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

.blog-post-excerpt {
    font-size: 0.8rem;
    color: #ababab;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
}

.blog-post-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.blog-post-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.blog-loading,
.blog-error,
.blog-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.blog-error {
    color: #dc3545;
}

.blog-error p {
    margin: 0.5rem 0;
}

/* Scrollbar Styling */
.blog-container::-webkit-scrollbar {
    width: 8px;
}

.blog-container::-webkit-scrollbar-track {
    background: #635e5f;
    border-radius: 4px;
}

.blog-container::-webkit-scrollbar-thumb {
    background: #B81A2C;
    border-radius: 4px;
}

.blog-container::-webkit-scrollbar-thumb:hover {
    background: #9e1626;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-post-image {
        width: 100%;
        height: 160px;
    }
    
    .blog-container {
        max-height: 500px;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 1rem 0;
    }
    
    .blog-container {
        padding: 0.5rem;
        margin: 0 0.5rem;
    }
    
    .blog-post {
        padding: 1rem;
    }
    
    .blog-post-title {
        font-size: 1rem;
    }
}