/* ==========================================================================
   CWILL Help Center Style Refresh (Scheme B: Override Layer)
   Figma Node: 10429:4242
   ========================================================================== */

:root {
    --cwill-ink: #0b0d16;
    --cwill-text-primary: #23252d;
    --cwill-text-heading: #121127;
    --cwill-text-secondary: #6d6e73;
    --cwill-text-muted: #85868b;
    --cwill-border-light: #e7e7e8;
    --cwill-border-default: #cecfd0;
    --cwill-surface-hover: #f7f7f8;
    --cwill-surface-active-hover: #e7e7e8;
}

body {
    background: #ffffff !important;
    color: var(--cwill-text-primary);
}

/* Global link, active-nav and focus states (replace legacy #4381b5 blue) */
a,
a:hover,
a:focus,
a:active {
    color: var(--cwill-ink);
    text-decoration: none;
}

.nav-list > .active > a,
.nav-list > .active > a:hover,
.nav-list > .active > a:focus,
.nav-pills > .active > a,
.nav-pills > .active > a:hover,
.nav-pills > .active > a:focus {
    background-color: var(--cwill-ink);
    color: #ffffff;
    text-shadow: none;
}

a:focus,
button:focus,
[tabindex]:focus {
    outline: none;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--cwill-text-muted);
    outline-offset: 2px;
}

#contentArea.container-fluid {
    max-width: 1200px !important;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media screen and (min-width: 1240px) {
    #contentArea.container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==========================================================================
   1. Global Header & Navbar
   ========================================================================== */

#mainNav.navbar {
    background-color: #ffffff;
    width: 100%;
}

.header_input {
    width: 100%;
}

.headerFlex {
    width: 100%;
    max-width: 100%;
    height: 74px;
    padding: 0 max(20px, calc((100% - 1200px) / 2));
    border-bottom: 1px solid var(--cwill-border-light);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.headerFlex .headerDiv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    padding: 0;
}

.headerFlex .headerDiv img {
    width: 115.41px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

.headerFlex .homeTitle {
    font-family:
        "Geist",
        "Geist Fallback",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.28px;
    color: var(--cwill-ink);
    white-space: nowrap;
    margin: 0;
}

.headerFlex .headerTitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 36px;
    padding: 0 16px;
    line-height: 1.4;
    font-size: 16px;
    font-weight: 600;
    color: var(--cwill-ink) !important;
    background: #ffffff !important;
    border: 2px solid var(--cwill-ink);
    border-radius: 999px;
    box-sizing: border-box;
    transition: background-color 150ms ease;
}

.headerFlex .headerTitle:hover {
    background: var(--cwill-surface-hover) !important;
    color: var(--cwill-ink) !important;
}

/* ==========================================================================
   2. Hero Section & Search Bar
   ========================================================================== */

.header_container_box {
    min-height: 355px;
    padding: 120px 16px 100px;
    background:
        url("../images/hero-background-arcs.svg") no-repeat center 38px / 1176px
            auto,
        linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
}

.header_container_box_else {
    height: 220px;
    padding: 96px 16px 0;
    box-sizing: border-box;
    justify-content: flex-start;
    background:
        url("../images/hero-background-arcs.svg") no-repeat center 31px / 1176px
            auto,
        linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
}

.search_input {
    font-size: clamp(28px, 3.4vw, 48px);
    font-weight: 400;
    line-height: 55px;
    letter-spacing: -0.96px;
    color: var(--cwill-text-primary);
    margin: 0 0 32px 0;
}

.search_container {
    width: 792px;
    max-width: 100%;
    height: 48px;
    background-color: #ffffff;
    border: 1px solid var(--cwill-border-default);
    border-radius: 8px;
    box-shadow: none !important;
    box-sizing: border-box;
}

.select_box {
    background-color: var(--cwill-ink) !important;
    width: max-content;
    min-width: 155px;
    height: 48px;
    margin: -1px 0 -1px -1px;
    padding: 0 24px;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

#select_box_title {
    white-space: nowrap;
}

.select-arrow {
    margin-left: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.select-arrow img,
.cate_select_arrow img,
.sidebar-mobile-toggle-arrow {
    transform: rotate(90deg);
}

.select_box_spinner {
    top: calc(100% + 4px) !important;
    left: -1px;
    width: max-content;
    min-width: 160px;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0px 8px 20px rgba(18, 17, 39, 0.1);
    border-radius: 8px;
    color: var(--cwill-ink);
    padding: 12px 0;
}

.select_option {
    padding: 4px 12px !important;
    height: 29px;
    box-sizing: border-box;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cwill-ink);
    white-space: nowrap;
}

.select_option_show {
    width: 20px !important;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.select_box_spinner .selected {
    background: #ffffff !important;
}

.select_option:hover {
    background: var(--cwill-surface-active-hover) !important;
}

.header_from_search_from {
    height: 46px;
    background-color: #ffffff;
    border-radius: 0 8px 8px 0;
}

.header_input_search {
    font-size: 16px !important;
    line-height: 1.6;
    color: var(--cwill-text-primary);
}

.header_input_search::placeholder {
    color: rgba(18, 17, 39, 0.48) !important;
}

.result-aa {
    top: calc(100% + 5px);
    border-radius: 8px;
    box-shadow: 0px 8px 20px rgba(18, 17, 39, 0.1);
    padding: 12px 0;
    max-height: 304px;
}

.result-aa > :first-child {
    margin-top: 0 !important;
}

.result-aa > :last-child {
    margin-bottom: 0 !important;
}

.result-aa-list {
    padding: 4px 12px !important;
    min-height: 29px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cwill-ink);
    gap: 8px;
}

.result-aa-list span {
    margin-left: 0 !important;
    line-height: 1.5;
}

.result-aa-list:hover {
    background: var(--cwill-surface-active-hover) !important;
    color: var(--cwill-ink);
}

.result-aa.is-empty {
    height: 53px;
    padding: 12px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.result-aa-empty {
    display: flex;
    align-items: center;
    height: 29px;
    margin: 0;
    padding: 4px 12px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cwill-text-secondary);
    background: transparent;
    cursor: default;
    pointer-events: none;
}

/* ==========================================================================
   3. Home Page (Platform Switcher, Popular Articles, Categories Grid)
   ========================================================================== */

.container_tab {
    height: auto !important;
    margin: 48px auto 80px auto !important;
}

.container_tab .title,
.container_title .title,
.knowledge_base .title {
    font-size: 34px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.34px;
    color: var(--cwill-text-heading);
    margin: 0 auto 24px auto;
}

.platform_list {
    width: 588px;
    max-width: 100%;
    height: 64px !important;
    padding: 8px !important;
    margin: 0 auto !important;
    background: #ffffff;
    border: 1px solid var(--cwill-text-muted);
    border-radius: 8px !important;
    box-shadow: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.platform_list li {
    width: 282px;
    flex: 1;
    height: 48px !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px;
    color: var(--cwill-text-primary) !important;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background-color 150ms ease;
}

.platform_list .pricing-icon-circle {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin-right: 0 !important;
    border-radius: 88px;
    background-color: #ffffff;
    border: 0.8px solid var(--cwill-text-muted);
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.platform_list .pricing-icon-circle img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.platform_list li.checked,
.checked {
    background: var(--cwill-ink) !important;
    color: #ffffff !important;
}

.platform_list li.checked .pricing-icon-circle {
    border: none;
    box-shadow: 0px 8px 20px rgba(18, 17, 39, 0.1) !important;
}

.platform_list li:not(.checked):hover {
    background: var(--cwill-surface-hover) !important;
    color: var(--cwill-text-primary) !important;
}

.container_title {
    margin: 0 auto 80px auto !important;
}

.container_content {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.container_content > .spinner,
.container_title_page > .spinner {
    grid-column: 1 / -1;
    justify-self: center;
}

.container_content li {
    width: 100% !important;
    height: 66px !important;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid var(--cwill-border-light);
    border-radius: 8px;
    box-shadow: none !important;
    transition: border-color 150ms ease;
}

.container_content :last-child:nth-child(3n - 1) {
    margin-right: 0 !important;
}

.container_content li:hover {
    border-color: var(--cwill-ink);
    box-shadow: none !important;
}

.container_content li a {
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.article-content-text {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--cwill-text-heading);
    flex: 1;
}

.article-content-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knowledge_base {
    margin: 0 auto 96px auto !important;
}

.container_title_page {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.catagories {
    width: 100% !important;
    height: auto !important;
    min-height: 154px;
    margin: 0 !important;
    background: #ffffff;
    border: 1px solid var(--cwill-border-light) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    box-sizing: border-box;
    transition: border-color 150ms ease;
}

.catagories:hover {
    border-color: var(--cwill-ink) !important;
    box-shadow: none !important;
}

.catagories a {
    padding: 16px 32px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.category_icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knowledge_base .category_icon img {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    object-fit: contain;
}

.category_text_box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.category_name {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.2px;
    color: var(--cwill-text-heading) !important;
    margin: 0 !important;
}

.category_descrip {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--cwill-text-heading) !important;
    margin: 0 !important;
}

/* ==========================================================================
   4. Breadcrumbs & Two-Column Layout (Category & Article Pages)
   ========================================================================== */

.breadcrumb {
    height: 90px !important;
    min-height: 90px;
    padding: 24px 0 0 !important;
    margin-bottom: 24px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
    position: relative;
}

.breadcrumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    border-bottom: 1px solid var(--cwill-border-light);
}

.breadcrumb-text-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb_item {
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.36 !important;
    color: var(--cwill-text-secondary) !important;
    text-decoration: none;
}

.breadcrumb_item:hover {
    color: var(--cwill-text-primary) !important;
}

.breadcrumb-sep {
    font-size: 12px;
    line-height: 1.36;
    color: var(--cwill-text-secondary);
}

.breadcrumb-last-text-container {
    min-width: 0;
}

.breadcrumb-last-text-container .breadcrumb_item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-two-col-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding-bottom: 40px;
}

.page-two-col-body > #sidebar {
    width: 282px !important;
    flex: 0 0 282px;
    float: none !important;
    margin: 0 !important;
}

.page-two-col-body > #main-content {
    flex: 1 1 0%;
    min-width: 0;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

/* ==========================================================================
   5. Left Sidebar (Category List & Sticky Related Articles)
   ========================================================================== */

.sidebar-back-wrap {
    display: flex;
    margin-bottom: 16px;
}

.bread_bar_button {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    color: var(--cwill-text-primary) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        color 150ms ease,
        opacity 150ms ease;
}

.bread_bar_back {
    color: inherit !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.bread_bar_back img {
    display: block;
    width: 24px;
    height: 24px;
}

.bread_bar_back_fan {
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0;
    margin-left: 0 !important;
}

.bread_bar_button:hover {
    color: var(--cwill-ink) !important;
    opacity: 0.72;
}

.aside_title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.16px;
    color: var(--cwill-text-primary);
    padding-left: 0;
    margin-bottom: 16px !important;
}

.sidebar-mobile-toggle {
    display: none;
}

#sidebar .nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
}

#sidebar .nav-list a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px !important;
    border-radius: 8px;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--cwill-text-secondary) !important;
    margin-bottom: 0 !important;
    text-shadow: none !important;
    transition:
        background-color 150ms ease,
        color 150ms ease;
}

#sidebar .nav-list a:hover {
    background: var(--cwill-surface-hover) !important;
    color: var(--cwill-text-primary) !important;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
    background: var(--cwill-ink) !important;
    border: 1px solid #000000;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    border-radius: 8px;
}

/* Sticky Related Articles */
#sidebar.sidebar-sticky {
    position: sticky;
    top: 40px;
    align-self: flex-start;
}

.toc-content {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.toc-divider {
    width: 1px;
    flex-shrink: 0;
    background: rgba(133, 134, 139, 0.24);
    border-radius: 1px;
}

#sidebar .toc-content .art-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}

#sidebar .toc-content .art-list li {
    margin: 0;
    padding: 0;
}

#sidebar .toc-content .current-article-link {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.16px;
    color: var(--cwill-text-primary);
    padding: 0;
    cursor: default;
}

#sidebar .toc-content .art-list a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--cwill-text-muted) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-shadow: none !important;
    background: transparent !important;
    transition: color 150ms ease;
}

#sidebar .toc-content .art-list a:hover {
    color: var(--cwill-text-primary) !important;
    background: transparent !important;
}

/* ==========================================================================
   6. Category Article Cards & Sort Dropdown
   ========================================================================== */

.cate_select_container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.cate_select_box {
    width: auto !important;
    min-width: 180px;
    height: 32px;
    padding: 0 12px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid var(--cwill-border-default) !important;
    border-radius: 8px;
    color: var(--cwill-text-primary) !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    display: inline-flex;
    justify-content: space-between !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#cate_select_option_title {
    white-space: nowrap;
    line-height: 1.5;
}

.cate_select_container .active {
    border: 1px solid var(--cwill-ink) !important;
    color: var(--cwill-text-primary) !important;
}

.cate_select_arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cate_select_box_spinner {
    top: 36px !important;
    right: 0;
    width: auto !important;
    min-width: 180px !important;
    background: #ffffff;
    border-radius: 8px;
    box-shadow:
        0px 3px 6px -4px rgba(0, 0, 0, 0.12),
        0px 6px 16px 0px rgba(0, 0, 0, 0.08),
        0px 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
    padding: 8px 0 4px;
    overflow: hidden;
}

.cate_select_option {
    padding: 5px 12px !important;
    height: 32px;
    box-sizing: border-box;
    border-radius: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cwill-text-primary);
    white-space: nowrap;
    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.cate_select_option:hover {
    background: var(--cwill-surface-hover) !important;
    color: var(--cwill-text-primary) !important;
    border-radius: 0;
}

.cate_select_box_spinner .selected,
.cate_select_box_spinner .selected:hover {
    background: var(--cwill-ink) !important;
    color: #ffffff !important;
    border-radius: 0;
}

.newCategory_list {
    background: transparent !important;
}

.newCategory_list > li {
    padding: 20px 32px !important;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid var(--cwill-border-default);
    border-radius: 8px;
    box-shadow: none !important;
    min-height: 124px;
    box-sizing: border-box;
    transition: border-color 150ms ease;
}

.newCategory_list > li:hover {
    border-color: var(--cwill-ink);
    box-shadow: none !important;
}

.newCategory_list_content {
    margin-top: 0 !important;
    gap: 32px;
}

.newCategory_list_left_content {
    width: auto !important;
    flex: 1;
    min-width: 0;
    padding-right: 32px;
    border-right: 1px solid var(--cwill-border-light) !important;
}

.newCategory_list li h3 {
    color: var(--cwill-text-primary) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.2px;
    margin: 0 0 12px 0 !important;
}

.contentWrapper .newCategory_list_left_content p {
    color: var(--cwill-text-secondary) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    width: 100% !important;
}

.newCategory_list_content_evaluate {
    width: 110px;
    flex-shrink: 0;
}

.newCategory_list_content_evaluate > p {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    color: var(--cwill-text-primary) !important;
    margin-bottom: 8px !important;
}

.pop-bars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pop-bar {
    width: 4px;
    height: 14px;
    border-radius: 4px;
    background-color: var(--cwill-border-light);
}

.pop-bar.is-active {
    background-color: var(--cwill-ink);
}

/* ==========================================================================
   7. Website Pagination
   ========================================================================== */

.cwill-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid var(--cwill-border-default);
    padding-top: 32px;
    margin-top: 24px;
    box-sizing: border-box;
}

.cwill-pagination-prev,
.cwill-pagination-next {
    flex: 1;
    display: flex;
    align-items: center;
}

.cwill-pagination-next {
    justify-content: flex-end;
}

.cwill-page-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.16px;
    color: #61646c !important;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        opacity 150ms ease,
        color 150ms ease;
}

.cwill-page-nav:hover:not(.disabled) {
    color: var(--cwill-ink) !important;
}

.cwill-page-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination.cwill-page-list {
    margin: 0 !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent !important;
}

.pagination.cwill-page-list .page-item {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--cwill-text-primary) !important;
    font-size: 14px;
    font-weight: 500;
}

.pagination.cwill-page-list .page-item a,
.pagination.cwill-page-list .page-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 20px !important;
    color: inherit !important;
    text-decoration: none !important;
    border-radius: 8px;
}

.pagination.cwill-page-list .page-item:not(.active):not(.disabled):hover {
    background: var(--cwill-surface-hover) !important;
}

.pagination.cwill-page-list .page-item.active {
    background: var(--cwill-ink) !important;
    color: #ffffff !important;
}

.pagination.cwill-page-list .page-item.active .page-link {
    color: #ffffff !important;
}

/* ==========================================================================
   8. Article Detail Page & Feedback Section
   ========================================================================== */

.artContentWrapper {
    padding: 24px !important;
    box-shadow: none !important;
    border-radius: 8px;
    background: #ffffff;
}

.articleTitle {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.34px;
    color: var(--cwill-text-primary) !important;
    margin-bottom: 8px !important;
}

.articleTime {
    margin-bottom: 24px;
}

.articleTime time {
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.5 !important;
    color: var(--cwill-text-secondary) !important;
}

/* Article body is rich-text content with inline styles; keep legacy link colors */
#fullArticle a {
    color: #4381b5;
}

#fullArticle a:hover,
#fullArticle a:focus {
    color: #2e597d;
}

.contentFooter {
    margin: 24px 0 8px 0;
    font-size: 14px;
    font-weight: 600 !important;
    line-height: 20px;
    color: var(--cwill-text-primary) !important;
}

.contentFooter_btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.contentFooter_bt {
    width: 67px !important;
    height: 34px;
    line-height: 34px !important;
    background-color: var(--cwill-ink) !important;
    color: #ffffff !important;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    margin: 0 !important;
    box-sizing: border-box;
}

.contentFooter_bt_no {
    width: 68px !important;
    height: 34px;
    line-height: 32px !important;
    background: #ffffff !important;
    border: 1px solid #000000;
    color: var(--cwill-ink) !important;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    box-sizing: border-box;
}

.contentFooter_bt,
.contentFooter_bt_no {
    transition:
        background-color 150ms ease,
        opacity 150ms ease !important;
}

.contentFooter_bt:hover,
.contentFooter_bt_no:hover {
    transform: none !important;
}

.contentFooter_bt:hover {
    opacity: 0.92;
}

.contentFooter_bt_no:hover {
    background: var(--cwill-surface-hover) !important;
}

.contentFooter_bt:active {
    opacity: 0.82;
}

/* ==========================================================================
   9. Footer & Feedback Modal
   ========================================================================== */

.footer-container {
    height: 66px !important;
    line-height: 34px !important;
    padding: 16px 0;
    box-sizing: border-box;
    border-top: 1px solid var(--cwill-border-light) !important;
    background: #ffffff !important;
    color: rgba(18, 17, 39, 0.36) !important;
    font-size: 12px;
    font-weight: 600;
}

.pp-btn-primary {
    background: var(--cwill-ink) !important;
    color: #ffffff !important;
}

.pp-help-alert-background {
    z-index: 1100;
    background: rgba(11, 13, 22, 0.45);
    opacity: 1;
}

#pp-alert-box:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    z-index: 1101;
}

.pp-alert-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 520px;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 24px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(18, 17, 39, 0.1);
}

.pp-alert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

#pp-alert-box .pp-alert-header h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.2px;
    color: var(--cwill-text-primary);
}

#pp-alert-header-right {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
}

#pp-alert-header-right img {
    display: block;
    width: 24px;
    height: 24px;
    max-width: none;
}

.pp-alert-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.pp-alert-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.pp-alert-label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cwill-text-primary);
}

#pp-alert-box .pp-alert-content p {
    margin: 0;
}

#pp-alert-box .pp-alert-content textarea,
#pp-alert-box .pp-alert-content input {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--cwill-border-default);
    border-radius: 8px;
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--cwill-text-primary);
    outline: none;
}

#pp-alert-box .pp-alert-content textarea {
    height: 144px;
    min-height: 144px;
    padding: 12px 12px 10px 14px;
    resize: vertical;
}

#pp-alert-box .pp-alert-content input {
    height: 50px;
    padding: 12px 14px;
}

#pp-alert-box .pp-alert-content textarea::placeholder,
#pp-alert-box .pp-alert-content input::placeholder {
    color: var(--cwill-text-secondary);
    font-weight: 500;
    opacity: 1;
}

#pp-alert-box .pp-alert-content textarea:focus,
#pp-alert-box .pp-alert-content input:focus {
    border-color: var(--cwill-ink);
}

#pp-alert-box .pp-alert-content .pp-error-show {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    color: #d72c0d;
    font-size: 12px;
    line-height: 1.4;
}

#pp-alert-box .pp-alert-content .pp-error-show.hidden {
    display: none;
}

.pp-alert-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}

#pp-alert-box .pp-btn-common {
    width: auto;
    height: 36px;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    transform: none;
    transition:
        background-color 150ms ease,
        opacity 150ms ease;
}

#pp-alert-box .pp-btn {
    background: #ffffff;
    border: 2px solid var(--cwill-ink);
    color: var(--cwill-ink);
}

#pp-alert-box .pp-btn-primary {
    background: var(--cwill-ink);
    border: 2px solid var(--cwill-ink);
    color: #ffffff;
}

#pp-alert-box .pp-btn:hover {
    background: var(--cwill-surface-hover);
    transform: none;
}

#pp-alert-box .pp-btn-primary:hover {
    background: var(--cwill-ink) !important;
    border-color: var(--cwill-ink);
    opacity: 0.92;
    transform: none;
}

#pp-alert-box .pp-btn-common:active {
    opacity: 0.82;
}

@media screen and (max-width: 560px) {
    .pp-alert-box {
        width: 100%;
    }

    .pp-alert-actions {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   10. Responsive Adjustments
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .container_title_page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .headerFlex .homeTitle {
        font-size: 20px;
    }

    .breadcrumb {
        width: 100%;
        height: auto !important;
        min-height: 0;
        padding: 24px 0 16px !important;
        flex-wrap: wrap;
        row-gap: 4px;
        border-bottom: 1px solid var(--cwill-border-light) !important;
    }

    .breadcrumb::after {
        display: none;
    }

    .breadcrumb-last-text-container {
        flex: 0 1 auto;
        overflow: visible;
        white-space: normal;
    }

    .breadcrumb-last-text-container .breadcrumb_item {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .container_content {
        grid-template-columns: 1fr;
    }

    .container_title_page {
        grid-template-columns: 1fr;
    }

    .page-two-col-body {
        flex-direction: column;
        align-items: stretch;
    }

    .page-two-col-body > #main-content {
        width: 100% !important;
    }

    .page-two-col-body > #sidebar.sidebar-categories {
        width: 100% !important;
        flex: none;
        padding-bottom: 0;
    }

    #sidebar.sidebar-categories .aside_title {
        margin-bottom: 8px !important;
    }

    #sidebar.sidebar-categories .sidebar-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        height: 40px;
        margin: 0;
        padding: 0 8px 0 12px;
        box-sizing: border-box;
        background: #ffffff;
        border: 1px solid var(--cwill-border-default);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        color: var(--cwill-text-primary);
        text-align: left;
        cursor: pointer;
        transition: border-color 150ms ease;
    }

    #sidebar.sidebar-categories .sidebar-mobile-toggle:hover,
    #sidebar.sidebar-categories.is-open .sidebar-mobile-toggle {
        border-color: var(--cwill-ink);
    }

    .sidebar-mobile-toggle-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sidebar-mobile-toggle-arrow {
        flex-shrink: 0;
        transition: transform 150ms ease;
    }

    #sidebar.sidebar-categories.is-open .sidebar-mobile-toggle-arrow {
        transform: rotate(-90deg);
    }

    #sidebar.sidebar-categories .nav-list {
        display: none;
        margin: 8px 0 0;
    }

    #sidebar.sidebar-categories.is-open .nav-list {
        display: flex;
    }

    .newCategory_list_content {
        gap: 16px;
    }

    .newCategory_list_left_content {
        padding-right: 16px;
    }

    .artContentWrapper {
        padding: 24px 0 !important;
    }
}

@media screen and (max-width: 640px) {
    .headerFlex .homeTitle {
        display: none;
    }

    .select_box {
        width: max-content;
        min-width: 0;
        padding: 0 16px;
    }

    .platform_list {
        width: 100%;
    }

    .platform_list li {
        font-size: 16px !important;
    }

    .newCategory_list > li {
        padding: 20px 16px !important;
    }

    .newCategory_list_content {
        flex-direction: column;
        gap: 16px;
    }

    .newCategory_list_left_content {
        padding: 0 0 16px;
        border-right: none !important;
        border-bottom: 1px solid var(--cwill-border-light);
    }

    .newCategory_list li h3 {
        hyphens: none;
    }

    .newCategory_list_content {
        align-items: stretch !important;
    }

    .newCategory_list_content_evaluate {
        width: auto;
    }

    .cate_select_box {
        margin-right: 0 !important;
    }

    .container_tab .title,
    .container_title .title,
    .knowledge_base .title {
        font-size: 26px !important;
    }
}
