/* ============================================================
   blog-enhance.css
   Modern design for the Blog listing (Blog.aspx).
   Linked only on the blog page. Palette matches theme.css:
     primary blue #2491d0 | teal #00dba5 / #00acdb
     dark #233a46 | text #455f68 | light #f1f8f9
   ============================================================ */

/* ---------- HERO ---------- */
.bl-hero {
    position: relative;
    background:
        linear-gradient(120deg, rgba(36,145,208,.92), rgba(0,219,165,.88)),
        url('../images/bg_pattern_wt_transp2.png');
    background-size: cover, auto;
    background-position: center;
    overflow: hidden;
}
.bl-hero:before {
    /* soft decorative blob */
    content: "";
    position: absolute;
    top: -120px; right: -80px;
    width: 360px; height: 360px;
    background: rgba(255,255,255,.10);
    border-radius: 50%;
}
.bl-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 80px 0 70px;
    text-align: center;
    color: #fff;
}
.bl-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 18px;
}
.bl-hero h1 {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 14px;
    letter-spacing: 1px;
}
.bl-hero p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 28px;
    color: rgba(255,255,255,.92);
}

/* ---------- SECTION ---------- */
.bl-section { padding: 70px 0 80px; background: #f7fbfc; }

/* ---------- GRID ---------- */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* ---------- CARD ---------- */
.bl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(35,58,70,.08);
    transition: transform .35s ease, box-shadow .35s ease;
}
.bl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(35,58,70,.16);
}

/* media */
.bl-card-media {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
}
.bl-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.bl-card:hover .bl-card-media img { transform: scale(1.09); }

/* date chip */
.bl-date {
    position: absolute;
    top: 16px; left: 16px;
    background: linear-gradient(135deg, #2491d0, #00acdb);
    color: #fff;
    border-radius: 12px;
    padding: 9px 13px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0,172,219,.35);
}
.bl-date b { display: block; font-size: 20px; font-weight: 800; }
.bl-date i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

/* body */
.bl-card-body {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.bl-card-title { margin: 0 0 12px; font-size: 20px; line-height: 28px; font-weight: 700; }
.bl-card-title a { color: #233a46; transition: color .25s ease; }
.bl-card-title a:hover { color: #00acdb; }
.bl-card-excerpt {
    margin: 0 0 22px;
    color: #5b7682;
    font-size: 14.5px;
    line-height: 25px;
    /* clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* footer */
.bl-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef3f5;
    padding-top: 16px;
}
.bl-author { font-size: 13px; color: #8aa0a9; }
.bl-author i { color: #00dba5; margin-right: 5px; }
.bl-readmore {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #2491d0;
}
.bl-readmore i { transition: transform .25s ease; margin-left: 5px; }
.bl-readmore:hover { color: #00acdb; }
.bl-readmore:hover i { transform: translateX(5px); }

/* ---------- FEATURED (first post, full width, horizontal) ---------- */
.bl-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.bl-card--featured .bl-card-media { width: 52%; height: auto; min-height: 360px; }
.bl-card--featured .bl-card-body { width: 48%; padding: 40px 44px; justify-content: center; }
.bl-card--featured .bl-card-title { font-size: 30px; line-height: 38px; }
.bl-card--featured .bl-card-excerpt { font-size: 16px; line-height: 27px; -webkit-line-clamp: 4; }

/* ---------- EMPTY STATE ---------- */
.bl-empty { text-align: center; padding: 60px 15px; color: #8aa0a9; }
.bl-empty i { font-size: 54px; color: #cfe0e6; margin-bottom: 18px; display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .bl-hero h1 { font-size: 38px; }
    .bl-card--featured .bl-card-title { font-size: 26px; line-height: 34px; }
}

@media (max-width: 767px) {
    .bl-hero-overlay { padding: 60px 0 50px; }
    .bl-hero h1 { font-size: 30px; }
    .bl-hero p { font-size: 14px; }
    .bl-section { padding: 45px 0 55px; }
    .bl-grid { gap: 24px; }

    /* featured collapses to a normal stacked card */
    .bl-card--featured { flex-direction: column; }
    .bl-card--featured .bl-card-media { width: 100%; min-height: 0; height: 220px; }
    .bl-card--featured .bl-card-body { width: 100%; padding: 26px; }
    .bl-card--featured .bl-card-title { font-size: 22px; line-height: 30px; }
    .bl-card--featured .bl-card-excerpt { font-size: 14.5px; line-height: 25px; -webkit-line-clamp: 3; }
}

@media (max-width: 480px) {
    .bl-hero h1 { font-size: 25px; }
    .bl-grid { grid-template-columns: 1fr; }
}
