/* Blog list page styling - for the blog index/listing page */

/* Post metadata */
.post-meta {
    font-size: 14px;
    margin-bottom: 1rem;
}

.meta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Blog card styling */
.blog-card {
    display: block;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    color: var(--text-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-height: 44px;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.blog-card h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--font-display);
}

.blog-card .date {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 12px;
}

.blog-card .blog-description {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    font-weight: 400;
}

.blog-card .excerpt {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.blog-card .excerpt img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 4px;
}

.blog-card .excerpt figure {
    margin: 12px 0;
}

.blog-card .excerpt figcaption {
    font-size: 0.9em;
    color: var(--text-light);
    font-style: italic;
    margin-top: 4px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.blog-card:hover .read-more {
    color: var(--accent-hover);
}

/* Blog card link styles */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover {
    text-decoration: none;
}

/* Create an overlay that covers the entire card and makes it clickable */
.blog-card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

/* Ensure the card is positioned for the overlay */
.blog-card-link {
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 18px;
        padding: 16px;
    }

    .blog-card h2 {
        font-size: 16px;
        line-height: 1.3;
    }

    .blog-card .excerpt {
        font-size: 14px;
    }

    .blog-card .blog-description {
        font-size: 14px;
    }

    .meta-content {
        gap: 12px;
    }

    .post-meta {
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .blog-card {
        padding: 14px;
        margin-bottom: 14px;
    }

    .blog-card h2 {
        font-size: 14px;
    }

    .blog-card .excerpt {
        font-size: 13px;
    }

    .blog-card .blog-description {
        font-size: 13px;
    }

    .post-meta {
        font-size: 13px;
    }
}
