/*
 Theme Name: Elementor Child
 Theme URI: https://example.com/
 Description: Child theme for Elementor Hello theme
 Author: Your Name
 Template: hello-elementor
 Version: 1.0
*/

/* Add your custom styles below */

/*-=-=-=-=-=-=-font-=-=-=-=-=-=-*/
@font-face {
    font-family: 'Hanken Grotesk';
    src: url('fonts/HankenGrotesk-Regular.eot');
    src: url('fonts/HankenGrotesk-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/HankenGrotesk-Regular.woff2') format('woff2'),
        url('fonts/HankenGrotesk-Regular.woff') format('woff'),
        url('fonts/HankenGrotesk-Regular.ttf') format('truetype'),
        url('fonts/HankenGrotesk-Regular.svg#HankenGrotesk-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('fonts/HankenGrotesk-SemiBold.eot');
    src: url('fonts/HankenGrotesk-SemiBold.eot?#iefix') format('embedded-opentype'),
        url('fonts/HankenGrotesk-SemiBold.woff2') format('woff2'),
        url('fonts/HankenGrotesk-SemiBold.woff') format('woff'),
        url('fonts/HankenGrotesk-SemiBold.ttf') format('truetype'),
        url('fonts/HankenGrotesk-SemiBold.svg#HankenGrotesk-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('fonts/HankenGrotesk-Light.eot');
    src: url('fonts/HankenGrotesk-Light.eot?#iefix') format('embedded-opentype'),
        url('fonts/HankenGrotesk-Light.woff2') format('woff2'),
        url('fonts/HankenGrotesk-Light.woff') format('woff'),
        url('fonts/HankenGrotesk-Light.ttf') format('truetype'),
        url('fonts/HankenGrotesk-Light.svg#HankenGrotesk-Light') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('fonts/HankenGrotesk-Medium.eot');
    src: url('fonts/HankenGrotesk-Medium.eot?#iefix') format('embedded-opentype'),
        url('fonts/HankenGrotesk-Medium.woff2') format('woff2'),
        url('fonts/HankenGrotesk-Medium.woff') format('woff'),
        url('fonts/HankenGrotesk-Medium.ttf') format('truetype'),
        url('fonts/HankenGrotesk-Medium.svg#HankenGrotesk-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('fonts/HankenGrotesk-Bold.eot');
    src: url('fonts/HankenGrotesk-Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/HankenGrotesk-Bold.woff2') format('woff2'),
        url('fonts/HankenGrotesk-Bold.woff') format('woff'),
        url('fonts/HankenGrotesk-Bold.ttf') format('truetype'),
        url('fonts/HankenGrotesk-Bold.svg#HankenGrotesk-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
/*-=-=-=-=-=-=-font-=-=-=-=-=-=-*/

:root {
    --primary-color: #001a70;
    --secondary-color: #EB5345;
}


/*-=-=-=-=-=-=-General section -=-=-=-=-=-=-*/


/*-=-=-=-=-=-=-Footer section start-=-=-=-=-=-=-*/
#footer-new h4, #footer-new h3, #footer-new h2, .footer-new-links h3 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    color: #3f3f3f !important;
}

#footer-new .footer-widget.widget_nav_menu li a {
    color: #88898b !important;
    font-family: "Open Sans", sans-serif !important;
}

body #footer-new.custom-footer-colors .new-footer-social-icons li a, body #footer-new.custom-footer-colors .footer-widget.widget_nav_menu li a:hover, body #footer-new.custom-footer-colors .footer-widget.widget_nav_menu li a {
    color: #88898b !important;
}

.footer-new-bottom-section {
    padding: 15px 0;
}
.footer-new-middle-section {
    padding: 40px 0 20px 0;
}
/*-=-=-=-=-=-=-Footer section end-=-=-=-=-=-=-*/
body {
    overflow-x: hidden;
}
button[type="submit"] {
    cursor: pointer;
}
body .intro-search-button .button {
    height: 42px;
    line-height: 42px;
    padding: 0 36px;
    background: var(--secondary-color);
    border-radius: 50px;
}

a.load_more_jobs.button {
    box-shadow: none;
    border-radius: 50px;
    background: var(--secondary-color);
}

#footer-new .footer-widget.widget_nav_menu li a:hover:before{
    display: none;
}

#footer-new .intro-stats li i{
     background: var(--primary-color);
}

#footer-new .intro-stats li:hover i{
    background: var(--secondary-color);
}

.mobile-nav-widgets h4, .mobile-nav-widgets h5{
        color: #1b1b1b;
}

.heading-1 h3 a::after {
    content: '';
    background: url(images/arrow-right.svg) no-repeat;
    width: 26px;
    height: 15px;
    display: inline-block;
    margin-left: 15px;
}
body.single-post .elementor-element a, body.single-post .elementor-element a:hover {
    color: #00196C;
    font-weight: 600;
}
blockquote, blockquote * {
    margin: 0 0 10px;
    border: none;
}
blockquote p {
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 400 !important;
    text-transform: uppercase;
    color: #242429;
    text-align: center;
}
blockquote p:before {
    content: "";
    background: url(images/icon-blockquote.png) no-repeat center center;
    font-weight: 400;
    background-size: 30px;
    margin-bottom: 10px;
    display: block;
    opacity: .1;
    line-height: 1.666667;
    text-align: center;
    height: 83px;
}
.single.single-post .elementor-widget-theme-post-content p, 
.single.single-post .elementor-location-single .elementor-widget-theme-post-content ul li {
    font-size: 18px;
}
.news-insights-footer-authorbox .elementor-author-box__avatar {
    position: relative;
    z-index: 1;
}
.news-insights-footer-authorbox .elementor-author-box__avatar:before {
    position: absolute;
    content: "";
    left: -12px;
    top: -13px;
    background: url(images/polygon-1.png) no-repeat center center;
    width: 74px;
    height: 83px;
    z-index: -1;
}
.news-insights-footer-authorbox .elementor-author-box__avatar:after {
    position: absolute;
    content: "";
    right: 3px;
    bottom: 2px;
    background: url(images/polygon-2.png) no-repeat center center;
    width: 30px;
    height: 32px;
    z-index: -1;
}
.single.single-post .elementor-widget-theme-post-content h3 {
    color: #001A70;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 24px;
}


.b2b-resource-filter-form {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    font-family: "Open Sans", Sans-serif;
}
.b2b-resource-filter-form .filter-by-sec {
    padding: 26px 32px 26px 27px;
    border-right: 1px solid #E4E4E4;
    display: flex;
    align-items: center;
    flex: none;
    gap: 10px;
}
.b2b-resource-filter-form .search-filter-sec {
    padding: 15px 32px;
    width: 100%;
    display: flex;
    gap: 25px;
}
.b2b-resource-filter-form select,
.b2b-resource-filter-form input,
.b2b-resource-filter-form button{
    height: 44px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.b2b-resource-filter-form .filter-by-sec .filter-post-type {
    margin-right: 10px;
}
.b2b-resource-filter-form .filter-by-sec span.select2.select2-container {
    display: inline;
}
.b2b-resource-filter-form .filter-by-sec .select2-container--default .select2-selection--single {
    border: none;
    border-radius: 0;
}
.b2b-resource-filter-form .filter-by-sec .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #242429;
    line-height: 28px;
    font-size: 16px;
    font-weight: 700;
    padding-left: 0;
}
.b2b-resource-filter-form .filter-by-sec .select2-container--default .select2-selection--single .select2-selection__arrow b {
    background: url(images/down-arrow.svg) no-repeat;
    width: 9px;
    height: 9px;
    border: none;
    margin-top: -4.5px;
}
.b2b-resource-filter-form .filter-by-sec .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(180deg);
}
body .select2-container {
    margin-top: 10px;
}
body .select2-container.select2-container--open .select2-dropdown--below,
body .select2-container.select2-container--open .select2-dropdown--above {
    border-radius: 4px;
    border: 1px solid #aaa;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
}
body .select2-search--dropdown {
    padding: 8px;
}
body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #eb5444;
}

.b2b-resource-filter-form .filter-by-sec select#b2b-filter-post-type {
    margin-right: 20px;
}
.b2b-resource-filter-form .filter-by-sec select {
    outline: none;
    border: none;
    color: #242429;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
}
.b2b-resource-filter-form .search-filter-sec #b2b-filter-keyword {
    background: url(/wp-content/themes/hello-elementor-child/images/icon-search.svg) no-repeat;
    background-position: 98% center;
    padding: 0 18px;
    font-size: 16px;
    color: #676767;
    outline: none;
}
.b2b-resource-filter-form .search-filter-sec button#b2b-reset-filters {
    font-size: 16px;
    font-weight: 700;
    padding: 0;
    height: auto;
    background: none;
    border: none;
    text-decoration: underline;
    color: #EB5345;
    cursor: pointer;
}

#b2b-filter-keyword{
    flex:1;
    min-width:260px;
}
.b2b-resource-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 46px 36px;
}
.b2b-resource-card {
    border: 1px solid #eee;
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
}
.b2b-resource-thumb img {
    width: 100%;
    height: 209px;
    object-fit: cover;
    display: block;
}
.b2b-resource-content {
    padding: 26px;
}
.b2b-resource-title {
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 18px;
    line-height: 24px;
    font-family: "Hanken Grotesk", sans-serif;
    color: #00196C;
}
.b2b-resource-type {
    font-size: 13px;
    font-weight: 700;
    color: #EB5345;
    font-family: "Open Sans", sans-serif;
    position: relative;
    line-height: 18px;
    margin-bottom: 11px;
}
.b2b-resource-type::before {
    content: '';
    background: url(/wp-content/themes/hello-elementor-child/images/icon-guide.svg) no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.b2b-resource-type.guide::before {
    background-image: url(/wp-content/themes/hello-elementor-child/images/icon-guide.svg);
}
.b2b-resource-type.case-study::before {
    background-image: url(/wp-content/themes/hello-elementor-child/images/icon-case-study.svg);
}
.b2b-resource-type.report-whitepaper::before {
    background-image: url(/wp-content/themes/hello-elementor-child/images/icon-whitepaper.svg);
}
.b2b-resource-excerpt {
    font-size: 14px;
    line-height: 21px;
    margin-bottom: 25px;
    font-family: "Open Sans", sans-serif;
    color: #242429;
}
.b2b-read-more {
    font-weight: 700;
    font-size: 13px;
    color: #EB5345;
    letter-spacing: 1px;
    font-family: "Open Sans", sans-serif;
}

/* BLUR LOADING EFFECT */

#b2b-resource-results{
    position:relative;
    transition:all .3s ease;
}

#b2b-resource-results.b2b-loading{
    filter:blur(3px);
    opacity:.4;
    pointer-events:none;
}

#b2b-resource-results.b2b-loading:after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.4);
}

.cpt-grid-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #f3f3f3;
    border-top-color: #EB5345;
    border-radius: 50%;
    animation: cpt-spin 0.8s linear infinite;
}

/* pagination */
.b2b-pagination {
    margin-top: 75px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.b2b-page-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    padding: 0;
    color: #00196C;
}

.b2b-page-btn.active{
    color: #EB5345;
}
.cpt-grid-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .7);
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* ✅ Active state */
.cpt-grid-loading.active {
    opacity: 1;
    visibility: visible;
}



@media(max-width:1024px){
    .b2b-resource-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .b2b-resource-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .b2b-resource-filter-form {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .b2b-resource-filter-form .filter-by-sec {
        flex-wrap: wrap;
        padding: 20px 20px 15px;
        gap: 10px;
        width: 100%;
    }
    .b2b-resource-filter-form .filter-by-sec select {
        width: 100%;
        padding: 0;
        height: 25px;
        margin: 0;
    }
    .b2b-resource-filter-form .filter-by-sec select#b2b-filter-post-type {
        margin-right: 0;
    }
    .b2b-resource-filter-form .filter-by-sec span.b2b-filter-label {
        width: 100%;
        margin: 0;
    }
    .b2b-resource-filter-form .filter-by-sec select {
        width: 100%;
        padding: 0;
        height: 25px;
    }
    .b2b-resource-filter-form .search-filter-sec {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0px 20px 19px 20px;
    }
    .b2b-resource-thumb img {
        height: 200px;
    }
    .b2b-resource-content {
        padding: 20px 20px 30px;
    }
    .b2b-resource-title {
        margin-bottom: 15px;
        font-size: 21px;
        line-height: 30px;
    }
    .b2b-resource-excerpt {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    .b2b-read-more {
        font-size: 16px;
    }
    .b2b-pagination {
        margin-top: 42px;
    }
    .b2b-resource-filter-form .filter-by-sec .filter-post-type {
        width: 100%;
    }
    .b2b-resource-filter-form .filter-by-sec .select2-container--default .select2-selection--single {
        display: flex;
    }
}
