/* Trang chi tiet Giai phap (modules/solutions/detail.tpl) - theo html/demo/chi_tiet_giai_phap/Chi tiết giải pháp.jpg */
.page-solution-detail {
    color: var(--navy);
    background: #fff
}

.detail-wrap {
    width: min(100% - 64px, 1380px);
    margin: auto
}

/* Tieu de khoi: gach cam ngan phia tren */
.page-solution-detail .detail-title {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.2
}

.page-solution-detail .detail-title::before {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    margin-bottom: 12px;
    background: var(--brand);
    border-radius: 3px
}

/* Nut cam (chi gan qua class) */
.page-solution-detail .detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--brand);
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: filter .2s
}

.page-solution-detail .detail-btn:hover {
    filter: brightness(1.06);
    color: #fff
}

/* Hero */
.detail-hero {
    min-height: 400px;
    background: linear-gradient(90deg, #effaff 0%, #effaffe6 40%, #effaff26 68%, #effaff00 100%), url('../images/industry5.jpg');
    background-color: #effaff;
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat
}

.detail-hero .detail-wrap {
    padding: 22px 0 48px
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #587085;
    font-size: 14px
}

.page-solution-detail .detail-breadcrumb a {
    color: inherit;
    text-decoration: none
}

.page-solution-detail .detail-breadcrumb a:hover {
    color: var(--brand);
    text-decoration: underline
}

.page-solution-detail .detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase
}

.page-solution-detail .detail-kicker::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px
}

.detail-hero h1 {
    margin: 10px 0 12px;
    font-size: 46px;
    line-height: 1.08
}

.detail-hero p {
    max-width: 520px;
    margin: 0 0 24px;
    color: #31506b;
    font-size: 18px;
    line-height: 1.45
}

.page-solution-detail .detail-admin-edit {
    margin-left: 14px;
    color: #587085;
    font-size: 13px
}

/* 4 loi ich */
.detail-benefits {
    background: #f2faff;
    border-top: 1px solid #e2ebf0;
    border-bottom: 1px solid #e2ebf0
}

.detail-benefits .detail-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 22px 0
}

.detail-benefits article {
    display: flex;
    align-items: flex-start;
    gap: 14px
}

.detail-benefits i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 1.5px solid var(--navy);
    border-radius: 50%;
    color: var(--navy);
    font-size: 20px;
    font-style: normal
}

.detail-benefits i img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.detail-benefits h2 {
    margin: 2px 0 4px;
    font-size: 16px
}

.detail-benefits p {
    margin: 0;
    color: #66788b;
    font-size: 14px;
    line-height: 1.4
}

/* Gioi thieu */
.detail-intro {
    padding: 48px 0
}

.detail-intro .detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center
}

.page-solution-detail .detail-intro img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px
}

.detail-intro p {
    margin: 0 0 12px;
    color: #5d7083;
    font-size: 16px;
    line-height: 1.55
}

.detail-checks {
    margin: 16px 0 0;
    padding: 0;
    list-style: none
}

.detail-checks li,
.detail-content ul li {
    position: relative;
    margin: 8px 0;
    padding-left: 30px;
    color: #44596d;
    font-size: 16px;
    line-height: 1.45
}

.detail-checks li::before,
.detail-content ul li::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat
}

/* Ung dung trong nhieu linh vuc */
.detail-industries {
    padding: 44px 0;
    background: #eef7fd
}

.detail-industries__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.detail-industries__grid article {
    position: relative;
    background: #fff;
    border: 1px solid #dce7ed;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s
}

.detail-industries__grid article:hover {
    box-shadow: 0 10px 24px rgba(8, 45, 81, .1);
    transform: translateY(-2px)
}

.page-solution-detail .detail-industries__grid img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover
}

.detail-industries__grid article > div {
    padding: 14px 16px 16px
}

.detail-industries__grid h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800
}

.detail-industries__grid p {
    margin: 0;
    color: #66788b;
    font-size: 14px;
    line-height: 1.45
}

.detail-card-link {
    position: absolute;
    inset: 0
}

/* Thiet bi cho giai phap (slider) */
.detail-equipment {
    padding: 44px 0 40px
}

.detail-equipment__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px
}

.detail-equipment__head .detail-title {
    margin-bottom: 6px
}

.detail-equipment__head p {
    margin: 0;
    color: #5d7083;
    font-size: 16px
}

.detail-slider-nav {
    display: flex;
    gap: 10px
}

.detail-slider-nav button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    border: 1px solid #c6d6e2;
    border-radius: 50%;
    color: var(--navy);
    cursor: pointer;
    transition: border-color .2s, color .2s
}

.detail-slider-nav button:hover:not(:disabled) {
    border-color: var(--brand);
    color: var(--brand)
}

.detail-slider-nav button:disabled {
    opacity: .4;
    cursor: default
}

.detail-equipment__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 6px
}

.detail-equipment__track::-webkit-scrollbar {
    display: none
}

.detail-equipment__track article {
    display: flex;
    flex: 0 0 calc((100% - 60px) / 4);
    flex-direction: column;
    padding: 16px 18px 18px;
    background: #fff;
    border: 1px solid #dce7ed;
    border-radius: 6px;
    scroll-snap-align: start;
    transition: box-shadow .2s
}

.detail-equipment__track article:hover {
    box-shadow: 0 10px 24px rgba(8, 45, 81, .1)
}

/* Khung anh co dinh, anh san pham nam gon ben trong (khong tran de len chu) - nhu mau */
.detail-equipment__img {
    position: relative;
    flex: 0 0 auto;
    height: 180px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff
}

.page-solution-detail .detail-equipment__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain
}

.detail-equipment__track h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}

.detail-equipment__track p {
    flex: 1;
    margin: 0;
    color: #66788b;
    font-size: 14px;
    line-height: 1.45
}

.page-solution-detail .detail-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none
}

.page-solution-detail .detail-more:hover span {
    transform: translateX(3px)
}

.page-solution-detail .detail-more span {
    transition: transform .2s
}

.detail-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px
}

.detail-slider-dots span {
    width: 9px;
    height: 9px;
    background: #d3dee7;
    border-radius: 50%
}

.detail-slider-dots span.is-active {
    background: var(--brand)
}

.detail-equipment.is-static .detail-slider-nav,
.detail-equipment.is-static .detail-slider-dots {
    display: none
}

/* Tu van + noi dung chi tiet */
.detail-information {
    padding: 44px 0;
    background: #eef7fd
}

.detail-information > .detail-wrap {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
    align-items: start
}

.detail-form {
    padding: 20px 18px;
    background: #0a2f57;
    border-radius: 6px;
    color: #fff
}

.detail-form__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px
}

.detail-form__head i {
    flex: 0 0 auto;
    color: #fff
}

.detail-form__head h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 18px
}

.detail-form__head p {
    margin: 0;
    color: #c9dbea;
    font-size: 13px;
    line-height: 1.4
}

.detail-form input,
.detail-form textarea {
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 4px;
    color: var(--navy);
    font: inherit;
    font-size: 14px
}

.detail-form textarea {
    height: 80px;
    resize: vertical
}

.detail-form__captcha {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px
}

.detail-form__captcha img {
    flex: 0 0 auto;
    border-radius: 3px
}

.detail-form__captcha input {
    margin: 0
}

.detail-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 4px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer
}

.page-solution-detail .detail-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none
}

.page-solution-detail .detail-zalo:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff
}

.detail-contact {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #dce7ed;
    border-radius: 6px;
    overflow: hidden
}

.detail-contact h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    background: #0a2f57;
    color: #fff;
    font-size: 16px
}

.page-solution-detail .detail-contact__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid #e2ebf0;
    color: #587085;
    font-size: 14px;
    text-decoration: none
}

.page-solution-detail .detail-contact__item:last-child {
    border-bottom: 0
}

.detail-contact__item i {
    flex: 0 0 auto;
    color: var(--brand)
}

.detail-contact__item span {
    display: flex;
    flex-direction: column
}

.detail-contact__item b {
    color: var(--navy);
    font-size: 17px
}

.page-solution-detail .detail-contact__item:hover b {
    color: var(--brand)
}

.detail-contact__item--hotline b {
    font-size: 24px
}

.detail-contact__item--hotline span {
    color: #587085;
    font-size: 14px
}

/* Noi dung chi tiet */
.detail-article {
    min-width: 0;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #dce7ed;
    border-radius: 6px
}

.detail-toc {
    margin-bottom: 18px;
    background: #e7f3fc;
    border-radius: 4px
}

.detail-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none
}

.detail-toc summary::-webkit-details-marker {
    display: none
}

.detail-toc summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.detail-toc summary b {
    font-size: 20px;
    line-height: 1
}

.detail-toc ol {
    margin: 0;
    padding: 0 16px 14px 36px
}

.detail-toc li {
    margin: 4px 0;
    font-size: 15px
}

.detail-toc li.is-sub {
    margin-left: 16px;
    list-style: circle
}

.page-solution-detail .detail-toc a {
    color: var(--navy);
    text-decoration: none
}

.page-solution-detail .detail-toc a:hover {
    color: var(--brand)
}

.detail-content {
    position: relative;
    color: #44596d;
    font-size: 16px;
    line-height: 1.6
}

/* Chieu cao khi thu gon - doi o day la doi ca nguong hien nut (JS do bang
   scrollHeight vs clientHeight, khong gan cung so do). */
.detail-content.is-collapsed {
    max-height: 420px;
    overflow: hidden
}

.detail-content.is-collapsed::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff)
}

.detail-content h2,
.detail-content h3 {
    margin: 24px 0 8px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.3;
    scroll-margin-top: 90px
}

.detail-content h3 {
    font-size: 18px
}

.detail-content p {
    margin: 0 0 12px
}

.detail-content ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px
}

.detail-content table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
    font-size: 14px
}

.detail-content th,
.detail-content td {
    padding: 9px 12px;
    border: 1px solid #d5e2ea;
    text-align: left
}

.detail-content th,
.detail-content thead td {
    background: #edf6fc;
    font-weight: 700
}

.detail-expand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px auto 0;
    padding: 10px 26px;
    background: #fff;
    border: 1px solid var(--navy);
    border-radius: 4px;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer
}

.detail-expand:hover {
    border-color: var(--brand);
    color: var(--brand)
}

.detail-expand svg {
    transition: transform .2s
}

/* Dang mo (nhan "Thu gon") -> mui ten quay len. */
.detail-expand.is-open svg {
    transform: rotate(180deg)
}

@media (max-width: 1023px) {
    .detail-benefits .detail-wrap,
    .detail-industries__grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .detail-equipment__track article {
        flex-basis: calc((100% - 20px) / 2)
    }

    .detail-information > .detail-wrap {
        grid-template-columns: 1fr
    }
}

@media (max-width: 767px) {
    .detail-wrap {
        width: min(100% - 30px, 1380px)
    }

    .detail-hero {
        min-height: 0;
        background-position: 68% center
    }

    .detail-hero h1 {
        font-size: 34px
    }

    .page-solution-detail .detail-title {
        font-size: 24px
    }

    .detail-intro .detail-wrap {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .page-solution-detail .detail-intro img {
        height: 240px
    }

    .detail-benefits .detail-wrap,
    .detail-industries__grid {
        grid-template-columns: 1fr
    }

    .detail-equipment__head {
        align-items: flex-start;
        flex-direction: column
    }

    .detail-equipment__track article {
        flex-basis: 82%
    }

    .detail-article {
        padding: 18px 16px
    }
}
