/*!
Theme Name: Trafee
Theme URI: https://trafee.com/
Author: @cosmoCoder
Author URI: https://t.me/cosmoCoder
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: ^7.4
Text Domain: trafee
*/

.header .white-logo {
    display: none;
}

.home:not(.scrolled) .white-logo {
    display: block;
}

.home:not(.scrolled) .custom-logo-link {
    display: none;
}

.home:not(.scrolled) .header,
body:has(.index-hero):not(.scrolled) .header {
    box-shadow: none;
}

.home:not(.scrolled) .header__layout .header-menu__item-link {
    color: #fff !important;
}

.mobile-menu__content .header-menu .header-menu__item-link {
    position: relative;
}

.home:not(.scrolled) .header-menu__item-link:hover {
    text-decoration: underline;
}

.section--offers .offers__list {
    flex-wrap: wrap;
    flex-direction: column;
}

.section--offers .offers__list .offers__list--item {
    margin: 27px 17px 0 !important;
}

@media (max-width: 980px) {
    .section--offers .offers__list .offers__list--item {
        margin: 22px 17px 0 !important;
    }
}

#wpadminbar {
    top: auto;
    bottom: 0;
}

.fscreen {
    background: url('./assets/images/bg.webp') no-repeat top left / 68% 100%;
    padding-top: 205px;
    padding-bottom: 110px;
    color: #fff;
    margin-top: -75px;
}

.home:not(.scrolled) .header {
    background: transparent;
}


.fscreen__title {
    font-size: 60px;
    margin-bottom: 40px;
}

.fscreen__snippet {
    font-size: 24px;
    max-width: 600px;
    line-height: 1.2;
    margin-bottom: 56px;
}

.fscreen__content {
    flex: 0 0 760px;
}

.fscreen__cards {
    flex: 0 0 580px;
    overflow: hidden;
}

.fscreen__wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.fscreen__controls {
    text-align: center;
}

.btn {
    text-decoration: none;
    cursor: pointer;
}

.btn--white {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 22px 24px;
    min-width: 224px;
    color: #333;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    transition: .3s;
}

.btn--white:hover {
    background: #222;
    color: #fff;
}

.fcards {
    column-count: 2;
    column-fill: initial;
    column-gap: 30px;
    break-inside: avoid-column;
}

.fcard {
    background: #f5f5f5;
    box-shadow: 0px 32px 30px -10px rgba(76, 81, 99, 0.05);
    border-radius: 15px;
    padding: 38px 28px;
    color: #333;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.fcard__title {
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 16px;
    position: relative;
    /* 	display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis; */
}

.fcard__snippet {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #75767B;
    margin-bottom: 24px;
    position: relative;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcard__button {
    font-size: 14px;
    padding: 8px 24px;
    text-align: center;
    background: #1E1F20;
    border-radius: 3px;
    color: #fff;
    position: relative;
    transition: .2s;
}


.fcard::before {
    content: '';
    background-image: var(--bg);
    background-size: cover;
    opacity: 0.2;
    top: 0;
    left: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

.fcard--dark {
    background: #222224;
}

.fcard--dark::before {
    opacity: 0.3;
}

.fcard--dark .fcard__title,
.fcard--dark .fcard__snippet {
    color: #fff;
}

.fcard--dark .fcard__button {
    background: #fff;
    color: #222;
}

.fcard__button:hover {
    background: #FAAF40;
    color: #fff;
}

.arrow {
    padding: 7px;
    display: inline-block;
}

.arrow[aria-disabled="true"] {
    opacity: .6;
    pointer-events: none;
}

@media screen and (max-width: 1440px) {
    .fcards {
        column-gap: 20px;
    }

    .fcard {
        margin-bottom: 20px;
        padding: 25px 22px 30px;
        border-radius: 12px;
    }

    .fscreen {
        background-size: 78% 100%;
        padding-bottom: 60px;
    }

    .fcard__title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .fscreen__content {
        flex: 0 0 660px;
        margin-right: 20px;
    }

    .fscreen__cards {
        flex: 0 0 540px;
    }

    .fscreen__title {
        font-size: 52px;
        margin-bottom: 32px;
    }

    .fscreen__snippet {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .btn--white {
        padding: 20px 24px;
        min-width: 220px;
    }

}

@media screen and (max-width: 1280px) {
    .fscreen__wrapper {
        display: block;
    }

    .fscreen__content {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .user__nav {
        margin-left: 40px !important;
    }
}

@media screen and (max-width: 992px) {
    #wpadminbar {
        display: none;
    }

    .fscreen {
        background-size: 110% 100%;
        padding-top: 160px;
    }

    .fscreen__title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .fscreen__snippet {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .fscreen__wrapper {
        display: block;
    }

    .fscreen__content {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .btn--white {
        padding: 16px 20px;
        min-width: 180px;
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    .fcards {
        column-gap: 13px;
    }

    .fcard {
        margin-bottom: 13px;
        padding: 18px 16px 24px;
        border-radius: 8px;
    }

    .fscreen__content {
        margin-bottom: 24px;
    }

    .fscreen__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .fscreen__snippet {
        font-size: 16px;
        margin-bottom: 26px;
    }


    .fcard__title {
        font-size: 17px;
    }

    .fcard__snippet {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .fcard__button {
        font-size: 13px;
    }

    .container {
        padding: 0px 15px !important;
    }

    .btn--white {
        width: 100%;
    }
}

.v-user,
.has-auth .v-visitor {
    visibility: hidden !important;
    position: absolute;
    top: -9999px;
}

.has-auth .v-user {
    visibility: visible !important;
    position: initial;
    top: 0;
}

/** Styles for Blog page **/

.svg-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    position: relative;
    fill: currentColor;
}

.breadcrumbs {
    margin-bottom: 2.4em;
    color: #616169;
}

.breadcrumbs a:hover {
    box-shadow: 0 1px 0 currentColor;
    transition: box-shadow .2s ease;
}

.breadcrumb_last {
    color: #0C0C0C;
}

.breadcrumbs__separator {
    width: 8px;
    height: 12px;
    margin: 0 0.8em;
    display: inline-block;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDggMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDFMNyA3TDEgMTMiIHN0cm9rZT0iIzYxNjE2OSIgc3Ryb2tlLXdpZHRoPSIxLjQiLz4KPC9zdmc+Cg==') center no-repeat;
    transform: translateY(1px);
}

body:not(.home) {
    margin-top: 75px;
}

.container__columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.container__columns > * {
    flex: 1 360px;
    padding: 0 15px;
}

.blog .page-title {
    font-size: 46px;
    margin-bottom: 1.3em;
}

.blog .post {
    margin-bottom: 60px;
}

.blog .post-thumbnail img {
    height: 240px;
    object-fit: cover;
}

.blog .post-thumbnail {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.blog .entry-title {
    font-size: 28px;
    letter-spacing: .2px;
    margin-bottom: .4em;
}

.blog .entry-content {
    line-height: 1.6;
    color: #616169;
}

.post-meta {
    font-size: 14px;
    line-height: 1;
    color: #616169;
    font-weight: 500;
    padding: 1em 0;
    margin-top: 1.2em;
}

.post-meta .svg-icon {
    top: 2px;
}

.single-post .post-meta {
    margin-bottom: 2.5em;
}

.single article {
    margin-bottom: 140px;
}

.single-post .post-meta > span {
    margin-right: 25px;
}

.single .post p,
.single .post ul,
.single .post ol,
.single .post p {
    color: #616169;
}

.single .post h2,
.single .post h3,
.single .post h4,
.single .post h5,
.single .post h6 {
    margin-top: 1.5em;
}

.single .post ul,
.single .post ol {
    margin: 1em 0;
    line-height: 1.6;
}

.single .post ul li,
.single .post ol li {
    margin: .5em 0;
}

.single .post a {
    color: #F98319;
    text-decoration: underline;
}

.wp-block-image {
    margin: 3em 0;
}

.wp-block-image.tight-block--small-margin {
  margin-top: 1em;
  margin-bottom: 1em;
}

@media screen and (min-width: 1230px) {
    .container__columns > * {
        flex-basis: 33.33%;
        max-width: 33.33%;
    }
}

.pagination {
    margin-bottom: 140px;
}

.pagination .nav-links {
    text-align: center;
}

.pagination .page-numbers {
    font-size: 18px;
    font-weight: 600;
    color: #616169;
    text-align: center;
    padding: .45em .72em;
    position: relative;
    margin: 0 .3em;
    transition: color .2s ease;
    cursor: pointer;
}

.pagination .page-numbers.next:before,
.pagination .page-numbers.prev:before {
    content: '';
    display: block;
    position: absolute;
    left: 100%;
    top: calc(50% - 8px);
    width: 14px;
    height: 14px;
    transform: rotate(45deg) translateY(3px);
    border-top: 2px solid;
    border-right: 2px solid;
}

.pagination .page-numbers.prev:before {
    left: initial;
    right: 100%;
    transform: rotate(-135deg);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    color: #F98319;
}

.pagination .page-numbers.current {
    background-color: rgba(247, 148, 59, .1);
    border-radius: 3px;
}

.footer__container {
    display: flex;
    flex-wrap: wrap;
    color: #A3A3A3;
}

.footer__widget {
    flex: 1 content;
    margin-bottom: 1em;
}

.footer__widget .widget__title {
    color: #fff;
}

.footer--blog {
    background-color: #000;
    padding: 80px 0 40px;
}

.footer--blog .widget__title {
    font-size: 16px;
    line-height: 1.4;
}

.widget .menu li {
    padding: 0;
    margin-bottom: 1em;
}

.footer--blog .logo {
    margin: 0 0 25px !important;
    width: 155px !important;
}

.footer__menu--blog {
    display: flex;
    margin-top: 2em !important;
}

@media screen and (max-width: 480px -1px) {
    .footer__menu--blog {
        flex-wrap: wrap;
    }
}

.footer__menu--blog li + li {
    margin-left: 2em;
}

.footer__menu--blog > * {
    padding: 0;
}

.footer--blog .menu-item a:hover {
    color: #F98319;
    transition: color .2s ease;
}

.blog .entry-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.typ:after, .typ:before,
.typ span:after, .typ span:before {
    display: none;
}


.header__layout #primary-menu .sub-menu {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    width: 100%;
    left: 0;
    color: #333;
    background: #fff;
    padding-bottom: 16px;
    -webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    -webkit-transition: all .15s ease-out;
    transition: all .15s ease-out;
    z-index: 2;
    border-color: rgba(0, 0, 0, 0.15);
}


.home .header__layout #primary-menu .menu-item-has-children:hover a {
    color: #333 !important;
}

.header__layout #primary-menu .menu-item-has-children:hover {
    background: #fff;
}

.header__layout #primary-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
}

.menu-item-has-children > .header-menu__item-link {
    padding-right: 32px;
}

.menu-item-has-children > .header-menu__item-link:after,
.menu-item-has-children > .header-menu__item-link:before {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: currentcolor;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    content: "";
    display: block;
    height: 1px;
    position: absolute;
    right: 14px;
    top: 55%;
    -webkit-transition-duration: .2s;
    transition-duration: .2s;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    width: 8px;
}

.menu-item-has-children > .header-menu__item-link:before {
    right: 20px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.menu-item-has-children > .header-menu__item-link:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.mobile-menu__wrapper .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: .3s;
    padding-left: 1em;
}



