/**
 * Css for Widget: Blog Posts
 */

.blog-posts-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #fff;
}

.blog-posts-overtitle {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #EE6440;
    margin-bottom: 0.5rem;
}

.blog-posts-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    line-height: 1.1;
    color: #2B3338;
    margin-bottom: 1rem;
}

.blog-posts-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #5C6D78;
    line-height: 1.6;
    margin-bottom: 0;
}

.blog-posts-cta {
    display: inline-block;
    background-color: #EE6440;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.blog-posts-cta:hover {
    background-color: #D24825;
    color: #fff;
}

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

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

.blog-post-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.blog-post-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

.blog-post-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-card-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    color: #5C6D78;
    margin-bottom: 0.5rem;
}

.blog-post-card-author {
    font-weight: 700;
    color: #EE6440;
}

.blog-post-card-separator {
    margin: 0 0.35rem;
    color: #5C6D78;
}

.blog-post-card-date {
    color: #5C6D78;
}

.blog-post-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2B3338;
    margin-bottom: 0;
}

.blog-post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

@media (max-width: 991.98px) {
    .blog-posts-section .text-lg-end {
        margin-top: 1.5rem;
    }

    .blog-posts-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .blog-posts-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .blog-post-card-image {
        height: 180px;
    }
}
