/* ============================================================
   blog.css — Warner & Associates PLLC
   MigsFlow Web Design
   ============================================================ */

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

#blog-posts {
    padding: var(--section-padding);
    background-color: var(--color-bg);
}

.blog-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: var(--color-dark-green);
    letter-spacing: 0.04em;
    margin-bottom: 40px;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================================
   BLOG CARDS — SHARED
   ============================================================ */

.blog-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   IMAGE CARD (dark overlay with text on top)
   ============================================================ */

.blog-card--image {
    position: relative;
}

.blog-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(31, 61, 40, .9) 0%,       /* fully green at the very bottom */
        rgba(31, 61, 40, 0.6) 15%,    /* still fairly green at 35% up */
        rgba(0, 0, 0, 0) 35%          /* fully transparent by 65% up */
    );
    z-index: 1;
}

/* ============================================================
   TEXT CARD (light background)
   ============================================================ */

.blog-card--text {
    background-color: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(4px);
}

/* ============================================================
   CARD BODY — shared layout
   ============================================================ */

.blog-card--image .blog-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 24px;
}

.blog-card--text .blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 28px;
    flex: 1;
}

/* Author block */
.blog-card-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-author-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.blog-author-role {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 300;
}

.blog-card--image .blog-author-name,
.blog-card--image .blog-author-role {
    color: rgba(255, 255, 255, 0.9);
}

.blog-card--text .blog-author-name {
    color: var(--color-dark-green);
}

.blog-card--text .blog-author-role {
    color: var(--color-body);
}

/* Bottom — title + read more */
.blog-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 600;
    line-height: 1.4;
}

.blog-card--image .blog-card-title {
    color: var(--color-white);
}

.blog-card--text .blog-card-title {
    color: var(--color-dark-green);
}

/* Read More link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-white);
}

.blog-read-more--dark {
    color: var(--color-dark-green);
}

.blog-read-more img {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: var(--transition);
}

.blog-read-more:hover {
    gap: 10px;
}

/* ============================================================
   BUTTON STYLES
   ============================================================ */


.btn-quote-arrow, .btn-quote-arrow-2, .btn-hero-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    flex-shrink: 0;
}

.btn-quote-arrow img, .btn-quote-arrow-2 img, .btn-hero-arrow img {
    height: 15px;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {
    .blog-card {
        min-height: 280px;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-heading {
        font-size: 1.4rem;
    }

    .blog-card {
        min-height: 260px;
    }
}