/* ══════════════════════════════════════════════
   Blog Home Page — bl- prefixed styles
   Loaded only on the blog home (/blog/).
   ══════════════════════════════════════════════ */

/* ── HERO ── */
.bl-hero {
    background: linear-gradient(180deg, #EAF6FF 0%, #fff 100%);
    padding: 72px 24px 32px; text-align: center !important;
}
.bl-hero * { text-align: center; }
.bl-hero__inner { max-width: 1060px; margin: 0 auto; }
.bl-hero h1 {
    font-family: 'Work Sans', sans-serif; font-weight: 900;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.1; color: #282828; margin-bottom: 12px;
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.bl-hero h1 .hl { color: #12C0C5; }
p.bl-hero__sub {
    font-family: 'Lora', serif !important;
    font-size: clamp(15px, 2vw, 17px) !important;
    color: #707070 !important; line-height: 1.6 !important;
    max-width: 560px; margin: 0 auto 28px !important;
    text-align: center !important;
}

/* ── Search ── */
.bl-search {
    max-width: 480px; margin: 0 auto; position: relative;
}
.bl-search__input {
    width: 100%; padding: 14px 20px 14px 46px;
    border: 2px solid #D0E8FB; border-radius: 12px;
    font-size: 15px; font-family: 'Roboto', sans-serif;
    color: #282828; background: #fff; outline: none;
    box-shadow: 0 4px 16px rgba(72,176,247,0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bl-search__input:focus { border-color: #48B0F7; box-shadow: 0 4px 24px rgba(72,176,247,0.15); }
.bl-search__input::placeholder { color: #B8B8B8; }
.bl-search__icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; stroke: #A0A0A0; pointer-events: none;
}
.bl-search__btn {
    position: absolute; right: 0; top: 0; bottom: 0;
    background: none; border: none; cursor: pointer;
    padding: 0 16px; display: flex; align-items: center;
}

/* ── Category pills ── */
.bl-cats {
    display: flex; gap: 8px; flex-wrap: wrap;
    justify-content: center;
    max-width: 100%; margin: 20px auto 0;
}
.bl-cat {
    display: inline-block; padding: 7px 16px;
    border-radius: 20px; font-family: 'Work Sans', sans-serif;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all 0.2s ease; border: 1px solid transparent;
}
.bl-cat--active { background: #48B0F7; color: #fff; }
.bl-cat--inactive { background: #fff; color: #585858; border-color: #E8E8E8; }
.bl-cat--inactive:hover { border-color: #48B0F7; color: #48B0F7; }

/* Meta line (date + read time) */
.bl-meta {
    font-size: 12px; color: #A0A0A0;
    display: flex; align-items: center; gap: 8px;
}
.bl-meta__read { color: #48B0F7; font-weight: 500; }

/* ── CTA BANNER ── */
.bl-cta-banner {
    max-width: 1060px; margin: 0 auto;
    padding: 40px 24px;
}
.bl-cta-banner__inner {
    background: linear-gradient(135deg, #48B0F7, #3A8FC8);
    border-radius: 14px; padding: 32px 36px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.bl-cta-banner__text {
    font-family: 'Work Sans', sans-serif; font-weight: 700;
    font-size: 18px; color: #fff; line-height: 1.35;
}
.bl-cta-banner__text span {
    display: block; opacity: 0.8; font-weight: 400;
    font-size: 14px; margin-top: 4px; font-family: 'Roboto', sans-serif;
}

/* ── TOPIC SECTIONS ── */
.bl-topic {
    max-width: 1060px; margin: 0 auto; padding: 40px 24px;
}
.bl-topic__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 2px solid #EAF4FE;
}
.bl-topic__label {
    font-family: 'Work Sans', sans-serif; font-weight: 700;
    font-size: 14px; text-transform: uppercase;
    letter-spacing: 1.5px;
}
.bl-topic__label--coral { color: #FE8B7B; }
.bl-topic__label--blue { color: #48B0F7; }
.bl-topic__label--teal { color: #12C0C5; }
.bl-topic__label--gold { color: #d4930a; }
.bl-topic__link {
    font-family: 'Work Sans', sans-serif; font-weight: 600;
    font-size: 13px; color: #48B0F7; text-decoration: none;
}
.bl-topic__link:hover { color: #3A8FC8; }
.bl-topic__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

/* ── Post Card (shared by topic + latest sections) ── */
.bl-card {
    border-radius: 12px; overflow: hidden;
    background: #fff; border: 1px solid #E8E8E8;
    display: flex; flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-decoration: none;
}
.bl-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.bl-card__img {
    width: 100%; height: 160px; object-fit: cover;
    display: block; background: #f0f0f0;
}
.bl-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.bl-card__cat {
    font-family: 'Work Sans', sans-serif; font-weight: 700;
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 6px;
}
.bl-card__cat--coral { color: #FE8B7B; }
.bl-card__cat--blue { color: #48B0F7; }
.bl-card__cat--teal { color: #12C0C5; }
.bl-card__cat--gold { color: #d4930a; }
.bl-card__title {
    font-family: 'Work Sans', sans-serif; font-weight: 700;
    font-size: 16px; color: #282828; line-height: 1.3;
    margin-bottom: 6px; text-decoration: none; display: block;
}
.bl-card__title:hover { color: #48B0F7; }
.bl-card__excerpt {
    font-size: 13px; color: #707070; line-height: 1.55;
    margin-bottom: 12px; flex: 1;
}

/* ── LATEST ── */
.bl-latest {
    background: #f8f9fa; padding: 48px 24px;
}
.bl-latest__inner { max-width: 1060px; margin: 0 auto; }
.bl-latest__header {
    font-family: 'Work Sans', sans-serif; font-weight: 800;
    font-size: 22px; color: #282828; margin-bottom: 24px;
}
.bl-latest__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-bottom: 32px;
}

/* Load more button */
.bl-loadmore { text-align: center; }
.bl-loadmore__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px; border-radius: 10px;
    border: 2px solid #12C0C5; background: #fff;
    font-family: 'Work Sans', sans-serif; font-weight: 700;
    font-size: 14px; color: #12C0C5; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
}
.bl-loadmore__btn:hover { background: #12C0C5; color: #fff; }

/* ── Scroll-reveal animation ── */
.bl-anim { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.bl-anim.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .bl-topic__grid { grid-template-columns: repeat(2, 1fr); }
    .bl-latest__grid { grid-template-columns: repeat(2, 1fr); }
    .bl-cta-banner__inner { flex-direction: column; text-align: center; padding: 28px 24px; }
}
@media (max-width: 600px) {
    .bl-hero { padding: 56px 20px 24px; }
    .bl-cta-banner { padding: 32px 20px; }
    .bl-topic { padding: 0 20px 32px; }
    .bl-topic__grid { grid-template-columns: 1fr; }
    .bl-latest { padding: 36px 20px; }
    .bl-latest__grid { grid-template-columns: 1fr; }
    .bl-card__img { height: 140px; }
}
