/* Phần bổ sung của trang chi tiết giải pháp (hero, tính năng, thông số, CTA vẫn ở css/app.css; khối dùng chung ở css/detail.css) */

/* ---------- Hero: các ý nổi bật ---------- */
.detail-highlights {
    margin-bottom: 10px;
}

.detail-highlights li {
    font-weight: 600;
}

/* ---------- Thanh mục lục nhanh ---------- */
.detail-jump {
    position: sticky;
    top: 71px; /* chiều cao header (70px + viền) */
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.detail-jump .container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.detail-jump .container::-webkit-scrollbar {
    display: none;
}

.detail-jump a {
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.detail-jump a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* Các phần được nhảy tới: chừa chỗ cho header + thanh mục lục đang dính */
.detail-overview,
.detail-features,
.detail-process,
.detail-specs,
.detail-gallery,
.detail-faq {
    scroll-margin-top: 120px;
}

/* ---------- Tiêu đề phần mới (đồng bộ với .detail-features h2 trong app.css) ---------- */
.detail-overview h2,
.detail-process h2,
.detail-gallery h2,
.detail-faq h2,
.detail-related h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.section-lead {
    margin: -12px 0 30px;
    color: var(--text-light);
}

/* ---------- Tổng quan ---------- */
.detail-overview {
    padding: 80px 0;
    background: var(--bg-white);
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.overview-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.audience-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.audience-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.audience-card .check-list li::before {
    background: #fff;
}

/* Tính năng nằm ngay sau tổng quan: đổi nền để tách hai phần */
.detail-features {
    background: var(--bg-light);
}

.detail-features .feature-card {
    background: #fff;
}

/* ---------- Quy trình ---------- */
.detail-process {
    padding: 80px 0;
    background: var(--bg-white);
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 60px;
    align-items: start;
}

.process-intro p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

.process-total {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 24px;
    padding: 16px 22px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.process-total span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-light);
}

.process-total strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-dark);
}

/* ---------- Ảnh demo ---------- */
.detail-gallery {
    padding: 80px 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-thumb {
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-light);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
}

.gallery-thumb:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 3px;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* ---------- Hỏi đáp ---------- */
.detail-faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-wrap {
    max-width: 860px;
}

/* ---------- Giải pháp liên quan ---------- */
.detail-related {
    padding: 80px 0;
    background: var(--bg-white);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
}

.related-card-image {
    display: block;
    background: var(--bg-light);
}

.related-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.related-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.related-card-category {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-card h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.related-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-card h3 a:hover {
    color: var(--primary-dark);
}

.related-card p {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 14px;
}

.related-card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.related-card-link:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .detail-jump {
        top: 65px; /* header thu gọn còn 64px + viền */
    }

    .overview-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-overview,
    .detail-process,
    .detail-gallery,
    .detail-faq,
    .detail-related {
        padding: 56px 0;
    }

    .detail-overview h2,
    .detail-process h2,
    .detail-gallery h2,
    .detail-faq h2,
    .detail-related h2 {
        font-size: 28px;
    }

    .gallery-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-thumb,
    .related-card {
        transition: none;
    }
}
