/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
 Text Domain:  GeneratePress Child
*/

:root {
    --p-16px: clamp(12px, calc(0px + 0.8333vw), 16px);

    /* --p-21px: clamp(12px, calc(10.59px + 0.542vw), 21px);
    --p-24px: clamp(16px, calc(14.06px + 0.52vw), 24px); */
    --p-14-to-18: clamp(14px, calc(2px + 0.83vw), 18px);
    --p-14-to-21: clamp(14px, calc(11.7143px + 0.2976vw), 16px);
    --p-16-to-24: clamp(16px, calc(11.4286px + 0.5952vw), 20px);
    --p-14-to-24: clamp(14px, calc(9.4286px + 0.5952vw), 18px);
    --p-12-to-21: clamp(12px, calc(7.4286px + 0.5952vw), 16px);
    --p-20-to-41: clamp(20px, calc(10px + 1.6146vw), 41px);
    --p-12-14-16: clamp(12px, calc(9.7143px + 0.2976vw), 14px);
    --p-12-to-16: 12px;

}


p {
    font-size: clamp(12px, calc(9.7143px + 0.2976vw), 14px);
}

h1 {
    color: var(--dark-blue-142640);
}


@media (min-width: 1440px) {
    p {
        font-size: clamp(14px, calc(2px + 0.8333vw), 18px);
    }

    :root {
        --p-14-to-21: clamp(16px, calc(1px + 1.0417vw), 21px);
        --p-16-to-24: clamp(20px, calc(8px + 0.8333vw), 24px);
        --p-14-to-24: clamp(18px, calc(0px + 1.25vw), 24px);
        --p-12-to-21: clamp(16px, calc(1px + 1.0417vw), 21px);
        --p-12-14-16: clamp(14px, calc(8px + 0.4167vw), 16px);
        --p-12-to-16: clamp(12px, calc(0px + 0.8333vw), 16px);

    }
}


:root {
    /* This mirrors .triton-container's own width formula:
     min of (100% - 120px) and max-width 1920px */
    --triton-w: min(calc(100% - 120px), 1920px);
    --triton-ml: calc((100% - var(--triton-w)) / 2);
}

/* Below 1024px, .triton-container becomes width:100% (margin 0),
   so we override the variable to match — this ONE breakpoint is
   unavoidable since it's a different formula, not a different number */
@media (max-width: 1024px) {
    :root {
        --triton-ml: 0px;
    }
}

.triton-container.triton-container-bleed {
    margin-left: var(--triton-ml);
    margin-right: 0 !important;
    max-width: none !important;
    width: calc(100% - var(--triton-ml)) !important;
    padding-right: 0 !important;
}

ul {
    margin-left: 20px;
}

a {
    color: var(--insights-blue);
}

a:hover,
a:focus {
    color: var(--insights-blue);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

a[data-gb-overlay] {
  cursor: pointer;
}


.purple-gradient-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 350% 100%;
    background: linear-gradient(90deg, #4D6DE8 0%, #5964E7 20%, #655AE8 45%, #7354EA 70%, #8350EC 100%);
    -webkit-background-clip: text;
    width: fit-content;

}




@font-face {
    font-family: 'Inter';
    src: url("/wp-content/themes/generatepress_child/fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    src: url("/wp-content/themes/generatepress_child/fonts/inter-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    src: url("/wp-content/themes/generatepress_child/fonts/inter-italic-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    src: url("/wp-content/themes/generatepress_child/fonts/inter-italic-latin-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body {
    font-family: 'Inter', sans-serif;

}

/* Custom Scrollbar styled for Triton Canada theme */

/* Modern CSS Standard (Firefox / Edge / Chrome) */
.custom-scroll {
    overflow-y: auto;
    scrollbar-color: #FFD700 #f4f6f8;
    scrollbar-width: thin;
}

/* WebKit Pseudo-elements (Chrome, Safari, Edge) */

/* 1. Scrollbar width/height */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

/* 2. Scrollbar Track (Background) */
::-webkit-scrollbar-track {
    background: #f4f6f8;
    border-radius: 4px;
}

/* 3. Scrollbar Thumb (Primary Blue) */
::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

/* 4. Scrollbar Thumb Hover State (Darker Blue) */
::-webkit-scrollbar-thumb:hover {
    background: #E6C200;
}

/* 5. Scrollbar Corner */
::-webkit-scrollbar-corner {
    background: #f4f6f8;
}

/* @media(max-width:1440px){
    p{  
    font-size: clamp(12px, calc(12px + (14 - 12) * ((100vw - 768px) / (1440 - 768))), 14px);
    }
} */


.arrow-button::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    /* Forces arrow to match button text color */

    /* Using CSS Mask so the SVG dynamically inherits text/hover colors */
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"/></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"/></svg>') no-repeat center / contain;
}

/* ------------------------------------Menu Styles----------------------------- */
/* .second-section {
    display: none;
} */

.second-section.get-support {
    margin-left: auto;
    flex-shrink: 1;
}

#menu-item-wpml-ls-27-en {
    display: flex;
    align-items: center;
    font-weight: normal;
}

#menu-item-wpml-ls-27-en::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(/wp-content/uploads/2026/08/globe-icon.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 5px;
}


#menu-item-wpml-ls-27-fr {
    display: flex;
    align-items: center;
    font-weight: normal;
}

#menu-item-wpml-ls-27-fr::before {
    content: "|";
    /* margin-right: 18px; */
    position: absolute;
    left: -66%;
}

.police-innovation-menu a::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.9;
}


.for-individuals-menu .for-individuals-title a {
    color: var(--black);
}

.for-individuals-menu .for-individuals-title a:hover {
    color: var(--insights-blue);
}


.wp-block-breadcrumbs a {
    color: var(--dark-grey);
}


.wp-block-breadcrumbs a:hover {
    color: var(--insights-blue);
}


@media(min-width:1400px) {
    #menu-primary-menu li:hover {
        box-shadow: 0 4px 0 0 #FFD84D;
    }

    #menu-primary-menu .sub-menu li:hover {
        box-shadow: 0 2px 0 0 #FFD84D;
    }

    .current-menu-item,
    .current-menu-parent {
        box-shadow: 0 4px 0 0 #FFD84D;
    }

    .sub-menu .current-menu-item {
        box-shadow: 0 2px 0 0 #FFD84D;
    }

    .single-product .display-mega-menu,
    .display-mega-menu.is-active {
        box-shadow: 0 4px 0 0 #FFD84D;
    }

    #menu-item-wpml-ls-27-fr::before {
        left: -53%;
    }

    .sub-menu {
        box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
        top: 60px;
        border-radius: 12px;
    }

    .industries-menu.gb-sub-menu--open .sub-menu {
        width: 500px;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 10px;
    }

}

@media (min-width: 1800px) {
    #menu-item-wpml-ls-27-fr::before {
        left: -90%;
    }
}

.sub-menu li {
    padding-bottom: 10px;
    padding-top: 10px;
}

.second-section:hover {
    box-shadow: none !important;
}

.menu-item a {
    column-gap: 0 !important;
}


.business {
    margin: 0;
    list-style: none;

}

[lang="fr-FR"] .business {
    max-width: 154px;
}

@media(max-width:1440px) {
    [lang="fr-FR"] .business {
        max-width: 140px;
    }
}


.business a {
    color: white !important;
    padding: 8px 12px;
    background-color: #2B6EDB;
    text-decoration: none;
    border-radius: 12px;
}

.get-support>a,
.login-dropdown>a {
    border: 1px solid black;
    padding: 7px 12px;
    border-radius: 12px;
}

.sub-menu {
    left: 0;
    background-color: #ffffff;
}

@media(max-width:1400px) {
    .sub-menu {
        margin-top: 5px !important;
        padding-bottom: 0 !important;
    }

    .second-section .submenu {
        padding: 0;
        margin-top: 20px;
    }

    .gb-navigation.primary-menu {
        display: flex;
        justify-content: flex-end;
    }

    .primary-menu #menu-primary-menu {
        align-items: start;
        gap: 20px;
        padding: 0 40px;
        margin-top: 20px;
    }

    .primary-menu #menu-primary-menu {
        font-size: 16px;
    }

    .second-section.get-support {
        margin-left: unset;
        flex-shrink: unset;
    }

    .business {
        background-color: #2B6EDB !important;
    }

    .second-section.get-support a,
    .second-section.login-dropdown a {
        border: 1px solid black;
    }


    .second-section.get-support a,
    .second-section.login-dropdown a,
    .second-section.business,
    .second-section.business a {
        border-radius: 12px;
        padding: 20px 12px;
        text-align: center;
    }

    .second-section {
        width: 100%;
    }

    .second-section a {
        justify-content: center !important;
    }

    #menu-item-wpml-ls-27-en {
        margin: 0 auto;
        transform: translateX(-20px);
    }

    #menu-item-wpml-ls-27-fr {
        margin-top: -41px;
        margin-left: auto;
        margin-right: auto;
        transform: translateX(26px);
    }

    #menu-primary-menu>li {
        padding-top: 0;
        padding-bottom: 0;
    }

    #menu-item-wpml-ls-27-fr::before {
        left: -49%;
    }


}

@media(max-width:1024px) {
    .primary-menu #menu-primary-menu {
        font-size: 14px;
    }
}

/* ----------- */

.resource-current-content a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 5px;

}

.resource-current-content a:hover {
    color: #f1bb1c;
    text-decoration: underline;
}

/* ------------- */


.gb-menu-container--mobile {
    width: calc(100% - 140px);
    margin-left: auto;
    margin-right: auto;
    max-width: 1920px;
    padding-top: 30px;
    border: 1px solid white;
    border-radius: 16px;
    height: 80vh;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

}

.gb-menu-container--mobile #menu-primary-menu {
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
    padding-left: 20px
}

@media(max-width:1024px) {
    .gb-menu-container--mobile {
        width: calc(100% - 40px) !important;
    }
}

/* --------------------Footer Style---------------- */

.seperator {
    margin-bottom: 0;
    margin-top: 50px;
}

.footer-strip a,
.triton .phone a,
.triton .email a {
    color: var(--dark-grey);
}

.footer-strip a:hover,
.triton .phone a:hover,
.triton .email a:hover {
    color: var(--insights-blue);
}

@media(max-width:768px) {
    .seperator {
        margin-top: 8px;
    }
}

/* -------------------------------------- */


/* ---------------------------------------- */
.post-tags-wrapper .post-tags-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags-wrapper {
    margin-top: 80px;
}

.post-tags-wrapper .post-tags-list .post-tag-badge,
.post-tags-wrapper .post-tags-list a.post-tag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--p-16px, 16px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.33px;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 100px;
    padding: 6px 14px;
    box-sizing: border-box;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.post-tags-wrapper .post-tags-list a.post-tag-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.post-tags-wrapper .post-tags-list a:nth-of-type(3n+1),
.post-tags-wrapper .post-tags-list span:nth-of-type(3n+1) {
    background-color: var(--light-dark-blue);
    color: var(--primary-dark-blue);
}

.post-tags-wrapper .post-tags-list a:nth-of-type(3n+2),
.post-tags-wrapper .post-tags-list span:nth-of-type(3n+2) {
    background-color: var(--light-purple);
    color: var(--dark-purple);
}

.post-tags-wrapper .post-tags-list a:nth-of-type(3n+3),
.post-tags-wrapper .post-tags-list span:nth-of-type(3n+3) {
    background-color: var(--light-yellow);
    color: var(--dark-yellow);
}

/* Prevent list bullet if inside unclosed <li> */
li:has(.post-tags-wrapper),
ul:has(.post-tags-wrapper)>li:last-child {
    list-style: none !important;
    list-style-type: none !important;
}

/* ---------------------------------------- */


html {
    scroll-padding-top: 140px;
}



/* -----------------logo carousel styles------------- */
.continuous-slider .gb-carousel-items {
    transition-timing-function: linear !important;
}

/* -------------------------------------- ----------- */


/*--------------------- Desktop-only Tab style overrides (preserve defaults on mobile/responsive)------------------------------------------ */

.screening-solutions-tabs.active-tab-1 .gb-tabs__item,
.screening-solutions-tabs.hover-tab-1 .gb-tabs__item {
    border-top-left-radius: 0 !important;
}

/* When Tab 1 is NOT active and NOT hovered, restore the 26px top-left rounded corner on the card */
.screening-solutions-tabs:not(.active-tab-1):not(.hover-tab-1) .gb-tabs__item {
    border-top-left-radius: 0px !important;
}

/* When the first tab button is inactive, ensure its top-left corner is rounded */
.screening-solutions-tabs .first-tab:not(.gb-block-is-current) {
    border-top-left-radius: 21px !important;
    border-bottom-left-radius: 21px;
}

.screening-solutions-tabs .first-tab:not(.gb-block-is-current) {
    border-bottom-left-radius: 0px;
}

/* When the last tab button is inactive, ensure its top-right and bottom-right corners are rounded */
.screening-solutions-tabs .last-tab:not(.gb-block-is-current) {
    border-top-right-radius: 21px !important;
    border-bottom-right-radius: 21px !important;
}

.screening-solutions-tabs .gb-tabs__menu-item:not(.gb-block-is-current) {
    position: relative;
    border-bottom-right-radius: 0px;
}

.screening-solutions-tabs .gb-tabs__menu-item:not(.gb-block-is-current)::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--dark-blue-142640);
    border-radius: 21px;
    z-index: 2;
}

.screening-solutions-tabs .gb-tabs__menu-item:not(.gb-block-is-current):hover::before {
    /* background-color: var(--secondary-dark-blue); */
}


/* Active Tab base styling */
.screening-solutions-tabs .gb-tabs__menu-item.gb-block-is-current {

    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Inward rounded corner (fillet) on the LEFT side of the active tab */
.screening-solutions-tabs .gb-tabs__menu-item.gb-block-is-current::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-bottom-right-radius: 20px;
    box-shadow: 10px 10px 0 10px var(--secondary-dark-blue);
    pointer-events: none;
}

/* Inward rounded corner (fillet) on the RIGHT side of the active tab */
.screening-solutions-tabs .gb-tabs__menu-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-bottom-left-radius: 20px;
    box-shadow: -10px 10px 0 10px var(--secondary-dark-blue);
    pointer-events: none;
}

.screening-solutions-tabs .gb-tabs__menu {
    position: relative;
    overflow: visible !important;
    z-index: 0;
    overflow-x: scroll !important;
    width: calc(100% + -25px);
}

.screening-solutions-tabs .first-tab.gb-block-is-current::before {
    display: none !important;
}

.screening-solutions-tabs .gb-tabs__menu {
    overflow-x: auto !important;
    overflow-y: hidden !important;

    /* Firefox scrollbar styling (thin size & custom colors) */
    scrollbar-width: thin;
    scrollbar-color: var(--light-dark-blue) var(--dark-blue-142640);
}

/* Custom scrollbar styling for Chrome, Safari, and Edge */
.screening-solutions-tabs .gb-tabs__menu::-webkit-scrollbar {
    height: 5px;
    /* Sleek, thin height */
}

/* The scrollbar track (background) */
.screening-solutions-tabs .gb-tabs__menu::-webkit-scrollbar-track {
    background: var(--dark-blue-142640);
    /* Matches inactive dark blue background */
    border-radius: 10px;
}

/* The scrollbar thumb (scroller handle) */
.screening-solutions-tabs .gb-tabs__menu::-webkit-scrollbar-thumb {
    background: var(--light-dark-blue);
    /* Premium lighter blue handle */
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* Hover state for the handle */
.screening-solutions-tabs .gb-tabs__menu::-webkit-scrollbar-thumb:hover {
    background: #4a73aa;
    /* Brighter blue on hover */
}



/* Enable horizontal scrolling on mobile/tablet screens */
@media (max-width: 768px) {
    .screening-solutions-tabs .gb-tabs__menu {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .screening-solutions-tabs .gb-tabs__menu-item {
        flex: 0 0 auto !important;
        /* Keep buttons full size without shrinking */
    }

    .screening-solutions-tabs .last-tab::after {
        /* display: none !important; */
    }
}

/* -------------------------------------- ----------- ---------------------------------------------*/

.otgs-development-site-front-end,
.wpml-ls-statics-footer {
    display: none;
}

/* ----------- */
.product-table .product-list>div:nth-child(even) {
    /* background-color: #FCFCFD; */
    /* border-top: 1px solid rgba(184, 184, 186, 0.15);
    border-bottom: 1px solid rgba(184, 184, 186, 0.15); */
    background-color: #F5F5F7;
    border-top: 1px solid #B8B8BA26;
    border-bottom: 1px solid #B8B8BA26;
}

.time-section:not(:has(.time-field)) img {
    display: none;
}

@media(min-width:768px) {
    .time-field {
        font-size: 14px;
    }

}

/* ---------- */
.fancybox-popup-content {
    width: 80%;
}

@media(max-width:1024px) {
    .fancybox-popup-content .get-started-pop-up-content .get-started-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:768px) {
    .fancybox-popup-content .get-started-pop-up-content .get-started-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------FAQ section style------ */
.faq-answer>* {
    margin-bottom: 12px;
}

.faq-answer>*:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--insights-blue);
}

.faq-section .faq:last-child .gb-accordion__item {
    border-bottom: none;
}

/* --------------------------------------- */

.wp-block-breadcrumbs ol:has(> li:nth-child(3):last-child)>li:nth-child(2) {
    display: none;
}

/* ---------------------------------- */
.industries-grid .industries-card:nth-child(n + 9) {
    display: none;
}

.industries-grid .industries-card.is-visible {
    display: block;

}

/* -------------------------------------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* thin dark layer — adjust opacity as needed */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
    /* just below your mega menu's z-index */
}

body.mega-menu-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* so clicking the overlay can close the menu */
}
/* Open an Account page only (EN 21314, FR 23849): wider embedded form on larger screens. Other forms and popups keep 720px. 2026-11-06 */
.page-id-21314 .hs-shortcode-embeded,
.page-id-23849 .hs-shortcode-embeded {
    max-width: 960px;
}
