﻿/* ============================================================
   categories.details.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --title-color:   #2c3e50;
    --accent-color:  #3363DD;
    --text-color:    #797979;
    --border-color:  #e8e8e8;
    --active-bg:     #3363DD;
    --active-text:   #fff;
    --dl-bg:         #3363DD;
}

/* ── Section gap ── */
.service_details_area.sec_gap {
    padding: 80px 0;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.service_content h3.title_color,
.service_content .f_size_28 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 15px;
}

.service_content p,
.service_content .benefit_list li,
.service_content .servie_item p,
.faq-accordion .card-body.panel-body {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: var(--text-color);
}

/* ============================================================
   SIDEBAR TRÁI
   ============================================================ */
.service_left_sidebar {
    padding-right: 10px;
}

/* Service menu tab */
.service_menu_tab {
    list-style: none;
    list-style-type: none;
    padding: 0;
    padding-inline-start: 0;
    margin: 0 0 40px 0;
    border: none;
    border-radius: 0;
    /* Override Bootstrap .nav flex */
    display: block !important;
    flex-wrap: unset;
    background: transparent;
}

.service_menu_tab .nav-item {
    margin-bottom: 3px;
    position: relative;
    display: block;
    width: 100%;
}

/* Thanh dọc xám đậm bên trái */
.service_menu_tab .nav-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: #c8c8c8;
    z-index: 2;
}

/* Link: nền #f1f1f1, Noto Sans 500 17px, color #0D1B3E */
.service_menu_tab .nav-item .nav-link {
    display: block;
    width: 100%;
    font: 500 17px / 25px 'Noto Sans', 'Noto Sans SC', sans-serif;
    color: #3363DD;
    border: 0;
    padding: 15px 25px;
    background: #f1f1f1;
    border-radius: 0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s linear;
    box-sizing: border-box;
}

/* Pseudo fill vàng — nằm dưới text */
.service_menu_tab .nav-item .nav-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s linear;
    z-index: -1;
}

/* Hover: fill cobalt trái → phải, chữ trắng */
.service_menu_tab .nav-item .nav-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.service_menu_tab .nav-item .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left center;
}

/* Rời chuột: reverse phải → trái */
.service_menu_tab .nav-item .nav-link:not(:hover)::before {
    transform: scaleX(0);
    transform-origin: right center;
}

/* Active state: nền xanh cobalt, chữ trắng, thanh dọc xanh */
.service_menu_tab .nav-item.active .nav-link,
.service_menu_tab .nav-item .nav-link.active {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.service_menu_tab .nav-item.active .nav-link::before,
.service_menu_tab .nav-item .nav-link.active::before {
    transform: scaleX(1);
}

/* Sidebar contact info */
.sidebar_contact_info {
    border: 1px solid var(--border-color);
    padding: 30px 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    color: #7A7A7A;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.sidebar_contact_info h3.title_color {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    color: #3363DD;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.title_br {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    margin-bottom: 18px;
}

.sidebar_contact_info a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7A7A7A;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.sidebar_contact_info a:hover {
    color: var(--accent-color);
}

.sidebar_contact_info a i {
    color: #888;
    font-size: 16px;
    width: 18px;
    text-align: center;
}

/* Download buttons — nền #0D1B3E, chữ trắng, icon vàng, font Noto Sans 18px */
.download_info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.download-btn2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: var(--dl-bg);
    color: #ffffff;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.25s;
}

.download-btn2:hover {
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

.download-btn2 i,
.download-btn2 svg {
    color: var(--accent-color);
    fill: var(--accent-color);
    font-size: 22px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* ============================================================
   NỘI DUNG CHÍNH PHẢI
   ============================================================ */
.service_right_sidebar {
    padding-left: 10px;
}

/* ── Image Slider — bỏ thumbnail, ảnh full ── */
.service_slider {
    margin-bottom: 30px;
    user-select: none;
}

.slider_main {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #3363DD;
}

.slider_main_img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

.slider_main_img.fading {
    opacity: 0;
}

/* Arrow buttons */
.slider_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.45);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.slider_arrow:hover {
    background: var(--accent-color);
}

.slider_arrow svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.slider_prev { left: 12px; }
.slider_next { right: 12px; }

@media (max-width: 767px) {
    .slider_main_img { height: 240px; }
}

/* ── Service content ── */
.service_content {
    margin-top: 10px;
}

.service_content p {
    margin-bottom: 15px;
}

/* ============================================================
   BENEFIT OF SERVICE — không có nền xám, layout thoáng
   ============================================================ */
.benefit_service.two {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 35px 0;
    padding: 0;
    background: none;
    border-radius: 0;
}

.benefit_service.two > img {
    width: 450px;
    min-width: 450px;
    height: 270px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.benefit_service .media-body {
    flex: 1;
}

.benefit_service .s_title {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 12px;
}

.benefit_service .media-body p {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: var(--text-color);
    margin-bottom: 14px;
}

/* Benefit list */
.benefit_list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.benefit_list li {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit_list li i {
    color: var(--accent-color);
    font-size: 14px;
}

/* ============================================================
   FEATURE / MANUFACTURING UNIT — chữ trái, ảnh phải
   ============================================================ */
.feature_service {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 35px 0;
    padding: 0;
    background: none;
}

/* Ảnh bên phải */
.feature_service > img {
    width: 320px;
    min-width: 320px;
    height: 270px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    order: 2;
}

.feature_service .media-body {
    flex: 1;
    order: 1;
}

/* Service items */
.servie_item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.servie_item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.servie_item .servie_icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon dùng stroke (outline) */
.servie_item .servie_icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1.5;
}

.servie_item .servie_text h4 {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 6px;
}

.servie_item .servie_text p {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 15px;
    line-height: 24px;
    color: var(--text-color);
    margin: 0;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-accordion.service_accordion {
    margin-top: 35px;
}

/* Tiêu đề More information */
.faq-accordion .s_title {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #3363DD;
    margin-bottom: 20px;
}

/* Card mặc định: chỉ border, không nền xám */
.faq-accordion .card {
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.faq-accordion .card-header {
    background: #fff;
    padding: 0;
    border-bottom: none;
}

.faq-accordion .panel-title {
    margin: 0;
}

/* Button mặc định: nền trắng, chữ #000, 17px, không vàng */
.btn-accordion {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #000000;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    white-space: normal;
    line-height: 1.5;
    text-decoration: none;
}

.btn-accordion:hover {
    background: #fff;
    color: #000000;
    text-decoration: none;
}

/* Khi đang mở: nền xám nhạt, KHÔNG vàng */
.btn-accordion:not(.collapsed) {
    background: #F5F5F5;
    color: #000000;
}

.btn-accordion,
.btn-accordion:hover,
.btn-accordion:focus,
.btn-accordion:active {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

.btn-accordion .pluse,
.btn-accordion .minus {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    color: #000000;
}

.btn-accordion.collapsed .minus  { display: none; }
.btn-accordion.collapsed .pluse  { display: inline; }
.btn-accordion:not(.collapsed) .pluse { display: none; }
.btn-accordion:not(.collapsed) .minus { display: inline; }

/* Card khi mở: nền xám nhạt toàn bộ */
.faq-accordion .card.open {
    background: #F5F5F5;
}

.faq-accordion .card.open .card-header {
    background: #F5F5F5;
}

/* Panel body — trượt xuống mượt 0.3s, max-height set bằng JS */
.faq-accordion .panel-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-accordion .card-body.panel-body {
    padding: 0 22px 20px 56px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    line-height: 26px;
    background: #F5F5F5;
    border-top: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .benefit_service.two > img,
    .feature_service > img {
        width: 320px;
        min-width: 320px;
        height: 240px;
    }
}

@media (max-width: 991px) {
    .service_left_sidebar {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .service_right_sidebar {
        padding-left: 0;
    }

    .benefit_service.two,
    .feature_service {
        flex-direction: column;
    }

    .benefit_service.two > img,
    .feature_service > img {
        width: 100%;
        min-width: unset;
        height: 240px;
        order: 0;
    }
}

@media (max-width: 767px) {
    .service_details_area.sec_gap {
        padding: 50px 0;
    }

    .service_img.mr {
        flex-direction: column;
    }

    .service_img .w_55,
    .service_img .w_45 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service_img .image img {
        width: 100%;
        height: 220px;
    }
}


