/* FAQ category tabs: equal width with visible gaps (avoid merged blue bar) */
.categories-faq {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}
.faq-item {
    background-color: #003586;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    flex: 1 1 140px;
    min-width: 0;
    max-width: none;
    cursor: pointer;
    color: #fff;
    box-sizing: border-box;
    padding: 8px 10px;
    text-align: center;
}
.tab-choice {
    background-color: #fff;
    color: #003586;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
.faq-item label {
    text-decoration: none;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1.3;
    word-break: break-word;
    hyphens: auto;
}
.input-filter {
    min-width: 800px;
    outline: none;
}
/* GC0950: keyword row + product filters on the right */
.faq-search-row .input-filter {
    min-width: 0;
    width: 100%;
}
.faq-search-row .filter-form {
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
}
.faq-search-label {
    min-width: 180px;
}
.filter-form {
    position: relative;
    display: inline-block;
}
.filter-form label {
    min-width: 200px;
}
.filter-form button {
    position: absolute;
    top: 0;
    right: -10px;
    bottom: 0;
    padding: 5px 8px;
    border: none;
    background-color: transparent;
    margin-right: 12px;
    color: #003586;
}
.filter-form-wrap {
    width: 100%;
    background-color: #E2F0FB;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 22px 40px 17px 25px;
    margin-top: 25px;
}
.categorize-faq {
    margin-top: 20px;
    background-color: var( --ms-info-background-color);
    display: flex;
    padding: 10px 10px;
    border-left: 7px solid #003586;
    width: 100%;
    box-sizing: border-box;
}

.categorize {
    display: flex;
    align-items: center;
    margin-left: 10px;
    font-size: 24px;
}
.categorize h4 {
    font-size: var(--font-size-app);
    font-weight: bold;
}
.accordion-button,
.accordion-body,
.accordion-button i,
.accordion-body i {
    font-size: var(--font-size-app-18) !important;
}

/* Product labels styles - Scoped to FAQ accordion only, no impact on other elements */
/* Labels are positioned at the end of accordion-button, near arrow icon */
.accordion-item .accordion-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-item .accordion-button .text-collapsed {
    flex: 1;
    min-width: 0;
}

.accordion-item .accordion-button .faq-attachment-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.95em;
    line-height: 1;
    vertical-align: middle;
    color: #555;
}

.accordion-item .accordion-button .faq-product-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: 20px;
}

.accordion-item .accordion-button .faq-product-label {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    line-height: normal;
    text-decoration: none;
    background-color: white;
    cursor: default;
    text-align: center;
    vertical-align: middle;
}

.accordion-item .accordion-button .faq-product-label-cpat {
    color: #198754;
    border: 1px solid #198754;
}

.accordion-item .accordion-button .faq-product-label-cpatr {
    color: #0d6efd;
    border: 1px solid #0d6efd;
}

.accordion-item .accordion-button::after {
    flex-shrink: 0;
}
/* Tab sizing comes from .faq-item inside .categories-faq; keep transitions only */
.categories-faq .tab {
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-anwser-info {
     margin-left: 77.5px;
 }

 .tab-anwser-info .btn-pdf {
     margin-bottom: 10px;
 }

 .tab-anwser-info .btn-pdf a {
     margin-left: 0px;
     margin-right: 10px;
 }

 .tab-anwser-info .refer {
     margin: 15px 0px;
}

.tab-anwser-info .refer .refer-link {
    color: #0D6EFD;
    text-decoration: underline;
    cursor: pointer;
}

/* Product filter buttons styles */
.product-filter-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-filter-btn {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
    background: white;
    transition: all 0.2s ease;
}

.product-filter-btn[data-product="1"] {
    color: #198754;
    border-color: #198754;
}

.product-filter-btn[data-product="1"]:hover {
    background-color: #f0f9f5;
}

.product-filter-btn[data-product="1"].active {
    background-color: #198754;
    color: white;
}

.product-filter-btn[data-product="2"] {
    color: #0d6efd;
    border-color: #0d6efd;
}

.product-filter-btn[data-product="2"]:hover {
    background-color: #f0f4ff;
}

.product-filter-btn[data-product="2"].active {
    background-color: #0d6efd;
    color: white;
}

/* CPAT-R description section at the bottom of FAQ page (design v1.3) */
.cpat-r-info-section {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}
