/* Home Blog — styled to match Home Projects cards and buttons */

.home-blog {
    padding: 70px 0;
    background: #fff;
    color: #222;
}

.home-blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.home-blog-heading {
    margin-bottom: 35px;
    text-align: center;
}

.home-blog-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #76551f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-blog-heading h2 {
    margin: 0 0 12px;
    color: #17243a;
    font-size: 36px;
    line-height: 1.3;
}

.home-blog-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #626b78;
    font-size: 16px;
    line-height: 1.8;
}

/* Blog grid */
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

/* Blog card — visual style matches project cards */
.home-blog-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(23, 36, 58, .06);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(23, 36, 58, .09);
    transition: box-shadow .25s ease, transform .25s ease;
}

.home-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23, 36, 58, .14);
}

/* Blog image */
.home-blog-image {
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #eee;
}

.home-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-blog-card:hover .home-blog-image img {
    transform: scale(1.035);
}

/* Blog content */
.home-blog-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    box-sizing: border-box;
}

.home-blog-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.45;
}

.home-blog-content h3 a {
    color: #17243a;
    text-decoration: none;
    transition: color .2s ease;
}

.home-blog-content h3 a:hover {
    color: #76551f;
}

/* Blog description preview: up to three lines */
.home-blog-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 0 0 20px;
    color: #626262;
    font-size: 14px;
    line-height: 1.75;
}

/* Individual Read More button — compact light style */
.home-blog-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid #d8c18a;
    border-radius: 6px;
    background: #fff;
    color: #17243a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(23, 36, 58, .06);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-blog-read-more:hover {
    transform: translateY(-2px);
    border-color: #17243a;
    background: #17243a;
    color: #fff;
    box-shadow: 0 5px 12px rgba(23, 36, 58, .15);
}

.home-blog-read-more:focus-visible {
    outline: 3px solid #c7a65b;
    outline-offset: 3px;
}

/* No-image fallback */
.home-blog-no-image {
    display: flex;
    min-height: 200px;
    align-items: center;
    justify-content: center;
    color: #17243a;
    font-weight: 600;
    background: #f0f2f5;
}

/* Empty blog message */
.home-blog-empty {
    padding: 25px;
    color: #666;
    text-align: center;
}

/* Main CTA — Explore All Blogs */
.home-blog-footer {
    margin-top: 35px;
    text-align: center;
}

.home-blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 30px;
    border: 1px solid #17243a;
    border-radius: 30px;
    background: #17243a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(23, 36, 58, .16);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-blog-button:hover {
    transform: translateY(-2px);
    border-color: #76551f;
    background: #9b7b3e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 36, 58, .2);
}

.home-blog-button:focus-visible {
    outline: 3px solid #c7a65b;
    outline-offset: 3px;
}

/* Tablet */
@media (max-width: 900px) {
    .home-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .home-blog {
        padding: 45px 0;
    }

    .home-blog-container {
        padding: 0 16px;
    }

    .home-blog-heading {
        margin-bottom: 25px;
    }

    .home-blog-heading h2 {
        font-size: 28px;
    }

    .home-blog-heading p {
        font-size: 14px;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-blog-content {
        padding: 18px;
    }

    .home-blog-content h3 {
        font-size: 19px;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .home-blog-card,
    .home-blog-image img,
    .home-blog-read-more,
    .home-blog-button {
        transition: none;
    }

    .home-blog-card:hover,
    .home-blog-card:hover .home-blog-image img,
    .home-blog-read-more:hover,
    .home-blog-button:hover {
        transform: none;
    }
}
