/* Font size */
@media screen and (max-width: 768px) {
    h1,
    .h1 {
        font-size: 40px;
        line-height: 48px;
    }

    h2,
    .h2 {
        font-size: 32px !important;
        line-height: 40px !important;
    }

    h3,
    .h3 {
        font-size: 26px;
        line-height: 34px;
    }

    h4,
    .h4 {
        font-size: 22px;
        line-height: 30px;
    }

    h5,
    .h5 {
        font-size: 18px;
        line-height: 26px;
    }

    h6,
    .h6 {
        font-size: 16px;
        line-height: 24px;
    }

    p {
        font-size: 14px;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    h1,
    .h1 {
        font-size: 32px;
        line-height: 40px;
    }

    h2,
    .h2 {
        font-size: 28px !important;
        line-height: 36px !important;
    }
}


.site-logo {
    position: relative;
    max-width: 150px;
    top: unset!important;
    left: unset!important;
}

.header {
    position: relative;
}

.header-innner-wrap {
    margin-left: unset;
    margin-right: unset;
    gap: 39px;
}

.mobile-button {
    top: 50%;
    width: 30px;
    height: 30px;
}

.header-inner {
    margin-left: unset;
    margin-right: unset;
}

#header_main.is-fixed .header-inner .site-logo img {
    width: 90%;
}

#header_main.is-fixed .header-inner .site-logo {
    left: 20px!important;
}

#header_main.is-fixed .header-inner {
    background: var(--bg-main);
}

.menu-primary-menu > li a {
    font-family: 'WPro', sans-serif;
    letter-spacing: normal;
}

.footer-middel .footer-menu-list .title {
    font-family: 'WPro', sans-serif;
    font-weight: 700;
}

.tf-btn-default {
    font-family: 'WPro', sans-serif;
}

@media (max-width: 1150px) {
    .header-innner-wrap {
        padding-top: 0;
    }
    .site-logo img {
        max-width: 80% !important;
    }
}

/* Hero Video Section Styles */
.tf-hero-video {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height, 100px)); /* Subtract header height */
    overflow: hidden;
}

.tf-hero-video .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.tf-hero-video #youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none; /* Prevents clicks on the video */
}

.tf-hero-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1; /* Ensure overlay is above the video */
}

.tf-hero-video .overlay-content {
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.tf-hero-video .overlay-content h1 {
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tf-hero-video .overlay-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .tf-hero-video .overlay-content h1 {
        font-size: 2.5rem;
        line-height: 1;
    }
    
    .tf-hero-video .overlay-content p {
        font-size: 1.2rem;
    }
} /* /Hero video section */

/* Link-box */
.tf-link-box {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.tf-link-box::before {
    content: "";
    display: block;
    padding-top: 100%; /* This creates a 1:1 aspect ratio */
}
.tf-link-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all linear .3s;
    aspect-ratio: 1/1;
}

.tf-link-box .text {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px;
    color: #fff;
    text-transform: uppercase;
}

.tf-link-box .text span {
    font-size: 20px;
}

.tf-link-box .text h3 {
    color: #fff;
    font-weight: 700;
}

.tf-link-box a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tf-link-box:hover img{
    transform: scale(1.1);
} 
.tf-link-box.box-16-9::before {
    content: "";
    display: block;
    padding-top: 62%; /* This creates a 16:9 aspect ratio */
}
.tf-link-box.align-center-text .text {
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    bottom: unset;
}/* /Link-box */

/* About section */
.tf-about {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tf-about .tf-link-box {
    width: calc(50% - .5rem);
}

@media screen and (max-width: 768px) {
    .tf-about .tf-link-box {
        width: 100%;
    }
} /* /About section */

.section .title * {
    color: #fff!important;
}

.section .title {
    max-width: 75%;
}

@media screen and (max-width: 768px) {
    .section .title {
        max-width: 100%;
    }
}

/* Project categories section */
.tf-project-categories .tf-link-box {
    margin-bottom: 30px;
}

.tf-project-categories .tf-link-box .text {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
}

.tf-project-categories .tf-link-box h3 {
    font-weight: 400;
    font-size: 1.5rem;
    text-align: center;
    line-height: 1.5
} /* /Project categories section */

/* Project images section */
.tf-project-images .list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-project-images .list a {
    width: calc(50% - 5px);
    display: block;
}

.tf-project-images .list img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .tf-project-images .list img {
        width: 100%;
    }
} /* /Project images section */

/* Testimonials section */
.tf-testimonials .wg-testimonial {
    background-color: unset;
} /* /Testimonials section */

/* Catalog section */
.tf-catalog .items > * {width: 50%;}

@media screen and (max-width: 768px) {
    .tf-catalog .items > * {width: 100%;}
    .tf-catalog .items {gap: 1rem;}
}

/* Blog section */
.blog-item .img{
    display: block;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding-top: 65%;
    position: relative;
}

.blog-item .img img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    height: 100%;
    object-fit: cover;
}

.blog-item .text {
    text-align: center;
}

.blog-item h3 {
    line-height: 1;
    font-size: 16px;
    margin: 10px 0;
}

.blog-item h3 a{
    color: #fff;
    font-size: 1.8rem;
}

.blog-item span {
    color: var(--color-text);
}


.tf-blogs .slider-testimonial-next {
    right: -40px
}

.tf-blogs .slider-testimonial-prev {
    left: -40px
}

.preload-container .middle {
    margin: -45px 0 0 -80px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .footer-top .social-list .social-item a {
        font-size: 10px;
    }
    .wg-testimonial .testimonial-item .text {
        font-size: 14px;
        line-height: 1.5;
    }
    .tf-link-box .text span {
        font-size: 14px;
    }
}

.testimonial-item .text, .testimonial-item .name a {
    font-family: 'Mansory', sans-serif;
}

.footer-top .title-footer h2 a {
    font-family: 'WPro', sans-serif;
}

#menu-mobile li a {
    font-family: 'WPro', sans-serif;
}

body {
    color: #fff;
}

/* Menu page */
.menu-page {
 display: flex;
 gap: 10px;
 justify-content: center;   
 flex-wrap: wrap;
}

.menu-page .menu-item a {
    color: #fff;
    border: 1px solid #888888;
    padding: 6px 20px;   
    display: block;
    text-transform: uppercase;
}
.menu-page .menu-item a:hover,
.menu-page .menu-item.current-menu-item a {
    border-color: #fff;
}

.content-title {
    font-size: 30px;
    line-height: 45px;
}

.project-item .thumb{
    display: block;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding-top: 65%;
    position: relative;
}

.project-item .thumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    height: 100%;
    object-fit: cover;
}

.project-item .project-info {
    padding: 10px;
    text-align: center;
}

.project-item .project-info h3 {
    font-size: 20px;
    line-height: 1.5;
}

.project-item .project-info span {
    color: var(--color-text);
    font-size: 14px;
}

.project-item .project-info h3 a {
    color: #fff;
}

/* Projects */
.projects-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.projects-list .project-item {
    width: calc(50% - 5px);
}

@media screen and (max-width: 768px) {
    .projects-list .project-item {
        width: 100%;
    }

    .pb-60 {
        padding-bottom: 30px!important;
    }

    .content-title {
        font-size: 20px;
        line-height: 30px;
    }
}

/* Post content */
.wyswyg-content > * {
    margin-bottom: 1.5rem;
}
.wyswyg-content ul {
    padding-left: 20px;
    list-style: square;   
}

.wyswyg-content ul li {
    list-style: square;
    line-height: 2;
    color: #000;
}

.wyswyg-content ul li strong {
    color: #fff;
}

.wyswyg-content ul li:has(strong) {
    margin-bottom: 10px;
}

.wyswyg-content .imgPop {
    display: block;
    width: 100%;
    height: auto;;
}

.sharing  {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 30px;
    flex-wrap: wrap;
}

.sharing ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.sharing ul li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sharing ul li a {
    width: max-content;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #888888;
    color: #888888;
}

.sharing ul li a:hover {
    background-color: #888888;
    color: #fff;
}

.sharing ul li a span {
    margin-right: 5px;
}

.line {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--Border-2);
    margin: 30px 0;
}

.page-showrooms .project-item .thumb {
    padding-top: 100%;
}

.list-product-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.list-product-images .product-image {
    width: calc(50% - 5px);
}

@media screen and (max-width: 768px) {
    .list-product-images .product-image {
        width: 100%;
    }
}

.list-product-images .product-image .imgPop {
    display: block;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding-top: 100%;
    position: relative;
}

.list-product-images .product-image .imgPop img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    height: 100%;
    object-fit: cover;
}

/* Post sidebar */
.post-sidebar {
    position: relative;
}

.post-sidebar.sticky {
    position: fixed;
    top: 95px; /* Increased from 20px to account for fixed header height (75px) plus some spacing */
    width: inherit; /* Maintain the same width as the parent */
    max-width: inherit; /* Ensure it doesn't exceed parent width */
}
.post-sidebar .title {
    font-weight: bold;
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 1rem;
    display: block;
}

@media screen and (max-width: 768px) {
    .post-sidebar {
        margin-top: 30px;
    }
}

.post-sidebar .wposts li {
    margin-bottom: 1rem;
}

.post-sidebar .wposts a {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-sidebar .wposts a img {
    width: 20%;
    height: auto;
    object-fit: cover;
}

.post-sidebar .wposts a .right {
    width: calc(100% - 20% - 10px);
    font-size: 13px;
    color: #fff;
}

.post-sidebar .wposts a .right .date{
    display: block;
    color: var(--color-text);
    margin-top: 5px;
}

/* Contact page */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.contact-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../image/contact-bg.webp);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    z-index: -1;
}

.contact-wrapper .item {
    background: #fff;
    flex: 0 0 33.333%; /* Each item takes up 1/3 of the container width */
    max-width: 33.333%; /* Ensure items don't exceed 1/3 of the width */
    box-sizing: border-box;
    text-align: center;
    padding: 2rem;
}

.contact-wrapper .item.info {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: transparent;
    justify-content: center;
}

.contact-wrapper .item.info .inner > * {
    display: block;
    margin-bottom: 1rem;
    color: #fff!important
}

.contact-wrapper .item.info .inner .hotline {
    display: block;
    color: #fff!important;
    font-size: 30px;
    font-weight: bold;
    margin-top: 20px;
    font-family: 'WPro', sans-serif;
}

.contact-wrapper .item.online {
    border-left: 1px solid #888888;
}

.contact-wrapper .item.info .inner {
    text-align: center;
}

.contact-wrapper .item .title {
    color: var(--color-text);
    font-size: 18px;
    line-height: 27px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-wrapper .item form input[type=text],
.contact-wrapper .item form input[type=email],
.contact-wrapper .item form input[type=tel],
.contact-wrapper .item form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #888888;
    border-radius: 5px;
    color: #888888;
}

.contact-wrapper .item form button {
    width: 100%;
    padding: 10px;
    border: 1px solid #888888;
    border-radius: 5px;
    color: #fff;
    background: #888888;
    font-size: 14px;
    line-height: 28px;
}

.contact-wrapper .contact-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-wrapper .contact-items .fb {
    width: calc(50% - 5px);
    display: block;
    background-color: #1e73be;
    padding: 1rem;
    color: #fff;
}

.contact-wrapper .contact-items .fb span:first-child {
    display: block;
    height: auto;
    object-fit: cover;
    font-size: 30px;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-wrapper .contact-items .fb span.name {
    font-size: 12px;
}

@media screen and (max-width: 768px) {
    .contact-wrapper .item {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Fixed */
@media screen and (max-width: 768px) {
    #menu-mobile li.menu-item-has-children-mobile > a::after {
        width: auto!important;
    }
}
    
.wyswyg-content ul.menu-page li {
    list-style: none;
}

.wyswyg-content ul.menu-page  {
    padding-left: 0;
}

@media screen and (max-width: 768px) {
    .menu-page .menu-item a {
        font-size: 12px;
        padding: 3px 6px;
    }
    .wyswyg-content ul.menu-page {
        gap: 5px;
    }
}

.meta {
    justify-content: left
}

.wyswyg-content h2 {
    font-size: 25px!important;
    line-height: 35px!important;
}

.wyswyg-content h3 {
    font-size: 20px!important;
    line-height: 30px!important;
}

.wyswyg-content h4 {
    font-size: 18px!important;
    line-height: 28px!important;
}

.wyswyg-content h5 {
    font-size: 16px!important;
    line-height: 26px!important;
}

.wyswyg-content h6 {
    font-size: 14px!important;
    line-height: 24px!important;
}

.related-items .project-item h3 {
    font-size: 16px!important;
    line-height: 24px!important;
    margin-bottom: 10px;
}

.meta {
    flex-direction: unset;
}
.wpcf7 form .wpcf7-response-output {
    color: #000;
}

.search-results .item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #888888;
    padding-bottom: 10px;
    color: #fff;
    align-items: center;
}

.search-results .item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.search-results .item .right {
    width: calc(100% - 120px - 10px);
}

.search-results .item .right span {
    display: block;
}

.search-results .item .right .name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.search-key {
    text-align: center;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .search-results .item img {
        width: 60px;
        height: 60px;
    }
    .search-results .item .right {
        width: calc(100% - 60px - 10px);
    }

    .search-results .item .right .name {
        font-size: 14px;
    }
    .search-results .item .right .date {
        font-size: 13px;
    }
}

.wg-404 {
    height: auto;
}

.wg-404 .content {
    padding: 60px 0;
}

.wg-404 .content .sub-title, .tf-btn {
    font-family: 'WPro', sans-serif;
}

/* Fix CSS phase 1 */
body {
    background-color: #fff;
    color: #000;
}

.menu-primary-menu > li a,
.header-innner-wrap .header-right .header-icon i,
.section .title *,
.testimonial-item .text,
.blog-item h3 a,
.content-title {
    color: #000!important
}

.mobile-button::after, .mobile-button::before, .mobile-button span {
    background-color: #000;
}

#header_main.is-fixed .header-inner {
    background: #fff;
}

.footer-menu-list {
    color: #fff;
}

.menu-page .menu-item a,
.wyswyg-content ul li strong,
.project-item .project-info h3 a {
    color: #000
}

.menu-page .menu-item a:hover, .menu-page .menu-item.current-menu-item a {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.related-project-title,
.wyswyg-content h3,
.meta .meta-item .text {
    color: #000;
}

.wp-block-table .has-fixed-layout td, .wp-block-table .has-fixed-layout th{
    color: #111;
}

.menu-page .menu-item a, .wyswyg-content ul li strong, .project-item .project-info h3 a {
    line-height: 1.2;
    margin-bottom: 1rem;
    display: block;
}

.post-sidebar .wposts a > * {
    color: #000!important;
}

.contact-wrapper {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 10px;
    overflow: hidden;
}

.header {
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

.menu-primary-menu li:hover .sub-menu {
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
}

.wgl-striped-services {
    display: flex;
    flex-direction: row;
    height: 800px;
}

.wgl-striped-services .service-item {
    width: 50%;
    height: 100%;
    transition: .5s;
    background-repeat: no-repeat;
}

.wgl-striped-services .service-item.active {
    width: 75%;
}

.wgl-striped-services .service-item .service-item_link {
    width: 100%;
    height: 100%;
    display: block;
}

.wgl-striped-services .service-item_content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.wgl-striped-services .service-item_title {
    font-size: 48px;
    line-height: 1.3;
}

.wgl-striped-services .service-item_subtitle {
    font-size: 15px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-top: 14px;
}

.wgl-striped-services .service-item_subtitle {
    color: #fff;
}

@media screen and (max-width: 768px) {
    .wgl-striped-services {
        height: 750px;
        flex-direction: column;
    }
    .wgl-striped-services .service-item {
        width: 100%;
        height: 50%;
        display: flex;
        flex: 3;
    }

    .wgl-striped-services .service-item.active {
        width: 100%;
        height: 75%;
        flex: 5;
    }
}

.tf-project-images .list a {
    position: relative;
    overflow: hidden;
}

.tf-project-images .list a::before {
    content: "";
    display: block;
    padding-top: 100%;  
}

.tf-project-images .list a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all linear .3s;
    aspect-ratio: 1 / 1;
}

@media screen and (min-width: 1200px) {
    .menu-primary-menu > li a {font-size: 20px;}
    .sub-menu {min-width: max-content;}
}