/* ============================================================
   Haas Blog Listing — Frontend Styles v1.1
   Fixed: Elementor CSS loading + mobile layout
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── Wrapper ── */
.haas-blog-wrap {
    font-family: 'Source Sans 3', Georgia, serif;
    color: #1e1e1e;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.6;
    box-sizing: border-box;
}

.haas-blog-wrap *,
.haas-blog-wrap *::before,
.haas-blog-wrap *::after {
    box-sizing: border-box;
}

/* ── Section Label ── */
.haas-blog-wrap .haas-section-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #666;
    padding: 10px 0;
    border-top: 2px solid #d8ddd0;
    margin-bottom: 0;
    display: block;
}

/* ── No posts ── */
.haas-blog-wrap .haas-no-posts {
    color: #666;
    font-style: italic;
    padding: 24px 0;
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.haas-blog-wrap .haas-featured-section {
    margin-bottom: 36px;
}

/* Card — full row clickable, flex side-by-side */
.haas-blog-wrap .haas-featured-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 28px;
    padding: 24px;
    border: 1px solid #d8ddd0;
    border-radius: 4px;
    text-decoration: none !important;
    color: #1e1e1e !important;
    background: #fff;
    cursor: pointer;
    -webkit-transition: box-shadow 0.22s ease, border-color 0.22s ease;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
    width: 100%;
}

.haas-blog-wrap .haas-featured-card:hover {
    border-color: #b0bb90;
    box-shadow: 0 4px 20px rgba(74, 90, 42, 0.10);
    text-decoration: none !important;
}

/* Image wrapper — fixed size, no overflow */
.haas-blog-wrap .haas-featured-img-wrap {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 220px;
    height: 160px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0ec;
    border: 1px solid #d8ddd0;
}

.haas-blog-wrap .haas-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-transition: transform 0.22s ease, opacity 0.22s ease;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.haas-blog-wrap .haas-featured-card:hover .haas-featured-img {
    -webkit-transform: scale(1.03);
    transform: scale(1.03);
    opacity: .93;
}

/* Body */
.haas-blog-wrap .haas-featured-body {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
}

.haas-blog-wrap .haas-featured-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e1e1e;
    margin: 0;
    -webkit-transition: color 0.22s ease;
    transition: color 0.22s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.haas-blog-wrap .haas-featured-card:hover .haas-featured-title {
    color: #4a5a2a;
}

.haas-blog-wrap .haas-featured-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================================
   ALL ARTICLES — Editorial List
   ============================================================ */
.haas-blog-wrap .haas-articles-section {
    margin-top: 0;
}

.haas-blog-wrap .haas-articles-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border: 1px solid #d8ddd0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* Each row */
.haas-blog-wrap .haas-article-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #d8ddd0;
    text-decoration: none !important;
    color: #1e1e1e !important;
    background: #fff;
    cursor: pointer;
    -webkit-transition: background 0.22s ease;
    transition: background 0.22s ease;
    width: 100%;
}

.haas-blog-wrap .haas-article-row:last-child {
    border-bottom: 0;
}

.haas-blog-wrap .haas-article-row:hover {
    background: #f8f9f5;
    text-decoration: none !important;
}

/* Thumbnail */
.haas-blog-wrap .haas-article-img-wrap {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 130px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0ec;
    border: 1px solid #d8ddd0;
}

.haas-blog-wrap .haas-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-transition: transform 0.22s ease, opacity 0.22s ease;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.haas-blog-wrap .haas-article-row:hover .haas-article-img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
    opacity: .92;
}

/* Article body */
.haas-blog-wrap .haas-article-body {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 6px;
}

.haas-blog-wrap .haas-article-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e1e1e;
    margin: 0;
    -webkit-transition: color 0.22s ease;
    transition: color 0.22s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.haas-blog-wrap .haas-article-row:hover .haas-article-title {
    color: #4a5a2a;
}

.haas-blog-wrap .haas-article-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.55;
    font-weight: 300;
}

/* ── Read Link ── */
.haas-blog-wrap .haas-read-link {
    font-size: 13px;
    font-weight: 500;
    color: #4a5a2a;
    letter-spacing: .01em;
    margin-top: 4px;
    display: inline-block;
    text-decoration: none;
}

.haas-blog-wrap .haas-featured-card:hover .haas-read-link,
.haas-blog-wrap .haas-article-row:hover .haas-read-link {
    text-decoration: underline;
}

/* ── No image placeholder ── */
.haas-blog-wrap .haas-no-img {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #bbb;
    width: 100%;
    height: 100%;
}

/* ============================================================
   TABLET  (700px and below)
   ============================================================ */
@media only screen and (max-width: 700px) {
    .haas-blog-wrap .haas-featured-img-wrap {
        width: 170px;
        height: 125px;
    }

    .haas-blog-wrap .haas-featured-title {
        font-size: 17px;
    }

    .haas-blog-wrap .haas-article-img-wrap {
        width: 105px;
        height: 76px;
    }

    .haas-blog-wrap .haas-article-title {
        font-size: 14.5px;
    }
}

/* ============================================================
   MOBILE  (520px and below)
   Featured card stacks vertically.
   Article rows STAY horizontal always.
   ============================================================ */
@media only screen and (max-width: 520px) {

    .haas-blog-wrap .haas-featured-card {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .haas-blog-wrap .haas-featured-img-wrap {
        width: 100%;
        height: 200px;
        -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    .haas-blog-wrap .haas-featured-title {
        font-size: 18px;
    }

    /* Article rows — horizontal always, never stack */
    .haas-blog-wrap .haas-article-row {
        -webkit-box-orient: horizontal !important;
        -webkit-box-direction: normal !important;
        -ms-flex-direction: row !important;
        flex-direction: row !important;
        gap: 12px;
        padding: 14px;
    }

    .haas-blog-wrap .haas-article-img-wrap {
        width: 88px;
        height: 68px;
        -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    .haas-blog-wrap .haas-article-title {
        font-size: 13.5px;
        line-height: 1.4;
    }

    .haas-blog-wrap .haas-article-excerpt {
        display: none;
    }
}
