/**
 * Blog Posts Component Styles
 * Modern, elegant card design for blog post listings
 * Mobile-first responsive approach
 */

/* ============================================================================
   BLOG POSTS SECTION
   ========================================================================== */

.blog-posts-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.blog-posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ============================================================================
   HEADER
   ========================================================================== */

.blog-posts-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-posts-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-grey);
    margin: 0;
}

/* ============================================================================
   BLOG POSTS GRID
   ========================================================================== */

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ============================================================================
   BLOG POST CARD
   ========================================================================== */

.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* ============================================================================
   IMAGE
   ========================================================================== */

.blog-post-image {
    position: relative;
    overflow: hidden;
    background-color: #e9ecef;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

.blog-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================================================
   CONTENT
   ========================================================================== */

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

/* ============================================================================
   TITLE
   ========================================================================== */

.blog-post-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-title a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: var(--forest-green);
}

/* ============================================================================
   META (DATE)
   ========================================================================== */

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-date {
    font-size: 0.875rem;
    color: #6c757d;
    font-family: var(--font-body);
}

/* ============================================================================
   EXCERPT
   ========================================================================== */

.blog-post-excerpt {
    flex: 1;
}

.blog-post-excerpt p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================================
   READ MORE LINK
   ========================================================================== */

.blog-post-action {
    margin-top: auto;
    padding-top: 0.5rem;
}

.blog-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--forest-green);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-post-read-more:hover {
    color: var(--dark-green-grey);
    gap: 0.75rem;
}

/* ============================================================================
   VIEW MORE BUTTON
   ========================================================================== */

.blog-posts-view-more {
    text-align: center;
}

.blog-posts-view-more-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--forest-green) !important;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(93, 110, 79, 0.2);
    border: none;
}

.blog-posts-view-more-button:hover {
    background-color: var(--dark-green-grey) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(93, 110, 79, 0.3);
}

/* ============================================================================
   EMPTY STATE
   ========================================================================== */

.blog-posts-empty {
    text-align: center;
    color: #868e96;
    font-size: 1.125rem;
    padding: 3rem 1rem;
}

/* ============================================================================
   TABLET (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .blog-post-title {
        font-size: 1.375rem;
    }

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

/* ============================================================================
   DESKTOP (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    .blog-posts-section {
        padding: 4rem 0;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .blog-posts-header {
        margin-bottom: 3rem;
    }

    .blog-post-content {
        padding: 2rem;
    }
}

/* ============================================================================
   LARGE DESKTOP (1440px+)
   ========================================================================== */

@media (min-width: 1440px) {
    .blog-post-title {
        font-size: 1.5rem;
    }

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