/*
Theme Name: Flex Theme
Theme URI: 
Author: Tan Rain
Description:Flex Themes for wordpress all site
Version: 2.01
*/
body {
    --vh: 1vh;
    --lvh: 1vh;
    --svh: 1vh;
    font-weight: 500;
}

.ratio {
    display: block;
    position: relative;
    width: 100%;
}

.ratio::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.ratio>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.icon-plus {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(./assets/images/icon-plus.svg) no-repeat center center;
    background-size: contain;
}
.icon-minus {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(./assets/images/icon-minus.svg) no-repeat center center;
    background-size: contain;
}
.icon-up {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url(./assets/images/icon-up.svg) no-repeat center center;
    background-size: contain;
}

.autoplay-swiper {
    transition-timing-function: linear!important;
}
.autoplay-swiper:hover {
}

/**/
.paging-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
}

.paging-navigation .loop-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.paging-navigation .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #ADABA7;
    border: 1.5px solid transparent;
    border-radius: 100%;
}

.paging-navigation .page-numbers.current {
    border-color: #101010;
    color: #101010;
}
.paging-navigation .page-numbers.prev, .paging-navigation .page-numbers.next {
    font-size: 14px;
    line-height: 20px;
    color: #ADABA7;
}
/**/
.archive__list {}
.archive__list .grid--item {
position: relative;
}
.archive__item{
    &:hover {
        .archive__item--thumb + .archive__item--meta .archive__item--title>a {
            text-decoration: underline;
        }
    }
}
.archive__item--title a{
    &:hover {
        text-decoration: underline;
    }
}
@media (min-width: 1024px) {
   

    .archive__item--thumb {
        transition: all 0.3s ease;
      
        &:hover img{
            transform: scale(1.05);
        } 
        img {
            transition: all 0.3s ease;
        }
    }
    .archive__list .grid--item:nth-child(3) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(4) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(6) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(9) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(11) .archive__item--thumb img {
        aspect-ratio: calc(628/352);
    }
}
@media (max-width: 1023px) {
    
    .archive__list .grid--item:nth-child(2) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(7) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(10) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(12) .archive__item--thumb img,
    .archive__list .grid--item:nth-child(13) .archive__item--thumb img
    {
        aspect-ratio: calc(339/396  );
    }
}
/* Blog archive (dark layout) */
.archive-blog__tools {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.archive-blog__taxonomy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    order: 1;
}

.archive-blog__taxonomy-link {
    color: #D1D1D1;
    font-size: 40px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
}

.archive-blog__taxonomy-link.is-active {
    color: #101010;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.archive-blog__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    order: 2;
}

.archive-blog__toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.archive-blog__filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #101010;
    cursor: pointer;
}

.archive-blog__filter-toggle-sign {
    display: inline-block;
    min-width: 12px;
}

.archive-blog__search {
    display: flex;
    align-items: center;
    width: 302px;
    border: 1px solid #888888;
    border-radius: 4px;
    padding: 0 10px;
    height: 44px;
}

.archive-blog__search input {
    border: 0;
    background: transparent;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    color: #101010;
    outline: none;
}

.archive-blog__search input::placeholder {
    color: #b0ada7;
}

.archive-blog__search button {
    border: 0;
    background: transparent;
    color: #101010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.archive-blog__lang {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #888888;
    border-radius: 4px;
    @media screen and (max-width: 1023px) {
        padding: 2px;
    }
}

.archive-blog__lang .gtranslate_wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.archive-blog__lang #google_translate_element2 {
    display: none !important;
}

.archive-blog__lang .glink {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #6d6d6d;
    text-decoration: none;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    @media screen and (max-width: 1023px) {
        width: 31px;
        height: 31px;
    }
}

.archive-blog__lang .glink:hover,
.archive-blog__lang .glink:focus {
    color: #6d6d6d;
    text-decoration: none;
}

.archive-blog__lang .glink.gt-current-lang {
    font-weight: 700;
    color: #ffffff;
    background: #101010;
    border-radius: 4px;
}

.archive-blog .archive__item--meta-line a {
    color: inherit;
    text-decoration: none;
}

.archive-blog .post-categories a {
    color: inherit;
}

.archive-blog__empty {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
}

.archive-blog__empty-icon {
    color: #7c7a76;
    line-height: 0;
}

.archive-blog__empty-text {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    color: #1b1b1b;
}

@media (max-width: 1199px) {
    .archive-blog__tools {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .archive-blog__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .archive-blog__taxonomy-link {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .archive-blog__tools {
        gap: 12px;
    }

    .archive-blog__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        order: 1;
    }

    .archive-blog__search {
        width: 100%;
    }

    .archive-blog__toolbar {
        justify-content: space-between;
        width: 100%;
        gap: 12px;
    }

    .archive-blog__filter-toggle {
        display: inline-flex;
    }

    .archive-blog__taxonomy {
        display: none;
        order: 2;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .archive-blog__taxonomy::-webkit-scrollbar {
        display: none;
    }

    .archive-blog__tools.is-filter-open .archive-blog__taxonomy {
        display: flex;
    }

    .archive-blog__taxonomy-link {
        flex: 0 0 auto;
        font-size: 18px;
        line-height: 1.4;
        font-weight: 600;
        white-space: nowrap;
    }

    .archive-blog__taxonomy-link.is-active {
        text-decoration-thickness: 2px;
        text-underline-offset: 6px;
    }

    .archive-blog__empty {
        min-height: 280px;
    }

    .archive-blog__empty-text {
        font-size: 24px;
    }
}

/* Single blog related — horizontal scroll on mobile */
@media (max-width: 1023px) {
    .single-blog__related-wrap {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .single-blog__related-wrap::-webkit-scrollbar {
        display: none;
    }
}

/* Single blog sidebar */
.single-blog__sidebar-lang.archive-blog__lang {
}

.single-blog__sidebar-lang.archive-blog__lang .glink {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

/* Single blog */
/* .single-blog__content-inner > *:first-child {
    margin-top: 0;
}

.single-blog__content-inner > * + * {
    margin-top: 2rem;
    @media screen and (max-width: 1023px) {
        margin-top: 24px;
    }
}

.single-blog__content-inner p {
    margin: 0;
}

.single-blog__content-inner a {
    color: #101010;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-blog__content-inner img,
.single-blog__content-inner figure {
    max-width: 100%;
    height: auto;
}

.single-blog__content-inner .wp-block-image,
.single-blog__content-inner figure.wp-block-image {
    margin: 0;
}

.single-blog__content-inner .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.single-blog__content-inner .wp-block-gallery .wp-block-image {
    margin: 0;
}

.single-blog__content-inner .wp-block-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
} */

/* @media (max-width: 767px) {
    .single-blog__content-inner .wp-block-gallery {
        grid-template-columns: 1fr;
    }
} */

.post-categories a {
    color: #B0ADA7;
}

.hover-images {
    position: relative;
}

.hover-images__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.hover-images__slider img {
    transition: all ease-in-out 0.3s;
}

.hover-images:hover .hover-images__slider {
    opacity: 1;
}

/*Single content*/

.entry-content {
    font-size: 16px;
    line-height: 24px;
    color: #3D3D3D;
}
.entry-content div {
    max-width: 100%;
}

.entry-content p, .entry-content ul, .entry-content blockquote, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    margin-bottom: 32px;
    @media screen and (max-width: 1023px) {
        margin-bottom: 24px;
    }
}

.entry-content h2 {
    font-size: 24px;
    line-height: 36px;
    @media screen and (max-width: 1023px) {
        font-size: 20px;
        line-height: 30px;
    }
}
.entry-content h3 {
    font-size: 20px;
    line-height: 32px;
    @media screen and (max-width: 1023px) {
        font-size: 18px;
        line-height: 28px;
    }
}
.entry-content h4 {
    font-size: 18px;
    line-height: 28px;
    @media screen and (max-width: 1023px) {
        font-size: 16px;
        line-height: 24px;
    }
}
.entry-content h5 {
    font-size: 16px;
    line-height: 24px;
    @media screen and (max-width: 1023px) {
        font-size: 14px;
        line-height: 20px;
    }
}
.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content img, .entry-content figure.wp-caption {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.entry-content div.wp-caption {
    margin: 28px 0;
}
.entry-content .wp-caption-text {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    font-weight: normal;
}

.entry-content img + img {
    margin-bottom: 1rem;
}

.entry-content address p, .entry-content address p {
    margin-bottom: 5px;
}

.entry-content a {
    transition: 0.5s;
}

.entry-content a:hover {
    color: rgb(6, 72, 167);
}

.entry-content figcaption {
    width: 100%;
    text-align: center;
    padding: 10px 0px 0px;
    font-style: italic;
}

.entry-content img.alignright {
    float: right;
    margin: 0px 0px 1em 1em;
}

.entry-content img.alignleft {
    float: left;
    margin: 0px 1em 1em 0px;
}

.entry-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content ol, .entry-content ul {
    padding-left: 15px;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content::after {
    content: "";
    clear: both;
    display: table;
}

.entry-content table {
    width: 100%;
    margin-bottom: 1rem;
}

.entry-content table td, .entry-content table th {
    border: 1px solid rgb(115, 116, 118);
}

.entry-content table td, .entry-content table th {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid rgb(115, 116, 118);
}

.entry-content blockquote {
    position: relative;
    padding: 0px 40px;
    color: rgb(0, 0, 0);
    margin-top: 16px;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0px;
}

.entry-content blockquote::before {
    content: "";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    display: inline-block;
    font-feature-settings: normal;
    font-style: normal;
    font-synthesis: none;
    font-variant: normal;
    -webkit-font-smoothing: antialiased;
    width: 20px;
    line-height: 1;
    text-align: center;
    text-rendering: auto;
    position: absolute;
    left: 0px;
    top: 0px;
    font-size: 30px;
    color: rgb(31, 31, 31);
}

.gallery {
    display: grid;
    gap: 16px;
}

.gallery-item {
    margin-bottom: 0px;
}

.gallery-icon a {
    --bs-aspect-ratio: calc(3 / 4 * 100%);
    position: relative;
    display: block;
    text-align: center;
}

.gallery-icon a > * {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    object-fit: cover;
    height: 100% !important;
}

.gallery-icon a::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
}

.gallery-columns-3 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

@media (max-width: 767px) {
    .entry-content blockquote {
        padding: 48px 32px;
    }
}

/**/
.size-full {
    width: 100%;
    height: auto !important;
}


.blinking-colon {
    animation: blink 2s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/**/
.form-subscription {}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #23232329;
}

/**/
.about-3box .about-3box-item:nth-child(3n+1):hover {
    background: #c0c5ff;
}

.about-3box .about-3box-item:nth-child(3n+2):hover {
    background: #e6ff80;
}

.about-3box .about-3box-item:nth-child(3n):hover {
    background: #bdffd3;
}
@media (max-width: 1199px) {
    .about-3box .about-3box-item:not(:nth-child(1)) {
        position: absolute;
        top: 0;
        left: 0;
    }
    .about-3box .about-3box-item:nth-child(3n+1) {
        background: #FFC526;
    }
    
    .about-3box .about-3box-item:nth-child(3n+2) {
        background: #81CFB8;
    }
    
    .about-3box .about-3box-item:nth-child(3n) {
        background: #AFBD4B;
    }
}

.funfact-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: -58px;
    width: 148px;
    background: #E4C7FE;
    z-index: 1;
    padding: 16px;
    right: 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 20px;
}

.funfact-content.active {
    display: block;
}
.funfact-close {
    margin-top: 10px;
}

/**/
/**/
.copy:before, .copied:before {
    content: "";
    position: absolute;
    background: inherit;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    bottom: -5px;
    left: 0;
    right: 0;
    margin: 0 auto;
}
/**/
.hover-border-bottom {
    position: relative;
}
.hover-border-bottom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: all 0.3s;
}
.hover-border-bottom:hover:after {
    width: 100%;
}

/*Page contact*/
.contect-job-list {

}
.contect-job-list .item:first-child {
    border-top: 1px solid #ADABA7;
}
.contect-job-list .item{
    border-bottom: 1px solid #ADABA7;
}
.contect-job-list .navigation {
    margin-top: 20px;
}

/**/
.about-3box-list {
    overflow: visible;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1160px !important;
    }
}

/**/
.single .related__slider .swiper {
    padding: 0 18px;
    margin: 0 -18px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1280px !important;
    }
}

@media (max-width: 1024px) {
    .mobile-nav-wrap {
        color: #101010;
    }
    .page-template-template-about header:not(.scrolled) .mobile-wrap img, .postid-38 header:not(.scrolled) img, .postid-36 header:not(.scrolled) img {
        filter: brightness(1) invert(0);
    }
    header.is-sticky.top-show .mobile-wrap svg{
        filter: brightness(1) invert(0);
    }

    .contact-works .wpcf7-checkbox {
        gap: 10px;
    }
    .contact-works .wpcf7-list-item-label {
        padding: 9px 12px;
        font-size: 18px;
        line-height: 24px;
    }
    .page-contact-form input, .page-contact-form textarea {

        font-size: 18px;
        line-height: 24px;
    }
    .checkbox-sing-up {
        margin-bottom: 24px;
    }

    .about-service .list-service .item.topLeft .shape {
        top: -58%;
        transform: scaleX(-1);
        left: 66%;
        width: 62px;
    }
    .about-service .list-service .item.right .shape {
        width: 32px;
    }
    .about-service .list-service .item:nth-child(4).right .shape { 
        width: 34px;
        top: -37%;
        left: 100%;
    }
    .about-service .list-service .item.left .shape {
        top: -7%;
        right: -16%;
        transform: scaleX(-1);
        width: 26px;
    }
    .about-service .list-service .item.bottomLeft .shape {
        width: 61px;
        top: 29%;
        left: 110%;
    }

    .image-box3col-section .image-box3col-section-list{
        overflow: auto;
        margin: 0 -18px;
        padding: 0 18px;
    }
    .image-box3col-section .image-box3col-section-list::-webkit-scrollbar {
        display: none;
    }
    .image-box3col-section .image-box3col-section-list li{
        width: 224px;
        flex: 0 0 auto;
    }

    .team-member .thoughtful:before {
        height: 14px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    .philosophy .left-brain1:before {
        width: 42px;
        height: 4px;
    }
    .philosophy .left-brain2:before {
        width: 59px;
        height: 5px;
        margin: auto;
        left: 0;
        right: 0;
    }
    .philosophy .right-brain1:before {
        width: 64px;
        height: 15px;
    }
    .philosophy .right-brain2:before {
        width: 84px;
        height: 11px;
    }
}