/* ─────────────────────────────────────────────
   Home / Product index page styles
   ───────────────────────────────────────────── */

/* ── Hero ── */
.hero-section {
    background: linear-gradient(145deg, #042b18 0%, #0a5530 60%, #1a8a50 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 88px 0 72px;
}
.hero-bg {
    position: absolute;
    top: -35%;
    left: 0;
    right: 0;
    bottom: -35%;
    background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1920&q=80')
        center / cover no-repeat;
    will-change: transform;
    z-index: 0;
}
/* Dark green tint overlay — keeps brand color over the photo */
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        105deg,
        rgba(4,43,24,.88) 0%,
        rgba(9,77,44,.80) 45%,
        rgba(13,110,63,.65) 100%
    );
    pointer-events: none;
    z-index: 1;
}
/* Subtle grid lines */
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
    z-index: 2;
}
.hero-section .container { position: relative; z-index: 3; }

/* Eyebrow pill */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(74,222,128,.15);
    border: 1px solid rgba(74,222,128,.35);
    border-radius: 50px;
    padding: .38rem 1.1rem;
    font-size: .8rem; font-weight: 700; color: #86efac;
    margin-bottom: 1.4rem;
    letter-spacing: .04em;
}
.hero-eyebrow .badge-dot,
.hero-badge .badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,.3);
    animation: pulse-dot 2s infinite;
}
/* Legacy alias */
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(74,222,128,.15);
    border: 1px solid rgba(74,222,128,.35);
    border-radius: 50px;
    padding: .38rem 1.1rem;
    font-size: .8rem; font-weight: 700; color: #86efac;
    margin-bottom: 1.4rem;
}

@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,.3); }
    50%      { box-shadow: 0 0 0 6px rgba(74,222,128,.12); }
}

/* Title */
.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -.03em;
}
.hero-title .hl { color: #86efac; }

/* Tagline */
.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .6rem;
    margin-bottom: 2.6rem;
    margin-left: auto;
    margin-right: auto;
}
.tagline-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 100px;
    padding: .38rem 1rem;
    color: rgba(255,255,255,.88);
    white-space: nowrap;
}
.tagline-chip i { color: #4ade80; font-size: .95rem; }

/* Action buttons */
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; margin-bottom: 2.5rem; }

.hero-btn-primary {
    display: inline-flex; align-items: center; gap: .6rem;
    background: #fff; color: #0a5530;
    font-size: 1.05rem; font-weight: 800;
    padding: .9rem 2.2rem; border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    transition: transform .18s, box-shadow .18s, background .18s;
}
.hero-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.3); color: #063d22; }
.hero-btn-primary i { font-size: 1.15rem; }

/* Standalone CTA variant */
.hero-btn-cta {
    font-size: 1.25rem;
    padding: 1.1rem 3.2rem;
    border-radius: 100px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    margin-top: .5rem;
    position: relative;
    overflow: hidden;
    animation: cta-wiggle 3.5s ease-in-out infinite;
}
/* Shimmer sweep */
.hero-btn-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,.28) 50%,
        transparent 70%
    );
    animation: cta-shimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}
.hero-btn-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 56px rgba(0,0,0,.4);
    animation: none;
}
.hero-btn-cta:hover::after { animation: none; opacity: 0; }

/* Lắc: đứng yên phần lớn thời gian, lắc nhanh 2 lần rồi dừng */
@keyframes cta-wiggle {
    0%, 55%, 100% { transform: rotate(0deg); }
    58%  { transform: rotate(-4deg); }
    62%  { transform: rotate( 4deg); }
    66%  { transform: rotate(-3deg); }
    70%  { transform: rotate( 3deg); }
    74%  { transform: rotate(-1.5deg); }
    78%  { transform: rotate(0deg); }
}
@keyframes cta-shimmer {
    0%   { left: -75%; opacity: 1; }
    55%  { left: 125%; opacity: 1; }
    100% { left: 125%; opacity: 0; }
}
@media (max-width: 575px) {
    .hero-btn-cta { justify-content: center; }
}

.hero-btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    color: rgba(255,255,255,.8);
    font-size: .95rem; font-weight: 600;
    padding: .85rem 1.5rem; border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.25);
    transition: border-color .18s, color .18s, background .18s;
}
.hero-btn-ghost:hover { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.07); }

/* Stats row */
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-stat-item { display: flex; flex-direction: column; }
.hero-stat-num   { font-size: 1.55rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .2rem; }

/* Illustration panel */
.hero-illus-wrap { position: relative; display: flex; align-items: stretch; justify-content: center; width: 100%; }

.hero-illus-card {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 1rem;
}
.hero-illus-card::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,222,128,.14) 0%, transparent 70%);
    pointer-events: none;
}

/* Doc stack illustration */
.hero-doc-stack { position: relative; height: 190px; }
.hero-doc {
    position: absolute; border-radius: 12px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
}
.hero-doc-1 { width: 210px; height: 130px; bottom: 0;  left: 50%; transform: translateX(-50%) rotate(-5deg); }
.hero-doc-2 { width: 210px; height: 130px; bottom: 14px; left: 50%; transform: translateX(-48%) rotate(-1.5deg); }
.hero-doc-3 { width: 210px; height: 130px; bottom: 28px; left: 50%; transform: translateX(-46%) rotate(2.5deg); background: #fff; }
.hero-doc-lines      { padding: 14px 16px; }
.hero-doc-bar        { height: 7px; border-radius: 4px; background: #e2e8f0; margin-bottom: 8px; }
.hero-doc-bar.accent { background: linear-gradient(90deg, #0d6e3f, #4ade80); width: 75%; }
.hero-doc-bar.w50    { width: 50%; }
.hero-doc-bar.w85    { width: 85%; }
.hero-doc-bar.w60    { width: 60%; }

/* Feature badges inside illustration */
.hero-illus-badges { display: flex; flex-direction: column; gap: .5rem; }
.hero-illus-badge {
    display: flex; align-items: center; gap: .65rem;
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px; padding: .6rem 1rem;
    font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.92);
    transition: background .18s;
}
.hero-illus-badge:hover  { background: rgba(255,255,255,.14); }
.hero-illus-badge i      { font-size: 1rem; flex-shrink: 0; }
.hero-illus-badge.green i { color: #4ade80; }
.hero-illus-badge.amber i { color: #fbbf24; }
.hero-illus-badge.blue  i { color: #60a5fa; }

/* Divider inside card */
.hero-illus-divider {
    border: none; border-top: 1px solid rgba(255,255,255,.1); margin: .25rem 0;
}

/* Floating stat chips */
.hero-float {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: .7rem 1.1rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    text-align: center;
    min-width: 88px;
    animation: float-y 3.5s ease-in-out infinite;
    z-index: 3;
}
.hero-float-num   { font-size: 1.45rem; font-weight: 800; color: #0d6e3f; line-height: 1; }
.hero-float-label { font-size: .68rem; font-weight: 600; color: #64748b; margin-top: .15rem; }
.hero-float-1 { top: -18px; left: -24px; animation-delay: 0s; }
.hero-float-2 { bottom: -12px; right: -18px; animation-delay: 1.8s; }

@keyframes float-y {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes bounce-down {
    0%,100% { transform: translateY(0); opacity: .45; }
    50%      { transform: translateY(6px); opacity: .9; }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-tagline  { font-size: 0.9rem; }
    .hero-eyebrow  { display: none; }
}

/* ── Trust bar ── */
.trust-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: .75rem 0; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 500; color: #475569; }
.trust-item i { color: #0d6e3f; font-size: 1.1rem; }

/* ── Law cards ── */
.law-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    height: 100%;
}
.law-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-2px); border-color: #86efac; }
.law-card-icon  { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.law-card-type  { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.law-card-num   { font-size: 1rem; font-weight: 700; color: #0d6e3f; line-height: 1.3; margin: .25rem 0 .2rem; }
.law-card-desc  { font-size: .83rem; color: #64748b; margin-bottom: .6rem; }
.law-card-date  { font-size: .78rem; color: #94a3b8; display: flex; align-items: center; gap: .3rem; }
.status-badge   { display: inline-flex; align-items: center; gap: .3rem; font-size: .73rem; font-weight: 600; padding: .2rem .6rem; border-radius: 50px; }
.status-active  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }

/* ── Target group tabs (legacy) ── */
.group-tabs     { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; }
.group-tab-btn  { display: flex; align-items: center; gap: .5rem; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: .65rem 1.1rem; font-size: .875rem; font-weight: 600; color: #475569; cursor: pointer; transition: all .18s; white-space: nowrap; }
.group-tab-btn:hover  { border-color: #0d6e3f; color: #0d6e3f; background: #f0fdf4; }
.group-tab-btn.active { background: #0d6e3f; border-color: #0d6e3f; color: #fff; box-shadow: 0 4px 12px rgba(13,110,63,.3); }
.group-tab-btn .tab-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .85rem; background: rgba(0,0,0,.06); transition: background .18s; }
.group-tab-btn.active .tab-icon { background: rgba(255,255,255,.2); }
.group-content        { display: none; }
.group-content.active { display: block; }
.group-detail-card    { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #86efac; border-radius: 16px; padding: 1.75rem; }
.group-doc-list       { list-style: none; padding: 0; margin: 0; }
.group-doc-list li    { display: flex; align-items: flex-start; gap: .7rem; padding: .65rem 0; border-bottom: 1px solid rgba(13,110,63,.1); font-size: .9rem; }
.group-doc-list li:last-child { border-bottom: none; }
.group-doc-list li .doc-num { width: 22px; height: 22px; background: #0d6e3f; color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* ── Product cards ── */
.product-card { border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; background: #fff; transition: all .22s; height: 100%; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 12px 32px rgba(13,110,63,.12); transform: translateY(-3px); border-color: #86efac; }
.product-card-header { background: linear-gradient(135deg, #0d6e3f, #1a8a50); padding: 1.25rem 1.5rem; position: relative; overflow: hidden; }
.product-card-header::after { content: ''; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.08); }
.product-card-body   { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.feature-check       { display: flex; align-items: flex-start; gap: .6rem; font-size: .87rem; margin-bottom: .5rem; }
.feature-check i     { color: #0d6e3f; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Handbook card ── */
.cam-nang-card { background: linear-gradient(135deg, #1e3a5f, #2563eb); border-radius: 20px; padding: 2rem; color: #fff; position: relative; overflow: hidden; }
.cam-nang-card::before { content: ''; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; background: rgba(255,255,255,.07); border-radius: 50%; }
.update-item       { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.update-item:last-child { border-bottom: none; }
.update-dot        { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.update-dot.new    { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.update-dot.update { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.2); }
.update-dot.info   { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.2); }

/* ── Steps ── */
.step-circle { width: 52px; height: 52px; background: linear-gradient(135deg, #0d6e3f, #1a8a50); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; font-weight: 800; box-shadow: 0 4px 14px rgba(13,110,63,.3); flex-shrink: 0; margin: 0 auto; }

/* ── Vertical tabs (mẫu biểu section) ── */
.vtabs-nav            { list-style: none; padding: 0; margin: 0; }
.vtabs-nav li         { border-bottom: 1px solid #e2e8f0; }
.vtabs-nav li:last-child { border-bottom: none; }
.vtab-btn {
    display: flex; align-items: center; gap: .55rem;
    width: 100%; text-align: left;
    background: transparent; border: none;
    padding: .7rem .9rem;
    font-size: .82rem; font-weight: 600; color: #475569;
    cursor: pointer; transition: all .15s;
    border-left: 3px solid transparent;
    line-height: 1.35;
}
.vtab-btn:hover              { background: #f8fafc; color: #0d6e3f; }
.vtab-btn.active             { background: #f0fdf4; color: #0d6e3f; border-left-color: #0d6e3f; }
.vtab-btn .vtab-num          { min-width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #475569; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.vtab-btn.active .vtab-num,
.vtab-btn:hover  .vtab-num   { background: #0d6e3f; color: #fff; }
.vtab-pane        { display: none; }
.vtab-pane.active { display: block; }
.vtab-free-badge  { font-size: .66rem; font-weight: 700; padding: .15rem .45rem; border-radius: 50px; background: #f0fdf4; color: #15803d; border: 1px solid #86efac; white-space: nowrap; }
.vtab-new-badge   { font-size: .66rem; font-weight: 700; padding: .15rem .45rem; border-radius: 50px; background: #fef9c3; color: #92400e;  border: 1px solid #fde68a; white-space: nowrap; }

@media (max-width: 767px) {
    .vtab-free-badge,
    .vtab-new-badge { display: none; }
}

/* ── Service cards section ── */
.svc-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding: 5rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.svc-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 22px;
    padding: 2rem 1.75rem 1.75rem;
    height: 100%;
    display: flex; flex-direction: column;
    transition: all .25s cubic-bezier(.22,.68,0,1.2);
    background: #fff;
    position: relative;
    overflow: hidden;
}
/* Top colour bar per card type */
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 22px 22px 0 0; }
.svc-card.svc-download::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.svc-card.svc-tuvan::before    { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.svc-card.svc-trongoi::before  { background: linear-gradient(90deg, #d97706, #fbbf24); }

.svc-card:hover { transform: translateY(-6px); border-color: transparent; }
.svc-card.svc-download:hover { box-shadow: 0 20px 48px rgba(22,163,74,.16); }
.svc-card.svc-tuvan:hover    { box-shadow: 0 20px 48px rgba(37,99,235,.16); }
.svc-card.svc-trongoi:hover  { box-shadow: 0 20px 48px rgba(217,119,6,.18); }

.svc-icon  { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; flex-shrink: 0; }
.svc-title { font-size: 1.08rem; font-weight: 800; color: #1e293b; margin-bottom: .2rem; }

.svc-card .svc-features                 { list-style: none; padding: 0; margin: 1rem 0; flex: 1; }
.svc-card .svc-features li              { display: flex; align-items: flex-start; gap: .55rem; font-size: .87rem; padding: .4rem 0; border-bottom: 1px solid #f1f5f9; color: #475569; }
.svc-card .svc-features li:last-child   { border-bottom: none; }
.svc-card .svc-features li i            { flex-shrink: 0; margin-top: 2px; }

.svc-price      { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.svc-price-note { font-size: .78rem; color: #94a3b8; margin-top: .2rem; }
.svc-price-row  { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .85rem 0 1.1rem; }

.svc-btn {
    display: block; width: 100%; text-align: center;
    padding: .75rem 1rem; border-radius: 12px;
    font-size: .92rem; font-weight: 700; cursor: pointer;
    border: none; text-decoration: none;
    transition: opacity .15s, transform .15s, box-shadow .15s;
    letter-spacing: .01em;
}
.svc-btn:hover      { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.svc-btn-download   { background: linear-gradient(135deg,#16a34a,#15803d); color: #fff; box-shadow: 0 4px 16px rgba(22,163,74,.3); }
.svc-btn-tuvan      { background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,.3); }
.svc-btn-trongoi    { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; box-shadow: 0 4px 16px rgba(217,119,6,.3); }
.svc-btn-group      { display: flex; flex-direction: row; align-items: stretch; gap: .5rem; }
.svc-btn-group .svc-btn { flex: 1; margin: 0; }
.svc-btn-zalo-sq    {
    flex-shrink: 0;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
    text-decoration: none;
}
.svc-btn-zalo-sq:hover { border-color: #0068ff; box-shadow: 0 4px 12px rgba(0,104,255,.2); }
