/* Inherit hero styles from careers.css or a global file if available */
/* For this example, we assume some hero styles are global */

.blog-container {
    padding: 80px 6%;
    background: var(--color-surface-1);
    display: flex;
    justify-content: center;
}

.blog-list {
    width: 100%;
    max-width: 1200px;
    column-count: 3;
    column-gap: 30px;
}

.blog-card {
    background: var(--color-surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-medium);
    overflow: hidden;
    display: inline-block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

.blog-card-content .excerpt {
    color: var(--color-text-soft);
    flex-grow: 1;
    margin-bottom: 20px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-soft);
    padding-top: 15px;
    margin-top: auto;
}

/* Single Post View */
.single-post-view {
    width: 100%;
    max-width: 900px;
    background: var(--color-surface-1);
    padding: 40px 50px;
    border-radius: var(--radius);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.single-post-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.single-post-view .back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    color: var(--color-accent-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.single-post-view h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.post-meta {
    margin-bottom: 30px;
    color: var(--color-text-soft);
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.post-content p {
    line-height: 1.7;
    margin-bottom: 15px;
}

@media (max-width: 768px) {

    .single-post-view {
        padding: 0px;
    }
    .blog-list {
        column-count: 1;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .blog-list {
        column-count: 2;
    }
}