/* =========================================================
   eBaohiem HOME - hero + section 2-10
   Load only on home_layout.php (together with ebaohiem-ui.css)
   ========================================================= */

/* ---------- Section 1: Hero ---------- */
.eb-hero{background:linear-gradient(135deg,var(--eb-blue-deep) 0%,var(--eb-blue) 100%);padding:64px 0 90px;color:#fff;position:relative;overflow:hidden}
.eb-hero::after{content:"";position:absolute;inset:auto -10% -40% auto;width:480px;height:480px;background:radial-gradient(closest-side,rgba(247,148,29,.28),transparent);border-radius:50%}
.eb-hero__inner{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;position:relative;z-index:1}
.eb-hero h1{font-size:clamp(30px,4vw,46px);color:#fff;margin-bottom:18px}
.eb-hero__lead{font-size:17px;color:rgba(255,255,255,.85);max-width:480px;margin-bottom:24px}
.eb-hero__features{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}
.eb-hero__feature{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);color:#fff;padding:9px 16px;border-radius:999px;font-size:13.5px;font-weight:600}
.eb-hero__cta{display:flex;gap:14px;flex-wrap:wrap}

/* Comparison widget - signature element */
.eb-compare{background:#fff;border-radius:22px;padding:28px;box-shadow:0 30px 70px rgba(7,38,63,.35);position:relative;color:var(--eb-ink)}
.eb-compare__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.eb-compare__top span{font-size:13px;font-weight:700;color:var(--eb-grey);text-transform:uppercase;letter-spacing:.05em}
.eb-compare__cards{display:flex;gap:14px;position:relative}
.eb-compare__card{flex:1;border:1.5px solid var(--eb-border);border-radius:14px;padding:16px}
.eb-compare__card.is-best{border-color:var(--eb-green)}
.eb-compare__card h4{font-size:15px;margin-bottom:2px}
.eb-compare__price{font-size:12px;color:var(--eb-grey);margin-bottom:12px}
.eb-compare__row{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;padding:7px 0;border-bottom:1px dashed var(--eb-border)}
.eb-compare__row:last-child{border-bottom:none}
.eb-compare__row svg{flex:0 0 auto}
.eb-compare__vs{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:var(--eb-orange);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:800;font-size:12px;box-shadow:0 6px 16px rgba(247,148,29,.4)}
.eb-compare__match{margin-top:18px;padding-top:16px;border-top:1px solid var(--eb-border)}
.eb-compare__match-label{display:flex;justify-content:space-between;font-size:13px;font-weight:700;margin-bottom:8px}
.eb-compare__match-label b{color:var(--eb-green)}
.eb-compare__bar{height:8px;background:var(--eb-border);border-radius:999px;overflow:hidden}
.eb-compare__bar span{display:block;height:100%;width:92%;background:linear-gradient(90deg,var(--eb-green),#27c97a);border-radius:999px}

/* ---------- Section 2: Sản phẩm theo nhu cầu ---------- */
.eb-needs__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.eb-needs__card{background:#fff;border:1px solid var(--eb-border);border-radius:16px;padding:26px;transition:box-shadow .15s,transform .15s}
.eb-needs__card:hover{box-shadow:0 12px 30px rgba(10,61,98,.08);transform:translateY(-3px)}
.eb-needs__icon{width:48px;height:48px;border-radius:12px;background:var(--eb-orange-soft);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.eb-needs__icon svg{stroke:var(--eb-orange)}
.eb-needs__card h3{font-size:18px;margin-bottom:6px}
.eb-needs__card ul li a{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:14px;color:var(--eb-grey);border-bottom:1px solid var(--eb-border);font-weight:500;transition:color .15s}
.eb-needs__card ul li:last-child a{border-bottom:none}
.eb-needs__card ul li a:hover{color:var(--eb-blue)}
.eb-needs__card ul li a::after{content:"\203A";margin-left:auto;color:var(--eb-orange);font-weight:700}

/* ---------- Section 3: Sản phẩm nổi bật ---------- */
.eb-products__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.eb-product-card{background:var(--eb-bg);border:1px solid var(--eb-border);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.eb-product-card__top{display:flex;align-items:center;gap:14px;padding:22px}
.eb-product-card__mark{width:48px;height:48px;border-radius:10px;background:#fff;border:1px solid var(--eb-border);display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:800;color:var(--eb-blue);font-size:14px;flex:0 0 auto}
.eb-product-card__top h3{font-size:16.5px;margin-bottom:2px}
.eb-product-card__top span{font-size:12.5px;color:var(--eb-grey);font-weight:600}
.eb-product-card__body{padding:0 22px;flex:1}
.eb-product-card__tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.eb-product-card__tags span{background:#fff;border:1px solid var(--eb-border);border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600;color:var(--eb-blue-deep)}
.eb-product-card__body p{font-size:13.5px;color:var(--eb-grey)}
.eb-product-card__cta{display:flex;gap:10px;padding:18px 22px;margin-top:18px;border-top:1px solid var(--eb-border)}
.eb-product-card__cta .btn{flex:1;padding:10px 16px;font-size:13.5px}

/* ---------- Section 4: Reviews ---------- */
.eb-reviews__track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 6px 18px;margin:0 -6px;scrollbar-width:thin}
.eb-review-card{flex:0 0 calc(33.333% - 14px);max-width:calc(33.333% - 14px);box-sizing:border-box;scroll-snap-align:start;background:#fff;border:1px solid var(--eb-border);border-radius:16px;padding:24px}
.eb-review-card__stars{color:var(--eb-orange);font-size:15px;margin-bottom:12px;letter-spacing:2px}
.eb-review-card p{font-size:14.5px;color:var(--eb-ink);margin-bottom:18px}
.eb-review-card__user{display:flex;align-items:center;gap:12px}
.eb-review-card__avatar{width:40px;height:40px;border-radius:50%;background:var(--eb-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-family:var(--font-display);font-size:14px;flex:0 0 auto}
.eb-review-card__user strong{font-size:14px;display:block}
.eb-review-card__user span{font-size:12.5px;color:var(--eb-grey)}
@media (max-width:900px){.eb-review-card{flex:0 0 calc(50% - 10px);max-width:calc(50% - 10px)}}
@media (max-width:640px){.eb-review-card{flex:0 0 calc(100vw - 48px);max-width:calc(100vw - 48px);margin-right:12px}}

/* ---------- Section 5: Công ty bảo hiểm ---------- */
.eb-insurers{background:var(--eb-blue-deep);color:#fff;text-align:center}
.eb-insurers .section-head h2,.eb-insurers .section-head p{color:#fff}
.eb-insurers .section-head p{color:rgba(255,255,255,.7)}
.eb-insurers__track-wrap{overflow:hidden;margin:36px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.eb-insurers__track{display:flex;flex-wrap:nowrap!important;flex-direction:row!important;gap:24px;width:max-content;animation:eb-scroll 32s linear infinite}
.eb-insurers__track-wrap:hover .eb-insurers__track{animation-play-state:paused}
.eb-insurer-logo{flex:0 0 150px;flex-shrink:0;height:64px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.eb-insurer-logo img{width:100%;height:100%;object-fit:contain;padding:10px}
@media(max-width:640px){.eb-insurer-logo{flex:0 0 120px!important}}
@keyframes eb-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- Section 6: Tin tức ---------- */
.eb-news__tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:32px}
.eb-news__tab{padding:10px 20px;border-radius:999px;border:1.5px solid var(--eb-border);font-weight:700;font-size:13.5px;cursor:pointer;background:#fff;color:var(--eb-grey);transition:.15s}
.eb-news__tab.active{background:var(--eb-blue);color:#fff;border-color:var(--eb-blue)}
.eb-news__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.eb-news-card{display:none;background:#fff;border:1px solid var(--eb-border);border-radius:14px;overflow:hidden}
.eb-news-card.show{display:flex;flex-direction:column}
.eb-news-card__thumb{height:120px;background:linear-gradient(135deg,var(--eb-blue),var(--eb-blue-deep)) center/cover no-repeat;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.55);font-family:var(--font-display);font-weight:800;font-size:13px;letter-spacing:.05em;text-transform:uppercase}
.eb-news-card__thumb img{width:100%;height:100%;object-fit:cover}
.eb-news-card__body{padding:16px}
.eb-news-card__cat{font-size:11.5px;font-weight:700;color:var(--eb-orange);text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
.eb-news-card h3{font-size:14.5px;line-height:1.4;font-family:var(--font-body);font-weight:700;color:var(--eb-ink)}

/* ---------- Section 7: Nhân sự bảo hiểm ---------- */
.eb-hr__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.eb-hr-card{background:#fff;border:1px solid var(--eb-border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.eb-hr-card__thumb{height:120px;background:linear-gradient(135deg,var(--eb-orange),#ffb142) center/cover no-repeat;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.65);font-family:var(--font-display);font-weight:800;font-size:13px;letter-spacing:.05em;text-transform:uppercase}
.eb-hr-card__thumb img{width:100%;height:100%;object-fit:cover}
.eb-hr-card__body{padding:16px;display:flex;flex-direction:column;gap:10px}
.eb-hr-card__tag{display:inline-flex;align-self:flex-start;background:var(--eb-orange-soft);color:var(--eb-orange);font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:5px 10px;border-radius:6px}
.eb-hr-card h3{font-size:15px;font-family:var(--font-body);font-weight:700;line-height:1.4}
.eb-hr-card p{font-size:13px;color:var(--eb-grey)}

/* ---------- Section 9: BHXH & BHYT ---------- */
.eb-bhxh{background:linear-gradient(120deg,var(--eb-orange) 0%,#ffb142 100%);color:#fff;text-align:center}
.eb-bhxh h2{color:#fff;font-size:clamp(26px,3.4vw,38px);margin-bottom:14px}
.eb-bhxh p{color:rgba(255,255,255,.9);max-width:620px;margin:0 auto 28px;font-size:16px}
.eb-bhxh__tags{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-bottom:28px}
.eb-bhxh__tags span{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.3);padding:8px 16px;border-radius:999px;font-size:13.5px;font-weight:600}

/* ---------- Section 10: Đặt lịch tư vấn ---------- */
.eb-consult{background:#fff}
.eb-consult__inner{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.eb-consult__info ul{margin-top:20px;display:flex;flex-direction:column;gap:14px}
.eb-consult__info li{display:flex;align-items:center;gap:12px;font-size:14.5px;font-weight:600}
.eb-consult__info li svg{flex:0 0 auto;stroke:var(--eb-blue)}
.eb-consult__social{display:flex;gap:12px;margin-top:24px}
.eb-form{background:var(--eb-bg);border:1px solid var(--eb-border);border-radius:18px;padding:32px}
.eb-form label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--eb-blue-ink)}
.eb-form .field{margin-bottom:16px}
.eb-form input,.eb-form select{width:100%;padding:12px 14px;border:1.5px solid var(--eb-border);border-radius:10px;font-family:var(--font-body);font-size:14.5px;background:#fff;color:var(--eb-ink)}
.eb-form input:focus,.eb-form select:focus{border-color:var(--eb-blue);outline:none}

/* ---------- Responsive - home ---------- */
@media (max-width:1024px){
  .eb-needs__grid{grid-template-columns:repeat(2,1fr)}
  .eb-products__grid{grid-template-columns:repeat(2,1fr)}
  .eb-news__grid,.eb-hr__grid{grid-template-columns:repeat(2,1fr)}
  .eb-hero__inner{grid-template-columns:1fr}
  .eb-hero__inner .eb-compare{max-width:480px}
  .eb-consult__inner{grid-template-columns:1fr;gap:32px}
}
@media (max-width:760px){
  .eb-needs__grid,.eb-products__grid,.eb-news__grid,.eb-hr__grid{grid-template-columns:1fr}
}
