
/* ============================================================
           PTI Knowledge Centre Revamp CSS (scoped to .ptikwc / .kwc*)
           ============================================================ */
/*PTI Knowledge Centre Revamp CSS */
/* ===== SECTION WRAPPER ===== */
.ptikwc {
    background: #f7f9fc;
}

    /* ===== EQUAL HEIGHT FIX ===== */
    .ptikwc .row {
        align-items: stretch;
    }

    .ptikwc .col-md-4,
    .ptikwc .col-md-8 {
        display: flex;
    }

.ptikwc-box.cmplnce {
    height: 530px;
}

/* ===== LEFT TABS ===== */
.ptikwc-tabs {
    width: 100%;
}

    .ptikwc-tabs .nav-link {
        border-radius: 12px;
        margin-bottom: 12px;
        border-radius: 12px !important;
        border: 1px solid #e8f1ff;
        transition: all 0.3s ease;
        padding: 0.8rem !important;
        cursor: pointer;
    }

        .ptikwc-tabs .nav-link.active {
            background: #f6f5fb;
            border-color: #45598b;
        }

            .ptikwc-tabs .nav-link:before,
            .ptikwc-tabs .nav-link.active:before {
                display: none;
                content: none;
            }

/* ===== NUMBER BOX ===== */
.ptikwc-number {
    min-width: 50px;
    height: 50px;
    background: #45598b;
    color: #fff;
    font-weight: bold;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.5rem;
    padding: 1.3rem;
}

/* ===== RIGHT CONTENT ===== */
.ptikwc-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== TAB PANE HEIGHT ===== */
.ptikwc .tab-pane {
    flex: 1;
}

/* ===== CONTENT BOX ===== */
.ptikwc-box {
    display: flex;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    /* border: 1px solid #e4ecfb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); */
    background: #fff;
}

/* ===== FILE LIST ===== */
.ptikwc-files {
    width: 60%;
    max-height: 350px;
    overflow-y: auto;
    padding: 20px;
    overflow-x: hidden;
}

    /* SCROLL FIX */
    .ptikwc-files::-webkit-scrollbar {
        width: 6px;
    }

    .ptikwc-files::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

/* FILE ITEM */
.ptikwc-file {
    padding: 10px 0;
    border-bottom: 1px solid #e8f1ff;
    cursor: pointer;
}

    .ptikwc-file em {
        margin-right: 0px;
        color: rgb(47, 75, 124);
    }

/* ===== IMAGE ===== */
.ptikwc-image-wrap {
    width: 50%;
}

.ptikwc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SMOOTH FADE ===== */
.ptikwc .tab-pane.fade {
    transition: opacity 0.4s ease-in-out !important;
}

    .ptikwc .tab-pane.fade:not(.show) {
        opacity: 0 !important
    }

    .ptikwc .tab-pane.fade.show {
        opacity: 1 !important;
    }

.ptikwc-tabs h5 {
    font-size: 1.1rem !important;
    color: #222;
    font-weight: 600;
    font-family: verdana;
    margin-bottom: 0;
}

.secouter {
    background: #fff;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgb(214 211 229);
    border: 1px solid #e4ecfb;
    width: 100%;
}

.ptikwc-tabs .nav-link:last-child {
    margin-bottom: 0;
}

.kwchd p {
    font-size: 12px;
    font-style: italic;
    color: #222;
    line-height: 1.3;
    margin-top: 0.2rem;
    margin-bottom: 0;
}

.ptikwc-files.custom-scroll.cmplnce {
    max-height: 480px;
}

/* scroll */
/* Container (make sure scroll is enabled) */
.custom-scroll {
    max-height: 100%;
    /* or whatever */
    overflow-y: auto;
}

    /* Webkit browsers (Chrome, Edge, Safari) */
    .custom-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .custom-scroll::-webkit-scrollbar-track {
        background: #e6e6e6;
        /* light grey track */
    }

    .custom-scroll::-webkit-scrollbar-thumb {
        background-color: #5c6b8a;
        /* dark bluish thumb */
        border-radius: 50px;
        /* sharp edges like image */
        border: 2px solid #e6e6e6;
        /* creates inner spacing effect */
    }

/* Firefox */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #5c6b8a #f4f6fa;
    margin: 1.5rem;
    padding: 0;
}

    .custom-scroll::-webkit-scrollbar-thumb {
        background-color: #5c6b8a;
        border-radius: 50px;
        border: 3px solid #45598b;
        /* thicker border = slimmer thumb */
    }

.kwccontent-box {
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(214 211 229);
    border-bottom: 5px solid #45598b;
}

h3.section-title {
    margin-bottom: 0px;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: #45598b;
    font-family: Verdana, sans-serif;
    font-weight: 600;
}

    .section-title::after {
        content: "";
        flex: 1;
        height: 0.5px;
        background: #45598b;
        margin-left: 15px;
    }

p.kwctagline {
    font-family: "Segoe UI", sans-serif;
    font-size: 1rem;
    color: #000;
    font-style: italic;
}

/* ============================= */
/* GLOBAL FIXES */
/* ============================= */
/* Prevent horizontal scroll */
.ptikwc {
    overflow-x: hidden;
}

/* Smooth scrolling for mobile */
.ptikwc-files {
    -webkit-overflow-scrolling: touch;
}

/* Fix flex overflow issues */
.ptikwc-content,
.ptikwc-box {
    min-height: 0;
    /*  height: 100%;*/
}

#knowledge .image-background-holder.kwcbg {
    background: url('/Images/kwcbg.png') no-repeat top center;
    background-size: cover;
    display: flex;
    align-items: center;
    height: 70vh;
}

/* ===== FILE LIST ===== */
.kwcdownload-file {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-right: 0.5rem;
}

    .kwcdownload-file input {
        margin-right: 10px;
    }

/* ===== PANEL ===== */
.kwcdownload-panel {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    /* No `right` transition: the ghost animation owns all visible motion
       on desktop. The panel just snaps between hidden (-360px) and
       visible (0) states. Mobile has its own transform-based transition
       inside the @media block below. */
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

    .kwcdownload-panel.active {
        right: 0;
    }

    /* When the JS ghost animation is in flight we don't want ANY transition
       on the panel playing at the same time â€” the ghost owns the visible
       motion. Some global stylesheets (e.g. Bootstrap, site-wide themes)
       may add transitions via `*` or descendant selectors, so we kill them
       defensively on both the panel and its descendants. */
    .kwcdownload-panel.is-flying,
    .kwcdownload-panel.is-flying * {
        transition: none !important;
        animation: none !important;
    }

/* HEADER */
.kwcdownload-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    background: #f8f9fa;
}

/* FILE LIST */
.kwcdownload-files {
    /*flex: 1;*/
    overflow-y: auto;
    padding: 0px;
    height: auto;
}

/* FILE ROW */
.kwcdownload-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* FOOTER */
.kwcdownload-footer {
    padding: 15px 15px 0 15px;
    /*border-top: 1px solid #eee;*/
}

/* CLOSE */
.kwcdownload-close {
    cursor: pointer;
    font-size: 20px;
}

/* BADGE */
.kwcdownload-badge {
    background: #45598b;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* STATUS BANNER (shown after a download is initiated) */
.kwcdownload-status {
    margin: 12px 15px 0 15px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid transparent;
}

    .kwcdownload-status.is-info {
        background: #eaf3fb;
        border-color: #b8d7ee;
        color: #1f4d6e;
    }

    .kwcdownload-status.is-success {
        background: #e6f5ea;
        border-color: #b7e0c4;
        color: #1f6f3a;
    }

    .kwcdownload-status.is-warn {
        background: #fdf3e2;
        border-color: #f1d59a;
        color: #7a4b08;
    }

    .kwcdownload-status .kwcdownload-status-title {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .kwcdownload-status ul {
        margin: 6px 0 0 0;
        padding-left: 18px;
    }

/* Header actions cluster (Clear all + Minimize ×) */
.kwcdownload-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.kwcdownload-clear {
    font-size: 12px;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
}

    .kwcdownload-clear:hover {
        color: #374151;
    }

/* Mobile-only "collapsed bar" — hidden by default; the mobile media
           query reveals it when the panel has .collapsed. Sits at the bottom
           of the panel container, which itself is pinned to the viewport bottom
           on mobile. */
.kwcdownload-bar {
    display: none;
}

/* Floating reopen badge — visible when something's staged but the
           panel is entirely hidden (not active, not collapsed-bar). Tap to
           reopen. Hidden by default; controlled by JS via .style.display.
           Sized and positioned to stack above the existing scrollTopButton. */
.kwcdownload-reopen {
    position: fixed;
    bottom: 590px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #fc8839;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 1040;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: transform 0.15s ease, box-shadow 0.15s ease;*/ 
    /* appearing: wait until panel is mostly off-screen */
    transition: opacity 0.25s ease 0.15s, transform 0.25s ease 0.15s, box-shadow 0.15s ease 0s;
}
    .kwcdownload-reopen.is-visible {
        /* disappearing: fade out immediately, no delay */
        transition: opacity 0.2s ease 0s, transform 0.2s ease 0s;
    }
    .kwcdownload-reopen:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

    .kwcdownload-reopen .kwcdownload-reopen-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #d9534f;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 11px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
    }


.kwcdownload-footer .btn-primary {
    color: #fff;
    background-color: #45598b !important;
    border-color: #45598b !important;
}

/* Language switcher */

.language-switcher a {
    color: #45598b;
    text-decoration: none;
    padding: 0 4px;
    transition: color 0.2s ease;
}

    .language-switcher a:hover {
        color: #222;
        text-decoration: underline;
        text-decoration: none;
    }

.language-switcher span {
    color: #222;
}

.language-switcher a:first-child {
    padding-left: 0;
}

/* Bigger checkbox */
.kwcdownload-file input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* HIDE DEFAULT */
.kwcdownload-checkbox input {
    display: none;
}

.catgryouter {
    max-height: 365px;
    overflow-y: auto;
    overflow-x: hidden;
}

.catgryouter_2 {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* WRAPPER */
.kwcdownload-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    cursor: pointer;
}

/* BOX */
.kwcdownload-checkmark {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #45598b;
    border-radius: 6px;
    background: #fff;
    transition: all 0.25s ease;
}

    /* CHECK ICON */
    .kwcdownload-checkmark::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 2px;
        width: 6px;
        height: 12px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg) scale(0);
        transition: transform 0.2s ease;
    }

/* CHECKED */
.kwcdownload-checkbox input:checked + .kwcdownload-checkmark {
    background: #45598b;
    border-color: #45598b;
}

    .kwcdownload-checkbox input:checked + .kwcdownload-checkmark::after {
        transform: rotate(45deg) scale(1);
    }

/* HOVER EFFECT */
.kwcdownload-checkbox:hover .kwcdownload-checkmark {
    border-color: #2f3e66;
}

.kwcdownload-file {
    cursor: pointer;
}

    /* Modern browsers */
    .kwcdownload-file input[type="checkbox"] {
        accent-color: #45598b;
        /* your theme color */
    }

/* MOBILE — three states: hidden, collapsed-bar, expanded */
@media (max-width: 767.98px) {
    /* Panel becomes a bottom-anchored sheet on mobile.
               Override desktop's right-anchored geometry. */
    .kwcdownload-panel {
        width: 100%;
        right: 0;
        top: auto;
        bottom: 0;
        left: 0;
        height: auto;
        max-height: 60vh;
        /* Hidden state: translated fully off-screen at the bottom. */
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    }

        /* Collapsed bar: only the slim handle row is visible. The panel
                   slides up just enough to show the 56px bar. */
        .kwcdownload-panel.collapsed {
            transform: translateY(0);
            max-height: 56px;
            overflow: hidden;
        }

            .kwcdownload-panel.collapsed .kwcdownload-bar {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 12px;
                height: 56px;
                background: #45598b;
                color: #fff;
                cursor: pointer;
                user-select: none;
            }

            .kwcdownload-panel.collapsed .kwcdownload-header,
            .kwcdownload-panel.collapsed .kwcdownload-footer,
            .kwcdownload-panel.collapsed .kwcdownload-status,
            .kwcdownload-panel.collapsed .kwcdownload-files {
                display: none;
            }

        /* Expanded: full panel slides up, sized to content up to 60vh. */
        .kwcdownload-panel.active {
            transform: translateY(0);
            overflow-y: auto;
        }

            /* When expanded, hide the bar (the header serves as the
                       top of the sheet). */
            .kwcdownload-panel.active .kwcdownload-bar {
                display: none;
            }

    /* Bar internals (only relevant inside .collapsed via the rule above) */
    .kwcdownload-bar-label {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        font-weight: 600;
    }

    .kwcdownload-bar-count {
        font-size: 18px;
    }

    .kwcdownload-bar-text {
        font-size: 14px;
        opacity: 0.9;
    }

    .kwcdownload-bar-btn {
        background: #fff;
        color: #45598b;
        border: none;
        padding: 6px 14px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .kwcdownload-bar-chevron {
        font-size: 10px;
        opacity: 0.85;
        margin-left: 4px;
    }

    #knowledge h1 {
        margin-left: 0;
    }
}

/* ============================= */
/* EXTRA SMALL DEVICES (&le;575px) */
/* ============================= */
@media (max-width: 575.98px) {
    section.ptikwc h3.section-title {
        font-size: 1.5rem;
    }

    .ptikwc-box {
        flex-direction: column;
        height: auto;
        margin-top: 5px;
    }

    .ptikwc .row {
        flex-direction: column;
    }

    .ptikwc .col-md-4,
    .ptikwc .col-md-8 {
        flex: 100%;
        max-width: 100%;
    }

    .ptikwc-tabs {
        margin-bottom: 20px;
    }

        .ptikwc-tabs .nav-link {
            padding: 10px;
        }

    .ptikwc-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .ptikwc-box {
        flex-direction: column;
        height: auto;
    }

    .ptikwc-files {
        width: 100%;
        /* max-height: 180px; */
        padding: 10px;
    }

    .ptikwc-image-wrap {
        width: 100%;
        height: 180px;
    }

    .ptikwc-image {
        height: 100%;
        object-fit: cover;
    }
}

/* ============================= */
/* SMALL DEVICES (576px&ndash;767px) */
/* ============================= */
@media (min-width: 576px) and (max-width: 767.98px) {
    .ptikwc-box {
        flex-direction: column;
        height: auto;
        margin-top: 5px;
    }

    .ptikwc .row {
        flex-direction: column;
    }

    .ptikwc-box {
        flex-direction: column;
        height: auto;
    }

    .ptikwc-files {
        width: 100%;
        max-height: 220px;
    }

    .ptikwc-image-wrap {
        width: 100%;
        height: 220px;
    }
}

/* ============================= */
/* TABLETS (768px&ndash;991px) */
/* ============================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    .ptikwc-box {
        flex-direction: column;
        height: auto;
        margin-top: 5px;
    }

    .ptikwc .col-md-4 {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .ptikwc .col-md-8 {
        flex: 0 0 60%;
        max-width: 60%;
    }

    .ptikwc-box {
        height: 100%;
    }

    .ptikwc-files {
        width: 55%;
        max-height: 100%;
    }

    .ptikwc-image-wrap {
        width: 45%;
    }
}

/* ============================= */
/* LARGE DEVICES (992px&ndash;1199px) */
/* ============================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ptikwc-box {
        height: 100%;
    }

        .ptikwc-box.cmplnce {
            height: 590px;
        }

    .ptikwc-files {
        max-height: 387px;
    }

        .ptikwc-files.custom-scroll.cmplnce {
            min-height: 100%;
        }

    .catgryouter {
        max-height: 407px;
    }

    .catgryouter_2 {
        height: 561px;
    }
}

/* ============================= */
/* EXTRA LARGE (&ge;1200px) */
/* ============================= */
@media (min-width: 1200px) {
    .ptikwc-box {
        height: 390px;
    }

    .ptikwc-files {
        max-height: 345px;
    }

    .ptikwc-tabs h5 {
        font-size: 18px;
    }

    .ptikwc-tabs small {
        font-size: 13px;
        color: #222;
        font-style: italic;
    }
}

/* ============================= */
/* TABLET + MOBILE (&le; 991px) */
/* ============================= */
@media (max-width: 991.98px) {

    /* STACK LEFT + RIGHT */
    .ptikwc .row {
        flex-direction: column;
    }

    .ptikwc .col-md-4,
    .ptikwc .col-md-8 {
        max-width: 100%;
        flex: 100%;
    }

    /* REMOVE FORCED FLEX HEIGHT */
    .ptikwc-content {
        display: block;
    }

    .ptikwc .tab-pane {
        /* display: block;   ? remove flex forcing */
    }

    /* STACK CONTENT INSIDE BOX */
    .ptikwc-box {
        flex-direction: column;
        height: 320px;
        min-height: unset;
    }

        .ptikwc-box.cmplnce {
            height: 320px;
        }

    /* FILE LIST FULL WIDTH */
    .ptikwc-files {
        width: 90%;
        height: 320px;
    }

    /* IMAGE BELOW FILE LIST */
    .ptikwc-image-wrap {
        width: 100%;
        height: 200px;
        display: none;
    }

    .ptikwc-image {
        height: 100%;
        object-fit: cover;
    }

    /* SPACING FIX */
    .ptikwc-tabs {
        margin-bottom: 20px;
    }

    .kwccontent-box {
        margin-top: 15px;
        height: 330px;
    }
}

.kwcdownload-file label {
    line-height: 1.5;
}
/* Language Switcher (checkboxes styled as small round pills) */

.language-switcher input[type="checkbox"].lang-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border: 1px solid #45598b;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0px;
    cursor: pointer;
    position: relative;
}

    /* Checked */
    .language-switcher input[type="checkbox"].lang-checkbox:checked {
        background: #45598b;
        box-shadow: inset 0 0 0 3px #fff;
    }

.language-switcher label {
    margin-right: 0;
    line-height: normal;
    cursor: pointer;
}

.language-switcher a {
    color: #22376c;
    font-size: 13px;
    font-weight: 500;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    margin: 0.2rem 0 0;
}

.kwcdownload-file a {
    text-decoration: none;
}

    .kwcdownload-file a:hover {
        color: #45598b;
    }

.kwcdownload-file, .kwcdownload-file a {
    line-height: 0;
}

.kwcdownload-file {
    padding: 0.5rem 0;
}

    .kwcdownload-file:first-child {
        padding-top: 0;
    }

.file-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .file-row .labeltext {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }

    .file-row .fa-file-download {
        flex-shrink: 0;
    }

.filename {
    font-size: 14px;
    color: #000;
}
#kwcdownloadReopen:focus {
outline: none;
 border: none;
}
footer .form-control:focus {
    color: #fff!important;
}