/*
 * Giao diện "trang giới thiệu giải pháp" cho mô tả danh mục / bài viết.
 * Dựng theo bộ slide IAMS của khách (navy #0A2438, cam #F58220).
 *
 * Cách dùng: bọc nội dung trong <div class="ava-lp"> rồi dùng các khối
 * ava-lp-hero, ava-lp-sec, ava-lp-cards, ava-lp-steps, ava-lp-cta…
 * HtmlSanitizer chỉ cho class trên div/span/img, nên mọi thứ là div/span có
 * class; tiêu đề mục dùng <h2> trần, định dạng qua khối cha.
 *
 * Ảnh LUÔN bọc trong <span class="ava-lp-media">: category.blade.php có luật
 * "div có ảnh đầu tiên => thẻ biểu tượng 88px, xếp lưới" dành cho nội dung web
 * cũ — để ảnh trực tiếp trong div là bị luật đó bóp nhỏ.
 */
.ava-lp {
    --lp-navy: #0A2438;
    --lp-navy-2: #123B5D;
    --lp-orange: #F58220;
    --lp-light: #F3F7FA;
    --lp-text: #334155;
    --lp-muted: #5b6b7f;
    color: var(--lp-text);
    line-height: 1.6;
}
.ava-lp * { box-sizing: border-box; }
.ava-lp .ava-lp-media { display: block; }
/* Lớp phủ màu chỉ để nhìn: không được chặn chuột, nếu không bấm vào ảnh
   (trình sửa trực tiếp ngoài web) sẽ không mở được hộp thay ảnh. */
.ava-lp .ava-lp-media::after { pointer-events: none; }
.ava-lp .ava-lp-media img {
    display: block; width: 100%; height: 100%; max-width: none;
    object-fit: cover; margin: 0; border-radius: inherit;
}

/* ---------- Khối mở đầu (slide 1) ---------- */
.ava-lp .ava-lp-hero {
    position: relative; display: grid; grid-template-columns: 43% 57%;
    min-height: 440px; background: var(--lp-navy); color: #fff;
    border-radius: 16px; overflow: hidden; margin-bottom: 3rem;
}
.ava-lp .ava-lp-hero-text {
    position: relative; z-index: 1; padding: 3rem 2.5rem;
    display: flex; flex-direction: column; justify-content: center;
}
.ava-lp .ava-lp-hero-text::before {
    content: ''; width: 56px; height: 5px; background: var(--lp-orange);
    border-radius: 3px; margin-bottom: 1rem;
}
.ava-lp .ava-lp-kicker {
    font-size: .8rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: #c9d6e3; margin-bottom: 1rem;
}
.ava-lp .ava-lp-hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 800; line-height: 1;
    letter-spacing: .02em; color: #fff; margin-bottom: 1rem;
}
.ava-lp .ava-lp-hero-sub {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.3;
    text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.ava-lp .ava-lp-hero-lead { font-size: 1.1rem; color: #dbe5ee; margin-bottom: 1.75rem; }
.ava-lp .ava-lp-pill {
    align-self: flex-start; background: var(--lp-orange); color: #fff;
    font-weight: 700; font-size: .85rem; letter-spacing: .06em;
    padding: .7rem 1.4rem; border-radius: 999px;
}
.ava-lp .ava-lp-hero > .ava-lp-media { position: relative; min-height: 100%; }
/* ảnh hoà vào nền navy ở mép trái, giống slide */
.ava-lp .ava-lp-hero > .ava-lp-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--lp-navy) 0%, rgba(10, 36, 56, 0) 35%);
}

/* Bản thu gọn (trang Giới thiệu): thấp hơn, có hàng "chip" chức năng + nút. */
.ava-lp .ava-lp-hero--compact { min-height: 380px; margin-bottom: 0; }
.ava-lp .ava-lp-hero--compact .ava-lp-hero-title { font-size: clamp(3rem, 6vw, 4.5rem); }
.ava-lp .ava-lp-hero--compact .ava-lp-hero-lead { font-size: 1rem; }
.ava-lp .ava-lp-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.ava-lp .ava-lp-chip {
    display: inline-block; font-size: .8rem; font-weight: 600; color: #fff;
    padding: .4rem .85rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(245, 130, 32, .55);
}

/* ---------- Mục chung ---------- */
.ava-lp .ava-lp-sec { padding: 2.5rem 0; }
.ava-lp .ava-lp-sec--light {
    background: var(--lp-light); border-radius: 16px; padding: 2.5rem 2rem;
    margin: 1rem 0;
}
.ava-lp .ava-lp-sec h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--lp-navy);
    line-height: 1.25; margin: 0 0 .6rem;
}
.ava-lp .ava-lp-sec h2::after {
    content: ''; display: block; width: 56px; height: 5px; margin-top: .8rem;
    background: var(--lp-orange); border-radius: 3px;
}
.ava-lp .ava-lp-sub { font-size: 1.1rem; color: var(--lp-muted); margin: .4rem 0 0; }
.ava-lp .ava-lp-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    align-items: stretch; margin-top: 2rem;
}
.ava-lp .ava-lp-split > .ava-lp-media { border-radius: 14px; overflow: hidden; min-height: 320px; }

/* ---------- So sánh (slide 2) ---------- */
.ava-lp .ava-lp-compare { background: var(--lp-light); border-radius: 14px; padding: 1.75rem; }
.ava-lp .ava-lp-compare-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    padding: 1rem 0; border-bottom: 1px solid #dde5ee;
}
.ava-lp .ava-lp-compare-row:last-child { border-bottom: 0; }
.ava-lp .ava-lp-compare-row > div:first-child { color: var(--lp-muted); }
.ava-lp .ava-lp-compare-row > div:last-child {
    font-weight: 700; color: var(--lp-navy);
    border-left: 4px solid var(--lp-orange); padding-left: 1rem;
}
.ava-lp .ava-lp-compare-head { padding-top: 0; }
.ava-lp .ava-lp-compare-head > div {
    font-size: .85rem; font-weight: 800 !important; letter-spacing: .12em;
    text-transform: uppercase; color: var(--lp-navy) !important;
}
.ava-lp .ava-lp-compare-head > div:last-child { color: var(--lp-orange) !important; border-left-color: transparent !important; }

/* ---------- 6 chức năng (slide 3) ---------- */
.ava-lp .ava-lp-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem;
}
.ava-lp .ava-lp-card {
    background: #fff; border-radius: 12px; border-left: 6px solid var(--lp-orange);
    padding: 1.5rem 1.4rem; box-shadow: 0 6px 18px rgba(10, 36, 56, .06);
}
.ava-lp .ava-lp-num { font-size: 1.6rem; font-weight: 800; color: var(--lp-orange); line-height: 1; margin-bottom: .6rem; }
.ava-lp .ava-lp-card-title { font-size: 1.15rem; font-weight: 800; color: var(--lp-navy); margin-bottom: .4rem; }
.ava-lp .ava-lp-card-text { color: var(--lp-muted); }

/* ---------- Tác động (slide 4) ---------- */
.ava-lp .ava-lp-item { display: flex; gap: 1rem; padding: .75rem 0; }
.ava-lp .ava-lp-icon {
    flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--lp-navy);
    color: var(--lp-orange); font-size: 1.3rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ava-lp .ava-lp-item-title { font-size: 1.1rem; font-weight: 800; color: var(--lp-navy); }
.ava-lp .ava-lp-item-text { color: var(--lp-muted); }

/* ---------- Lộ trình (slide 5) ---------- */
.ava-lp .ava-lp-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; margin-top: 2rem;
}
.ava-lp .ava-lp-step {
    position: relative; background: var(--lp-light); border-radius: 12px;
    border-top: 8px solid var(--lp-navy-2); padding: 1.5rem 1.25rem;
}
.ava-lp .ava-lp-step:first-child { border-top-color: var(--lp-orange); }
.ava-lp .ava-lp-step:not(:last-child)::after {
    content: '›'; position: absolute; right: -1.35rem; top: 50%; transform: translateY(-50%);
    font-size: 2rem; font-weight: 700; color: var(--lp-orange); line-height: 1;
}
.ava-lp .ava-lp-step-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--lp-orange); margin-bottom: .6rem; }
.ava-lp .ava-lp-step-title { font-size: 1.1rem; font-weight: 800; color: var(--lp-navy); text-transform: uppercase; line-height: 1.3; margin-bottom: .8rem; }
.ava-lp .ava-lp-step-text { color: var(--lp-muted); font-size: .95rem; }
.ava-lp .ava-lp-track {
    display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem;
    padding: .9rem 1.5rem; border-radius: 10px; color: #fff;
    font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem;
    background: linear-gradient(90deg, var(--lp-orange) 0%, var(--lp-navy-2) 35%, var(--lp-navy) 100%);
}

/* ---------- Kêu gọi liên hệ (slide 6) ---------- */
.ava-lp .ava-lp-cta {
    position: relative; border-radius: 16px; overflow: hidden; margin-top: 2.5rem;
    padding: 3rem; background: var(--lp-navy);
}
.ava-lp .ava-lp-cta > .ava-lp-media { position: absolute; inset: 0; }
.ava-lp .ava-lp-cta > .ava-lp-media::after {
    content: ''; position: absolute; inset: 0; background: rgba(10, 36, 56, .82);
}
.ava-lp .ava-lp-cta-box {
    position: relative; z-index: 1; color: #fff;
    border-left: 6px solid var(--lp-orange); padding: 1rem 0 1rem 2rem;
}
.ava-lp .ava-lp-cta-box .ava-lp-kicker { color: var(--lp-orange); }
.ava-lp .ava-lp-cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2;
    text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}
.ava-lp .ava-lp-cta-text { font-size: 1.1rem; color: #dbe5ee; max-width: 720px; margin-bottom: 1.75rem; }
.ava-lp .ava-lp-btn a {
    display: inline-block; background: var(--lp-orange); color: #fff !important;
    font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: .85rem 1.75rem; border-radius: 10px; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ava-lp .ava-lp-btn a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 130, 32, .35); }

/* ---------- Máy tính bảng / điện thoại ---------- */
@media (max-width: 991.98px) {
    .ava-lp .ava-lp-cards { grid-template-columns: repeat(2, 1fr); }
    .ava-lp .ava-lp-steps { grid-template-columns: repeat(2, 1fr); }
    .ava-lp .ava-lp-step:nth-child(2)::after { display: none; }
}
@media (max-width: 767.98px) {
    .ava-lp .ava-lp-hero { grid-template-columns: 1fr; min-height: 0; }
    .ava-lp .ava-lp-hero > .ava-lp-media { order: -1; height: 220px; }
    .ava-lp .ava-lp-hero > .ava-lp-media::after { background: linear-gradient(0deg, var(--lp-navy) 0%, rgba(10, 36, 56, 0) 45%); }
    .ava-lp .ava-lp-hero-text { padding: 1.75rem 1.5rem 2rem; }
    .ava-lp .ava-lp-split { grid-template-columns: 1fr; }
    .ava-lp .ava-lp-split > .ava-lp-media { min-height: 220px; }
    .ava-lp .ava-lp-sec--light { padding: 2rem 1.25rem; }
    .ava-lp .ava-lp-compare { padding: 1.25rem; }
    .ava-lp .ava-lp-compare-row { gap: .9rem; }
    .ava-lp .ava-lp-cards, .ava-lp .ava-lp-steps { grid-template-columns: 1fr; }
    .ava-lp .ava-lp-step::after { display: none; }
    .ava-lp .ava-lp-track { font-size: .72rem; padding: .8rem 1rem; }
    .ava-lp .ava-lp-cta { padding: 2rem 1.25rem; }
    .ava-lp .ava-lp-cta-box { padding-left: 1.25rem; }
}
