/* Blog Section on Homepage - Minimalist Style */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Flex:wght@300;400;500;700&display=swap');

.blog-section {
    max-width: 1260px;
    margin: 60px auto 80px;
    padding: 0 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 30px;
    margin-bottom: 50px;
}

/* Simple Blog Block */
.blog-card {
    background: transparent;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    opacity: 0.7;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Simple Content */
.blog-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Date */
.blog-card-date {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #BBBBBB;
    margin-bottom: 8px;
    display: block;
}

/* Title - Black Text */
.blog-card-title {
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #000000;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Excerpt - Black Text */
.blog-card-excerpt {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin: 0 0 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Simple Link */
.blog-card-link-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.blog-card:hover .blog-card-link-text {
    opacity: 0.7;
}

/* Reduce top spacing for blog button by 100px total */
.blog-section + .flex-links {
    padding-top: 0;
    margin-top: -15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-section {
        margin: 40px auto 60px;
        padding: 0 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card-title {
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

