/* ==========================================================================
   W3 SMS - blog listing (v3)

   Loaded after home-v3.css, whose .hv3 scope, hero background and buttons the
   page reuses. Everything new is bv3-*, so nothing leaks onto other pages.
   The header and the footer are not touched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hv3 .bv3-hero { padding: clamp(30px, 4vw, 50px) 0 clamp(70px, 8vw, 100px); }

.bv3-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: center; }

.bv3-hero__title {
    margin-top: 18px !important;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #fff;
}
.bv3-hero__title em { font-style: normal; color: #2fb4ff; }

.bv3-hero__sub { max-width: 470px; margin-top: 14px !important; font-size: 1rem; line-height: 1.6; color: #e1ecff; }

/* ---- search boxes ---- */
.bv3-search { display: flex; align-items: stretch; border: 1px solid #d9e4f5; border-radius: 10px; background: #fff; overflow: hidden; }
.bv3-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .9rem;
    color: #0b1f4d;
}
.bv3-search input:focus { outline: 0; }
.bv3-search:focus-within { border-color: #2f8bff; box-shadow: 0 0 0 4px rgba(47, 139, 255, .16); }
.bv3-search button {
    flex: 0 0 48px;
    border: 0;
    background: linear-gradient(145deg, #2a8bff, #0b4bd0);
    color: #fff;
    cursor: pointer;
}
.bv3-search button:hover { filter: brightness(1.08); }
.bv3-search--hero { max-width: 480px; margin-top: 24px; border: 0; box-shadow: 0 16px 34px rgba(0, 20, 90, .35); }
.bv3-search--hero input { height: 52px; }
.bv3-search--hero button { flex-basis: 56px; }

/* ---- the drawn document ---- */
.bv3-art { position: relative; min-height: 270px; }
.bv3-art__doc { position: absolute; left: 50%; top: 50%; transform: translate(-42%, -50%) rotate(7deg); filter: drop-shadow(0 22px 28px rgba(0, 20, 90, .4)); }
.bv3-art__bulb { position: absolute; right: 22%; top: -6%; transform: rotate(14deg); filter: drop-shadow(0 8px 14px rgba(255, 200, 40, .5)); }
.bv3-art__plane { position: absolute; right: -2%; bottom: 14%; filter: drop-shadow(0 10px 14px rgba(0, 20, 90, .35)); }
.bv3-art__bubble {
    position: absolute;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    border-radius: 14px;
    box-shadow: 0 14px 26px rgba(0, 20, 90, .35);
}
.bv3-art__bubble--a { left: 8%; top: 12%; width: 56px; height: 46px; background: linear-gradient(145deg, #5aa8ff, #2a6cf0); }
.bv3-art__bubble--a i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.bv3-art__bubble--b { left: 0; top: 46%; width: 86px; height: 56px; flex-direction: column; background: linear-gradient(145deg, #2fd0a0, #12a37f); }
.bv3-art__bubble--b b { display: block; width: 50px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .9); }
.bv3-art__bubble--b b:nth-child(2) { width: 38px; }

/* --------------------------------------------------------------------------
   Topic pills
   -------------------------------------------------------------------------- */

.hv3 .bv3-topics { padding: 26px 0 8px; background: #fff; }
.bv3-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bv3-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border: 1px solid #dfe8f6;
    border-radius: 999px;
    background: #fff;
    font-size: .84rem;
    font-weight: 600;
    color: #1d3361;
    box-shadow: 0 5px 14px rgba(20, 70, 170, .06);
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.bv3-pill i { color: #3b5280; font-size: .85rem; }
.bv3-pill:hover { box-shadow: 0 9px 20px rgba(20, 70, 170, .13); color: #1a62f0; }
.bv3-pill.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #2a78ff, #0b4bd0);
    color: #fff;
    box-shadow: 0 10px 22px rgba(26, 98, 240, .32);
}
.bv3-pill.is-active i { color: #fff; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.hv3 .bv3-main { padding: 28px 0 clamp(48px, 6vw, 76px); background: linear-gradient(180deg, #fff 0, #f4f8ff 100%); }

.bv3-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }

.bv3-found { margin-bottom: 16px !important; font-size: .9rem; color: var(--c-mute); }
.bv3-found strong { color: var(--c-navy); }
.bv3-found em { font-style: normal; font-weight: 700; color: var(--c-blue); }
.bv3-found a { font-weight: 700; color: var(--c-blue); }

.bv3-date { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: #5b6f94; }
.bv3-date i { color: #3b5280; }

/* ---- placeholder when an article has no picture ---- */
.bv3-ph {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background:
        radial-gradient(220px 120px at 80% 0, rgba(76, 195, 255, .45), transparent 70%),
        linear-gradient(135deg, #0a2f86, #1a6bf0);
    font-size: 2rem;
    color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------------------------
   Featured
   -------------------------------------------------------------------------- */

.bv3-featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    margin-bottom: 26px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e3ecfa;
    box-shadow: 0 16px 38px rgba(18, 63, 160, .1);
    overflow: hidden;
}
.bv3-featured__copy { position: relative; z-index: 1; padding: 26px 28px 28px; }
.bv3-flag {
    display: inline-block;
    margin-right: 12px;
    padding: 5px 14px;
    border-radius: 7px;
    background: linear-gradient(135deg, #2a78ff, #0b4bd0);
    font-size: .74rem;
    font-weight: 700;
    color: #fff;
}
.bv3-featured__title { margin: 16px 0 12px !important; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.2; color: #0b1f4d; }
.bv3-featured__title a { color: inherit; }
.bv3-featured__title em { font-style: normal; color: #1a62f0; }
.bv3-featured__copy > p { margin-bottom: 20px !important; font-size: .9rem; line-height: 1.7; color: var(--c-mute); }
.bv3-featured__media { position: relative; display: block; min-height: 240px; overflow: hidden; }
.bv3-featured__media::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 34%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
    z-index: 1;
}
.bv3-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Grid of articles
   -------------------------------------------------------------------------- */

.bv3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.bv3-card {
    display: flex; flex-direction: column;
    padding: 10px 10px 4px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e3ecfa;
    box-shadow: 0 12px 30px rgba(18, 63, 160, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bv3-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(18, 63, 160, .15); }

.bv3-card__media { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #e9f1ff; }
.bv3-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bv3-card:hover .bv3-card__media img { transform: scale(1.04); }

.bv3-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 10px 14px; }
.bv3-card__body h3 { margin: 8px 0 8px !important; font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: #0b1f4d; }
.bv3-card__body h3 a { color: inherit; }
.bv3-card__body h3 a:hover { color: var(--c-blue); }
.bv3-card__body p { margin-bottom: 14px !important; font-size: .84rem; line-height: 1.65; color: var(--c-mute); }
.bv3-more { margin-top: auto; font-size: .84rem; font-weight: 700; color: var(--c-blue); }
.bv3-more i { margin-left: 4px; font-size: .75rem; transition: margin .16s ease; }
.bv3-more:hover i { margin-left: 8px; }

/* ---- empty ---- */
.bv3-empty { padding: 48px 28px; border-radius: 18px; background: #fff; border: 1px solid #e3ecfa; text-align: center; box-shadow: var(--c-shadow); }
.bv3-empty__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 70px; height: 70px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #e6f0ff;
    font-size: 1.7rem;
    color: #1a62f0;
}
.bv3-empty h3 { font-size: 1.25rem; font-weight: 800; color: var(--c-navy); }
.bv3-empty p { margin: 6px 0 20px !important; color: var(--c-mute); }

/* ---- pages ---- */
.bv3-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.bv3-pages a,
.bv3-pages span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 10px;
    border: 1px solid #dfe8f6;
    border-radius: 9px;
    background: #fff;
    font-size: .88rem;
    font-weight: 700;
    color: #1d3361;
    box-shadow: 0 4px 12px rgba(20, 70, 170, .06);
}
.bv3-pages a:hover { border-color: #2f8bff; color: #1a62f0; }
.bv3-pages .is-current { border-color: transparent; background: linear-gradient(135deg, #2a78ff, #0b4bd0); color: #fff; box-shadow: 0 8px 18px rgba(26, 98, 240, .32); }
.bv3-pages .is-off { opacity: .45; }
.bv3-pages .is-gap { border-color: transparent; background: none; box-shadow: none; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.bv3-side { display: grid; gap: 20px; }

.bv3-box { padding: 20px 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #e3ecfa; box-shadow: 0 12px 30px rgba(18, 63, 160, .08); }
.bv3-box h2 { margin-bottom: 14px !important; font-size: 1.05rem; font-weight: 800; color: #0b1f4d; }

.bv3-cats li + li { margin-top: 4px; }
.bv3-cats a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 600;
    color: #1d3361;
    transition: background .14s ease;
}
.bv3-cats a span { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.bv3-cats a i { width: 16px; text-align: center; color: #3b5280; }
.bv3-cats a b { min-width: 28px; padding: 2px 8px; border-radius: 7px; background: #f0f5fd; font-size: .74rem; font-weight: 700; text-align: center; color: #5b6f94; }
.bv3-cats a:hover { background: #f1f6ff; }
.bv3-cats a.is-active { background: #e6f0ff; color: #1a62f0; }
.bv3-cats a.is-active i { color: #1a62f0; }
.bv3-cats a.is-active b { background: #fff; color: #1a62f0; }

.bv3-latest li { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.bv3-latest li + li { border-top: 1px solid #edf2fb; }
.bv3-latest__thumb { flex: 0 0 64px; width: 64px; height: 56px; border-radius: 10px; overflow: hidden; background: #e9f1ff; }
.bv3-latest__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bv3-latest__thumb .bv3-ph { font-size: 1.1rem; }
.bv3-latest li > div > a { display: block; margin-top: 3px; font-size: .84rem; font-weight: 700; line-height: 1.35; color: #0b1f4d; }
.bv3-latest li > div > a:hover { color: var(--c-blue); }

.bv3-news {
    position: relative;
    padding: 24px 22px 26px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(260px 140px at 100% 0, rgba(76, 195, 255, .4), transparent 70%),
        linear-gradient(135deg, #0a2f86, #0b66f0);
    box-shadow: 0 18px 38px rgba(11, 91, 232, .3);
}
.bv3-news__plane { position: absolute; right: 18px; top: 16px; font-size: 1.8rem; color: rgba(255, 255, 255, .5); transform: rotate(8deg); }
.bv3-news h2 { max-width: 210px; margin-bottom: 8px !important; font-size: 1.15rem; font-weight: 800; line-height: 1.25; color: #fff; }
.bv3-news p { margin-bottom: 16px !important; font-size: .78rem; line-height: 1.55; color: #dbe9ff; }
.bv3-news__field { display: flex; border-radius: 9px; background: #fff; overflow: hidden; }
.bv3-news__field input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-size: .82rem; color: #0b1f4d; }
.bv3-news__field input:focus { outline: 0; }
.bv3-news__field button { flex: 0 0 46px; border: 0; background: linear-gradient(145deg, #2a8bff, #0b4bd0); color: #fff; cursor: pointer; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1099.98px) {
    .bv3-layout { grid-template-columns: minmax(0, 1fr); }
    .bv3-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bv3-news { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .bv3-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .bv3-art { min-height: 230px; }
}

@media (max-width: 767.98px) {
    .bv3-featured { grid-template-columns: minmax(0, 1fr); }
    .bv3-featured__media { order: -1; min-height: 190px; }
    .bv3-featured__media::before { display: none; }
    .bv3-grid { grid-template-columns: minmax(0, 1fr); }
    .bv3-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .bv3-art { display: none; }
    .bv3-pills { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none !important; }
    .bv3-pill { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   Phones and tablets
   -------------------------------------------------------------------------- */

/* Once the hero is one column the drawn document no longer has a column of its own:
   it was stacked under the search box and the paper plane sat across the headline.
   It is kept for the two-column hero only. */
@media (max-width: 991.98px) {
    .bv3-art { display: none; }
    .hv3 .bv3-hero { padding-bottom: clamp(70px, 14vw, 100px); }
    .bv3-hero__sub { max-width: none; }
    .bv3-search--hero { max-width: none; }
}

@media (max-width: 400px) {
    .bv3-search input { padding-inline: 12px; font-size: .84rem; }
    .bv3-featured__title { font-size: 1.35rem; }
}

/* touch targets: topic pills and the links in the sidebar lists */
.bv3-pill { min-height: 40px; }
.bv3-latest li > div > a { display: block; padding-block: 4px; }
@media (pointer: coarse) {
    .bv3-cats a { padding-block: 12px; }
    .bv3-pages a, .bv3-pages span { min-width: 42px; min-height: 42px; }
}
