/*added by wen*/
/*To override the archive page title*/
.archive .page__wrapper .heroBanner__block {
    padding: 128px 0;
    margin-bottom: 64px;
    background-size: cover;
    background-position: center;
}

.archive .page__wrapper .heroBanner__block * {
    color: #ffffff;
    font-variant-numeric: lining-nums;
}

.archive .page__wrapper .heroBanner__block .post__category {
    margin-bottom: 16px;
}

.archive .page__wrapper .heroBanner__wrap {
    text-align: center;
}

/*====================*/
.post__tags.mb-2 .tag_chip {
    margin-bottom: 5px;
}

.meta-contract-number {
    color: #707070 !important;
}

.contract-info-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 0 30px;
}

.contract-info-wrap .contract-col-info {
    max-width: 60%;
    flex: 0 0 60%;
    padding-right: 20px;
}

.contract-info-wrap .contract-col-info h5 {
    margin-bottom: 15px;
}

.contract-info-wrap .contract-col-img {
    max-width: 40%;
    flex: 0 0 40%;
}

.contract-info-wrap .contract-col-img img {
    height: auto;
}

@media screen and (max-width: 767px) {
    .contract-info-wrap {
        flex-direction: column;
    }

    .contract-info-wrap .contract-col-info {
        padding-right: 0;
        padding-bottom: 20px;
        order: 2;
        width: 100%;
    }

    .contract-info-wrap .contract-col-img {
        order: 1;
    }

    .contract-info-wrap .contract-col-info,
    .contract-info-wrap .contract-col-img {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

.single .accordionTab__content .post__tags {
    margin-top: 0;
    margin-bottom: 0;
}

.single .accordionTab__content .post__tags .tag_chip {
    margin-bottom: 5px;
    margin-left: 5px;
}

nav#mobile #drop > span {
    color: #fff !important;
}

nav#mobile .hamburger-inner,
nav#mobile .hamburger-inner::before,
nav#mobile .hamburger-inner::after,
nav#mobile .hamburger.is-active .hamburger-inner,
nav#mobile .hamburger.is-active .hamburger-inner::before,
nav#mobile .hamburger.is-active .hamburger-inner::after {
    background-color: #fff;
}

@media screen and (max-width: 800px) {
    .block--stickyMenu .container {
        padding: 0 !important;
    }

    nav#mobile ul {
        padding-left: 10px !important;
    }

    nav#mobile ul li a {
        color: #fff;
    }
}

/********************************************************************************************************/

/*----------------------------*\
    UPVOTE/DOWNVOTE
\*----------------------------*/

.post__vote_cards,
.post__fav_cards {
    margin-top: 20px !important;
}

.post__vote_cards ul {
    display: flex;
    list-style: none;
    margin: 0 -8px !important;
    padding: 0;
}

.post__vote_cards ul li {
    padding: 0 8px;
}

.post__vote_cards.already-voted .ltc_vote {
    cursor: not-allowed !important;
}

.post__vote_cards .ltc_vote {
    color: #727272 !important;
    display: inline-block;
    font-size: 14px !important;
    padding: 7px 0 !important;
    text-decoration: none;
}

.post__vote_cards .ltc_vote:before,
.post__fav_cards .ltc-fav:before {
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    margin-right: 7px;
}

.post__vote_cards .ltc_upvote:before {
    content: '\f164';
}

.post__vote_cards .ltc_downvote:before {
    content: '\f165';
    /* position: relative;
    top: 2px; */
}

.post__vote_cards .ltc_upvote:hover,
.post__vote_cards .ltc_upvote.voted {
    color: #179ed3 !important;
}

.post__vote_cards .ltc_downvote:hover,
.post__vote_cards .ltc_downvote.voted {
    color: var(--wpgb-accent-scheme-1) !important;
}

.post__fav_cards {
    display: flex;
}

.post__fav_cards .ltc-fav {
    background: #179ed3;
    border-radius: 100px;
    color: #ffffff !important;
    display: inline-block;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 7px 15px !important;
    text-decoration: none;
}

.post__fav_cards .ltc-fav:hover {
    background: #00416b;
}

.post__fav_cards .ltc-fav.voted {
    background: var(--wpgb-accent-scheme-1);
}

.post__fav_cards .ltc-fav:before {
    content: '\f004';
}

/********************************************************************************************************/

/*----------------------------*\
    CUSTOM-TAB-WRAPPER
\*----------------------------*/

.custom-tab-wrapper {
    overflow: hidden;
}

/*-------------------------------------
 * ## CUSTOM-TAB-HEAD
 *-------------------------------------
*/

.custom-tab-head {
    margin-bottom: 20px;
}

.custom-tab-head ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-tab-head ul li {
    margin: 10px;
}

.custom-tab-head ul li a {
    background: #ECF0F9;
    border-radius: 5px;
    color: #00416B;
    display: block;
    padding: 10px 15px;
    text-decoration: none;
}

.custom-tab-head ul li a:hover {
    background: #CBD2EA;
    color: #00416B;
}

.custom-tab-head ul li a.active {
    background: #00416B;
    border-radius: 5px;
    color: #fff;
}

/*-------------------------------------
 * ## CUSTOM-TOGGLE-TITLE
 *-------------------------------------
*/

.custom-tab-item .custom-toggle-title {
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding: 20px;
}

.custom-tab-item .custom-toggle-title.is-open {
    color: #179ed3;
}

.custom-tab-item .custom-toggle-title:before,
.custom-tab-item .custom-toggle-title:after {
    background: #000000;
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    right: 20px;
    top: 31px;
    width: 20px;

    transition: all 0.8s ease;
    -webkit-transition: all 0.8s ease;
}

.custom-tab-item .custom-toggle-title:after {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
}

/*-------------------------------------
 * ## CUSTOM-TAB-ITEM
 *-------------------------------------
*/

.custom-tab-wrapper .related-items__link {
    margin-bottom: 50px;
    text-align: center;
}

/********************************************************************************************************/

/*----------------------------*\
    FIXES
\*----------------------------*/

/*-------------------------------------
 * ## WPGB-CAROUSEL
 *-------------------------------------
*/

.wp-grid-builder .wpgb-carousel {
    overflow: visible !important;
}

.wp-grid-builder .wpgb-carousel:before,
.wp-grid-builder .wpgb-carousel:after {
    background: #ffffff;
    bottom: 200px;
    content: '';
    display: flex;
    position: absolute;
    top: 200px;
    width: 50%;
    z-index: 11;
}

.wp-grid-builder .wpgb-carousel:before {
    left: calc(-50% - 20px);
}

.wp-grid-builder .wpgb-carousel:after {
    right: calc(-50% - 20px);
}

.wp-grid-builder .wpgb-carousel ~ .wpgb-area {
    position: absolute;
}

.wp-grid-builder .wpgb-carousel ~ .wpgb-area.wpgb-area-left {
    left: -80px;
}

.wp-grid-builder .wpgb-carousel ~ .wpgb-area.wpgb-area-right {
    right: -80px;
}

iframe {
    border: none;
}

/********************************************************************************************************/

/*----------------------------*\
    RESPONSIVE
\*----------------------------*/

@media (min-width: 768px) {

    .custom-tab-item {
        min-height: 0;
    }

    .custom-toggle-title {
        display: none;
    }

    .custom-tab-item .custom-item-content {
        opacity: 0;
        visibility: hidden;
        height: 0;
    }

    .custom-tab-item.active .custom-item-content {
        opacity: 1;
        visibility: visible;
        height: auto;
    }

    .custom-tab-item.active .custom-toggle-title::after {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

}

@media (max-width: 1280px) {

    .wp-grid-builder .wpgb-carousel ~ .wpgb-area.wpgb-area-left {
        left: 0;
        padding: 0;
    }

    .wp-grid-builder .wpgb-carousel ~ .wpgb-area.wpgb-area-right {
        right: 0;
        padding: 0;
    }

}

@media (max-width: 767px) {

    .custom-tab-head {
        display: none;
    }

    .custom-tab-item {
        border-top: 1px solid #ECF0F9;
    }

    .custom-tab-item + .custom-tab-item {
        border-bottom: 1px solid #ECF0F9;
    }

    .custom-tab-item .custom-item-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.8s ease-in-out;
    }

    .custom-tab-item .custom-toggle-title.is-open::after {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    .custom-tab-item .wp-grid-builder .wpgb-main .wpgb-layout {
        margin-top: 0;
    }

}

/********************************************************************************************************/

/* CSS after this comment done by Serhiy */
/* Improvements for the Post Categories block layout */
.single .post__category {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}


.ltc-login-register-box {
	padding-top: 0;
}

/* =====================================================
   MOBILE HEADER FIXES
   ===================================================== */

/* Restore hide_on_mobile for the header — the dist CSS has this rule commented out,
   so desktop logos were showing on mobile. */
@media (max-width: 64rem) {
    header .hide_on_mobile {
        display: none !important;
    }
}

/* Vertically center all items in the mobile header bar. */
@media (max-width: 1279px) {
    .header__tools_wrap {
        align-items: center;
    }
}

/* Prevent username from overflowing on small screens */
@media (max-width: 1279px) {
    .header__utilityLoginTrigger {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* On very small screens reduce the excessive margin between logo and tools */
@media (max-width: 480px) {
    .header__tools {
        margin-left: 16px !important;
    }
    .header__tools_wrap {
        gap: 1rem !important; /* override Tailwind gap-10 (2.5rem) */
    }
}

/* =====================================================
   ACCESSIBILITY: FOCUS INDICATORS
   ===================================================== */

/* Restore visible focus on the search input (was set to outline: 0) */
.header__topNavigation .searchform .search__input:focus-visible {
    outline: 2px solid #179ed3 !important;
    outline-offset: -2px;
}

/* Visible focus for search toggle button */
#header__searchForm_toggle:focus-visible {
    outline: 2px solid #179ed3;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Visible focus for user menu button */
.header__utilityLoginTrigger:focus-visible {
    outline: 2px solid #179ed3;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Remove the border-top the dist stylesheet adds to the login button/link on mobile.
   The dist CSS fires at max-width: 64rem (1024px), but the header is in mobile
   layout up to 1279px, so the override must cover the full mobile range. */
@media (max-width: 1279px) {
    header.header .header__utilityLoginLink,
    header.header .header__utilityLoginTrigger {
        border: none;
        padding: 0;
    }
}

/* Visible focus for login link */
.header__utilityLoginLink:focus-visible {
    outline: 2px solid #179ed3;
    outline-offset: 2px;
    border-radius: 2px;
}
