/* Blog listing (/blogs). Builds on home.css (.hp) and solution.css (.sp). */

.bl-hero { padding-bottom: 36px; }
.bl-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.bl-search i { color: var(--hp-blue); }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; padding: 10px 0; background: transparent; color: var(--hp-ink); }
.bl-search button { border: 0; border-radius: 10px; background: var(--hp-gold); color: var(--hp-navy); font-weight: 700; padding: 10px 18px; }
.bl-search button:hover { background: #f0c929; }

.bl-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.bl-topics a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: .9rem; font-weight: 500; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.bl-topics a span { font-size: .75rem; opacity: .7; }
.bl-topics a:hover { border-color: var(--hp-gold); color: var(--hp-gold); }
.bl-topics a.is-active { background: var(--hp-gold); border-color: var(--hp-gold); color: var(--hp-navy); font-weight: 700; }

.bl-body { padding-top: 48px; }
.bl-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; padding: 12px 16px; background: var(--hp-alt, #f3f7fa); border-radius: 12px; }
.bl-result p { margin: 0; color: #33434f; }
.bl-result a { font-weight: 600; color: var(--hp-blue); text-decoration: none; }

/* Latest post */
.bl-featured { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--hp-line); border-radius: 20px; overflow: hidden; margin-bottom: 36px; color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.bl-featured:hover { box-shadow: 0 20px 44px rgba(10, 44, 70, .1); transform: translateY(-3px); color: inherit; }
.bl-featured__img { display: block; min-height: 100%; background: #eef3f7; }
.bl-featured__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 728 / 400; }
.bl-featured { align-items: center; }
.bl-featured__img { min-height: 0; }
.bl-featured__body { display: flex; flex-direction: column; padding: 34px 36px; }
.bl-featured h2 { font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem); line-height: 1.25; margin: 12px 0 14px; color: var(--hp-ink); }
.bl-featured p { color: #44525e; font-size: 1.02rem; line-height: 1.65; flex: 1; }
.bl-new { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--hp-gold); color: var(--hp-navy); border-radius: 6px; padding: 3px 8px; }

/* Cards */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.bl-card:hover { box-shadow: 0 18px 40px rgba(10, 44, 70, .1); transform: translateY(-4px); color: inherit; }
.bl-card__img { display: block; aspect-ratio: 728 / 400; overflow: hidden; background: #eef3f7; }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bl-card:hover .bl-card__img img { transform: scale(1.04); }
.bl-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.bl-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .82rem; color: var(--hp-muted); }
.bl-tag { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hp-gold-dark); background: var(--hp-cream); border-radius: 20px; padding: 3px 10px; }
.bl-card h3 { font-size: 1.12rem; line-height: 1.35; color: var(--hp-ink); margin: 12px 0 10px; }
.bl-card p { color: var(--hp-muted); font-size: .93rem; line-height: 1.6; margin-bottom: 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--hp-muted); margin-top: auto; }
.bl-card__foot i { color: var(--hp-blue); margin-right: 4px; }
.bl-card__cta { margin-left: auto; font-weight: 700; color: var(--hp-blue); }
.bl-card__cta i { margin: 0 0 0 4px !important; transition: transform .2s; }
.bl-card:hover .bl-card__cta i, .bl-featured:hover .bl-card__cta i { transform: translateX(4px); }

/* Demo card inside the grid */
.bl-cta { display: flex; flex-direction: column; justify-content: center; background: var(--hp-navy); border-radius: 18px; padding: 30px 26px; color: #fff; }
.bl-cta__icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: var(--hp-gold); font-size: 1.35rem; margin-bottom: 18px; }
.bl-cta h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.bl-cta p { color: rgba(255, 255, 255, .8); margin-bottom: 20px; }
.bl-cta .hp-btn { align-self: flex-start; }
.bl-cta__link { margin-top: 14px; color: var(--hp-gold); font-weight: 600; text-decoration: none; }
.bl-cta__link:hover { color: #fff; }

.bl-empty { text-align: center; padding: 48px 16px; }
.bl-empty h2 { margin-bottom: 8px; }

/* Pages */
.bl-pages { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.bl-pages > a, .bl-pages > span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--hp-line); font-weight: 600; color: var(--hp-blue); text-decoration: none; background: #fff; }
.bl-pages > a:hover { border-color: var(--hp-blue); }
.bl-pages .is-off { color: #b4bfc8; }
.bl-pages__nums { display: flex; gap: 6px; border: 0 !important; padding: 0 !important; background: none !important; }
.bl-pages__nums a, .bl-pages__nums span { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hp-line); color: #33434f; text-decoration: none; font-weight: 600; }
.bl-pages__nums a:hover { border-color: var(--hp-blue); color: var(--hp-blue); }
.bl-pages__nums .is-current { background: var(--hp-blue); border-color: var(--hp-blue); color: #fff; }

@media (max-width: 1199.98px) {
    .bl-featured__body { padding: 26px 28px; }
}
@media (max-width: 991.98px) {
    .bl-grid { grid-template-columns: repeat(2, 1fr); }
    .bl-featured { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .bl-grid { grid-template-columns: 1fr; }
    .bl-pages__nums { display: none; }
    .bl-search button { padding: 10px 12px; }
}
