/**
 * Blog Card Styles
 */

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Image */
.blog-card__image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #66cdec 0%, #5a4fa1 100%);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

/* Badge */
.blog-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #5a4fa1;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    text-transform: capitalize;
    z-index: 2;
    transition: all 0.2s ease;
}

.blog-card__badge:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content */
.blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.blog-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.blog-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: #5a4fa1;
}

/* Excerpt */
.blog-card__excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Meta */
.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

/* Author */
.blog-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-card__author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-card__author-by {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__author-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__author-name:hover {
    color: #5a4fa1;
}

/* Read time */
.blog-card__read-time {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* Button */
.blog-view__btn {
    display: inline-block;
    width: 50%;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #5a4fa1;
    border-radius: 50px;
    color: #5a4fa1;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-view__btn:hover {
    background: #5a4fa1;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(90, 79, 161, 0.3);
}

.blog-card__btn {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #5a4fa1;
    border-radius: 50px;
    color: #5a4fa1;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card__btn:hover {
    background: #5a4fa1;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(90, 79, 161, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card__image {
        height: 200px;
    }
    
    .blog-card__content {
        padding: 20px;
    }
    
    .blog-card__title {
        font-size: 18px;
    }
    
    .blog-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .blog-card__read-time {
        align-self: flex-start;
    }
}