/* Homepage sections — Bảo Việt blue theme. */

/* ── Shared section utilities ───────────────────────────── */
.section-label{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--bv-primary);margin-bottom:.65rem}
.section-header{margin-bottom:2.2rem}
.section-heading{margin-bottom:0}
.section-heading h2{font-size:clamp(1.7rem,2.4vw,2.45rem);font-weight:800;letter-spacing:-.035em;color:var(--bv-primary);margin:.35rem 0 .45rem}
.section-heading>p{color:var(--bv-muted);margin:0;max-width:600px}
.section-more{gap:.35rem;font-size:.88rem;font-weight:700;color:var(--bv-primary);white-space:nowrap;flex-shrink:0;padding-top:.6rem}
.section-more:hover{color:var(--bv-primary-light);text-decoration:underline}

/* ── Buttons ────────────────────────────────────────────── */
.btn-brand{background:#fff;color:#0057a6;border:0;font-weight:700;border-radius:var(--bv-radius);padding:.75rem 1.6rem;font-size:.95rem;transition:background .2s}
.btn-brand:hover{background:rgba(255,255,255,.88);color:#0057a6}
.btn-outline-brand{border:2px solid rgba(255,255,255,.7);color:#fff;background:transparent;font-weight:700;border-radius:var(--bv-radius);padding:.7rem 1.6rem;font-size:.95rem;transition:all .2s}
.btn-outline-brand:hover{background:#fff;color:#0057a6}

/* ── HERO SLIDESHOW ─────────────────────────────────────── */
.home-hero{position:relative;overflow:hidden;background:#0057a6}
.hero-slide{position:absolute;inset:0;min-height:620px;background-size:cover;background-position:center;opacity:0;transition:opacity .8s ease;color:#fff;pointer-events:none}
.hero-slide:first-child{position:relative}
.hero-slide.active{opacity:1;z-index:1;pointer-events:auto}
.hero-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0057a6 0%,#0057a6 25%,rgba(0,87,166,.7) 40%,rgba(0,87,166,.2) 55%,transparent 70%);z-index:1}
.hero-copy{padding:4.8rem 2rem 4.2rem 0;position:relative;z-index:2}
.hero-label{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#fff;background:rgba(255,255,255,.15);border-radius:var(--bv-radius);padding:.4rem .9rem;margin-bottom:.85rem}
.hero-copy h1{font-size:clamp(2.4rem,3.8vw,3.8rem);line-height:1.1;letter-spacing:-.045em;margin:0 0 1.1rem;color:#fff;font-weight:800}
.hero-copy h1 span{color:#ffd666}
.hero-lead{color:rgba(255,255,255,.88);max-width:490px;font-size:1.04rem;line-height:1.65;margin-bottom:1.55rem}
.hero-actions{gap:.7rem}

/* ── TRUST STRIP (slide nav) ───────────────────────────── */
.trust-strip{background:#0057a6;padding:0;position:relative;z-index:3}
.trust-row{gap:0}
.trust-item{position:relative;gap:.6rem;color:#fff;flex:1;min-width:0;padding:.85rem .7rem;border:0;background:transparent;cursor:pointer;text-align:left;transition:background .2s;font-family:inherit}
.trust-item:hover{background:rgba(255,255,255,.08)}
.trust-item.active{background:rgba(255,255,255,.12)}
.trust-item i{font-size:1.45rem;flex-shrink:0;opacity:.85}
.trust-item strong{display:block;font-size:.82rem;font-weight:700;line-height:1.25;color:#fff}
.trust-item small{display:block;font-size:.7rem;opacity:.8;line-height:1.25;color:#fff}
.trust-item+.trust-item{border-left:1px solid rgba(255,255,255,.22)}
.trust-progress{position:absolute;bottom:0;left:0;height:3px;width:0;background:var(--bv-accent);border-radius:2px}
.trust-item.active .trust-progress{animation:trustFill 5s linear forwards}
@keyframes trustFill{from{width:0}to{width:100%}}

/* ── PRODUCTS GRID ──────────────────────────────────────── */
.products-home-section{background:#fff}
.product-card{min-height:260px;border-radius:var(--bv-radius);padding:1.3rem 1.2rem;color:#fff;background-size:cover;background-position:center;transition:transform .2s,box-shadow .2s}
.product-card::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,40,120,.82) 0%,rgba(0,57,166,.45) 45%,transparent 70%);transition:background .3s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.22);color:#fff}
.product-card:hover::before{background:linear-gradient(0deg,rgba(0,40,120,.9) 0%,rgba(0,57,166,.55) 50%,transparent 75%)}
.product-card>*{position:relative;z-index:1}
.product-card-icon{font-size:2rem;line-height:1;color:#fff;margin-bottom:.45rem}
.product-card-icon i{font-size:inherit}
.product-card h3{font-size:1.05rem;font-weight:800;color:#fff;margin:0 0 .25rem}
.product-card p{font-size:.8rem;line-height:1.45;color:rgba(255,255,255,.85);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card-link{display:inline-flex;align-items:center;gap:.3rem;font-size:.8rem;font-weight:800;color:rgba(255,255,255,.9);margin-top:.55rem}
.product-card:hover .product-card-link{color:#fff}

/* ── PROMOTIONS ARCHIVE ─────────────────────────────────── */
.promo-archive-hero{background:linear-gradient(120deg,#003a7a 0%,#0057a6 50%,#1a8ed8 100%);color:#fff;padding:3.5rem 0 3rem;text-align:center}
.promo-archive-hero h1{font-size:clamp(1.8rem,3vw,2.6rem);font-weight:800;margin:0 0 .5rem}
.promo-archive-hero p{font-size:1rem;color:rgba(255,255,255,.85);margin:0 0 1.5rem;max-width:520px;margin-inline:auto}
.promo-search{display:flex;max-width:480px;margin-inline:auto;background:#fff;border-radius:var(--bv-radius);overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.15)}
.promo-search i{display:grid;place-items:center;width:3rem;color:var(--bv-muted);font-size:1.1rem;flex-shrink:0}
.promo-search input{flex:1;border:0;padding:.8rem 0;font-size:.92rem;color:var(--bv-ink);outline:none;background:transparent}
.promo-search input::placeholder{color:#aeb5b0}
.promo-search button{flex-shrink:0;border:0;background:var(--bv-primary);color:#fff;font-weight:700;padding:.8rem 1.4rem;font-size:.9rem;cursor:pointer;transition:background .15s}
.promo-search button:hover{background:var(--bv-primary-dark,#005a9e)}

/* ── PROMOTIONS ─────────────────────────────────────────── */
.promo-card{border-radius:var(--bv-radius);overflow:hidden;background:#fff;border:1px solid var(--bv-line);transition:transform .2s,box-shadow .2s}
.promo-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.12);color:inherit}
.promo-card-img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.promo-card-body{padding:1.2rem 1.3rem}
.promo-card-body h3{font-size:1.05rem;font-weight:800;color:var(--bv-ink);margin:0 0 .35rem;line-height:1.35}
.promo-card-body p{font-size:.84rem;color:var(--bv-muted);margin:0 0 .6rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.promo-card-link{display:inline-flex;align-items:center;gap:.3rem;font-size:.84rem;font-weight:700;color:var(--bv-primary)}
.promo-card:hover .promo-card-link{text-decoration:underline}
.promo-splide-mobile{display:none}
.promo-slide{position:relative;display:block;text-decoration:none}
.promo-slide img{display:block;width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:var(--bv-radius)}
.promo-slide-btn{position:absolute;bottom:1rem;left:1rem;display:inline-flex;align-items:center;gap:.35rem;background:rgba(255,255,255,.92);color:var(--bv-primary);font-size:.82rem;font-weight:700;padding:.45rem .9rem;border-radius:var(--bv-radius);backdrop-filter:blur(4px);transition:background .2s}
.promo-slide:hover .promo-slide-btn{background:#fff}
#promo-splide .splide__pagination{bottom:-1.8rem}
#promo-splide .splide__pagination__page{width:8px;height:8px;background:var(--bv-line);opacity:1;transition:background .2s}
#promo-splide .splide__pagination__page.is-active{background:var(--bv-primary)}

/* ── PROCESS SECTION ────────────────────────────────────── */
.process-section{background:linear-gradient(135deg,#003a7a 0%,#0057a6 40%,#1a8ed8 100%);color:#fff}
.process-section .section-label{color:rgba(255,255,255,.85)}
.process-section .section-heading h2{color:#fff}
.process-section .section-heading>p{color:rgba(255,255,255,.8)}
.process-tabs{display:flex;gap:.5rem;flex-shrink:0;padding-top:.6rem}
.process-tab{display:inline-flex;align-items:center;gap:.4rem;padding:.7rem 1.5rem;border:2px solid rgba(255,255,255,.3);border-radius:var(--bv-radius);background:rgba(255,255,255,.1);color:rgba(255,255,255,.8);font-size:.9rem;font-weight:700;cursor:pointer;transition:all .15s}
.process-tab:hover{border-color:#fff;color:#fff}
.process-tab.active{background:#fff;border-color:#fff;color:var(--bv-primary)}
.process-tab i{font-size:1.05rem}
.process-panel{display:none}
.process-panel.active{display:block}

.step-line{display:flex;gap:0;position:relative}
.step-item{flex:1;text-align:center;position:relative;padding-top:3.5rem}
.step-item::before{content:"";position:absolute;top:1.15rem;left:0;right:0;height:2px;background:rgba(255,255,255,.25)}
.step-item:first-child::before{left:50%}
.step-item.step-last::before{right:50%}
.step-marker{position:absolute;top:0;left:50%;transform:translateX(-50%);width:2.4rem;height:2.4rem;border-radius:50%;background:#fff;color:var(--bv-primary);font-size:.95rem;font-weight:800;display:grid;place-items:center;z-index:1;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.step-body{padding:0 .5rem}
.step-body h3{font-size:.95rem;font-weight:800;color:#fff;margin:0 0 .3rem;line-height:1.35}
.step-body p{font-size:.82rem;color:rgba(255,255,255,.8);margin:0;line-height:1.5}

/* ── KNOWLEDGE & NEWS ───────────────────────────────────── */
.knowledge-home-section{background:#fff}
.home-article-card img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--bv-radius)}
.home-article-card>div{padding:.7rem 0 0;flex:1;display:flex;flex-direction:column}
.home-article-card h3{font-size:.92rem;line-height:1.3;color:var(--bv-ink);font-weight:800;margin:0 0 .35rem}
.home-article-card p{font-size:.78rem;line-height:1.45;color:var(--bv-muted);margin:0}

.news-sidebar{border-radius:var(--bv-radius);padding:1.4rem 1.25rem;border:1px solid var(--bv-line)}
.news-sidebar-title{font-size:.88rem;font-weight:800;letter-spacing:.04em;color:var(--bv-primary);margin:0 0 1rem;text-transform:uppercase}
.news-item{gap:.15rem;padding:.7rem 0;border-bottom:1px solid var(--bv-line);color:var(--bv-ink)}
.news-item:first-of-type{padding-top:0}
.news-item:last-child{border:0;padding-bottom:0}
.news-item strong{font-size:.86rem;line-height:1.3;color:var(--bv-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-item small{color:var(--bv-muted);font-size:.76rem;line-height:1.35}
.news-item:hover strong{color:var(--bv-primary);text-decoration:underline}

/* ── ACHIEVEMENTS ───────────────────────────────────────── */
.achievements-section{background:url('/assets/images/thanh-tuu/bg.png') center/cover no-repeat;color:var(--bv-ink)}
.achievements-section .section-label{color:var(--bv-primary)}
.achievements-section .section-heading h2{color:var(--bv-ink)}
.achievements-section .section-heading p{color:var(--bv-muted)}
.achievement-card{padding:1.4rem 1rem}
.achievement-card img{display:block;width:64px;height:64px;margin:0 auto .55rem;object-fit:contain}
.achievement-card p{font-size:.88rem;font-weight:600;margin:0;color:var(--bv-ink);line-height:1.4}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section{background:linear-gradient(105deg,var(--bv-blue-bg),#fff)}
.faq-list{border-top:1px solid var(--bv-line)}
.faq-list details{border-bottom:1px solid var(--bv-line);padding:1.05rem 0}
.faq-list summary{list-style:none;cursor:pointer;font-size:1.05rem;font-weight:750;color:var(--bv-primary);display:flex;justify-content:space-between;gap:1rem;align-items:center}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary i{color:var(--bv-primary);transition:transform .2s;flex-shrink:0;font-size:1.35rem}
.faq-list details[open] summary i{transform:rotate(45deg)}
.faq-list p{font-size:.95rem;color:var(--bv-muted);line-height:1.7;max-width:680px;margin:.7rem 0 0}
.faq-list p a{color:var(--bv-primary);font-weight:700;text-decoration:none}
.faq-list p a:hover{text-decoration:underline}

/* ── RESPONSIVE ─────────────────────────────────────────── */
.section-header-top{display:none;justify-content:space-between;align-items:baseline;margin-bottom:.5rem}
.section-header-top .section-more{font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--bv-primary);text-decoration:none;gap:.25rem}
.section-header-top .section-more:hover{color:var(--bv-primary-light)}

@media(max-width:991.98px){
.section-more-desktop{display:none!important}
.section-header-top{display:flex}
.section-label{margin-bottom:0}

/* Hero — gradient trái-phải, ảnh hiện bên phải */
.hero-slide{min-height:auto}
.hero-slide::before{background:linear-gradient(90deg,#0057a6 0%,#0057a6 35%,rgba(0,87,166,.65) 55%,rgba(0,87,166,.15) 80%,transparent 100%)}
.hero-copy{padding:1.5rem 0 1.2rem}
.hero-label{font-size:.62rem;padding:.25rem .6rem;margin-bottom:.35rem}
.hero-copy h1{font-size:1.45rem;line-height:1.2;margin-bottom:.4rem}
.hero-lead{font-size:.78rem;line-height:1.45;margin-bottom:.7rem;max-width:68%}
.hero-actions .btn{font-size:.75rem;padding:.45rem .85rem}

/* Trust strip — dọc */
.trust-row{flex-wrap:wrap}
.trust-item{flex:1 1 48%;border-left:0}
.trust-item:nth-child(2n){border-left:1px solid rgba(255,255,255,.15)}
.trust-item:nth-child(n+3){border-top:1px solid rgba(255,255,255,.15)}

/* Promotions — mobile slider */
.promo-grid{display:none!important}
.promo-splide-mobile{display:block;margin-bottom:1.5rem}

/* Process — ngang gọn, ẩn mô tả */
.process-tab{font-size:.78rem;padding:.45rem .8rem}
.step-body p{display:none}
.step-body h3{font-size:.72rem}
.step-marker{width:2.1rem;height:2.1rem;font-size:.8rem}
.step-item{padding-top:3rem}
.step-item::before{top:1rem}
}

@media(max-width:575.98px){
.hero-copy h1{font-size:1.3rem}
.hero-lead{max-width:75%;font-size:.74rem}
.hero-actions .btn{font-size:.7rem;padding:.4rem .7rem}

.trust-item{flex:1 1 100%;border-left:0}
.trust-item:nth-child(2n){border-left:0}
.trust-item:nth-child(n+2){border-top:1px solid rgba(255,255,255,.15)}

.process-tabs{flex-direction:column;gap:.3rem}
.process-tab{justify-content:center}
}
