.kinasmart-language-widget-title {
    font-family: Inter, Poppins, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.kinasmart-project-grid,
.kinasmart-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

.kinasmart-project-grid .grid-item,
.kinasmart-product-grid .grid-item,
.kinasmart-project-slide {
    position: relative !important;
    min-height: 285px !important;
    overflow: hidden !important;
    background: #111 !important;
}

.kinasmart-project-grid .grid-item a,
.kinasmart-product-grid .grid-item a,
.kinasmart-project-slide a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    text-decoration: none !important;
}

.kinasmart-project-grid .grid-item img,
.kinasmart-product-grid .grid-item img,
.kinasmart-project-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.kinasmart-project-grid .overlay,
.kinasmart-product-grid .overlay,
.kinasmart-project-slide .overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.38)) !important;
}

.kinasmart-project-grid .overlay-text,
.kinasmart-product-grid .overlay-text,
.kinasmart-project-slide .overlay-text {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    z-index: 2 !important;
    transform: translateX(-50%) !important;
    min-width: 170px !important;
    max-width: calc(100% - 44px) !important;
    margin: 0 !important;
    padding: 14px 22px !important;
    background: rgba(255,255,255,0.96) !important;
    color: #ea4e1b !important;
    font-family: Poppins, Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 3px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18) !important;
    white-space: normal !important;
}

.kinasmart-product-replacement {
    max-width: 1140px;
    margin: 48px auto 20px;
    padding: 0 15px;
}

.page-id-5319 #custom-load-more,
.page-id-4497 #custom-load-more,
.page-id-4495 #custom-load-more {
    display: none !important;
}

.kinasmart-project-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.kinasmart-project-carousel-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.kinasmart-project-carousel-track::-webkit-scrollbar {
    display: none;
}

.kinasmart-project-slide {
    flex: 0 0 calc((100% - 66px) / 4);
}

.kinasmart-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border: 1px solid #ea4e1b;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    color: #ea4e1b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.kinasmart-carousel-prev {
    left: 12px;
}

.kinasmart-carousel-next {
    right: 12px;
}

.kinasmart-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.kinasmart-service-card {
    overflow: hidden;
    background: #ea4e1b;
}

.kinasmart-service-image {
    display: block;
    width: 100%;
    height: 295px;
    overflow: hidden;
    background: #111;
}

.kinasmart-service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.kinasmart-service-content {
    min-height: 140px;
    padding: 0 22px 22px;
    background: #ea4e1b;
    color: #fff;
}

.kinasmart-service-title {
    margin: 0;
    padding: 0 0 10px;
    color: #fff;
    font-family: Poppins, Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.kinasmart-service-title a {
    color: inherit;
    text-decoration: none;
}

.kinasmart-service-text {
    color: #fff;
    font-family: Poppins, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.kinasmart-service-text p {
    margin: 0 0 8px;
}

.kinasmart-jet-replacement {
    width: 100%;
}

.ks-footer-main-menu ul,
.ks-footer-legal-menu ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ks-footer-legal-menu ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
}

.ks-footer-main-menu a,
.ks-footer-legal-menu a {
    color: #fff !important;
    text-decoration: none;
}

.ks-footer-main-menu a:hover,
.ks-footer-legal-menu a:hover {
    color: #ea4e1b;
}

.ks-footer-legal-menu {
    display: flex;
    align-items: center;
    min-height: 28px;
}

.elementor-element-4cd4281 .elementor-container {
    align-items: center !important;
}

.elementor-element-4cd4281 .elementor-widget-wrap {
    align-content: center !important;
    align-items: center !important;
}

.elementor-element-4cd4281 .elementor-widget-container,
.elementor-element-4cd4281 .elementor-widget-container a,
.elementor-element-4cd4281 .ks-footer-legal-menu a {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 28px !important;
}

.elementor-element-4cd4281 .ks-footer-legal-menu,
.elementor-element-4cd4281 .ks-footer-legal-menu ul,
.elementor-element-4cd4281 .elementor-social-icons-wrapper {
    min-height: 28px !important;
    align-items: center !important;
}

.elementor-element-4cd4281 .elementor-element-7906eb3 .elementor-widget-container,
.elementor-element-4cd4281 .elementor-element-7906eb3 .elementor-widget-container a,
.elementor-element-4cd4281 .elementor-widget-nav-menu .elementor-widget-container,
.elementor-element-4cd4281 .elementor-widget-nav-menu .elementor-widget-container nav,
.elementor-element-4cd4281 .elementor-widget-nav-menu .elementor-widget-container ul,
.elementor-element-4cd4281 .elementor-widget-nav-menu .elementor-widget-container li,
.elementor-element-4cd4281 .elementor-widget-nav-menu .elementor-widget-container a {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    vertical-align: middle !important;
}

.elementor-element-4cd4281 .ks-footer-legal-menu ul {
    gap: 0 24px !important;
}

.ks-mobile-fallback {
    display: none;
}

.single-projetos .main-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-projetos .re-theme-post {
    margin: 0 !important;
    padding: 0 !important;
}

.single-projetos .post-media,
.single-projetos .post-header,
.single-projetos .post-footer {
    display: none !important;
}

.single-projetos .post-content {
    margin: 0 !important;
    padding: 0 !important;
}

.ks-project-detail {
    width: 100%;
    padding: 142px 0 70px;
    background: #fff;
}

.ks-project-detail-inner {
    width: min(1140px, calc(100% - 48px));
    margin: 0 auto;
}

.ks-project-back {
    display: inline-flex;
    margin-bottom: 28px;
    color: #ea4e1b !important;
    font-family: Poppins, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ks-project-back:hover {
    color: #555 !important;
}

.ks-project-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    gap: 58px;
    align-items: center;
}

.ks-project-brand {
    margin: 0 0 18px;
    color: #ea4e1b;
    font-family: Poppins, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
}

.ks-project-detail h1 {
    margin: 0 0 30px;
    color: #20242a;
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(42px, 6vw, 74px);
    font-weight: 700;
    line-height: 1.05;
}

.ks-project-subtitle {
    margin: -16px 0 16px;
    color: #666;
    font-family: Poppins, Arial, sans-serif;
    font-size: 21px;
    font-style: italic;
    line-height: 1.5;
}

.ks-project-location {
    margin: 0;
    color: #ea4e1b;
    font-family: Poppins, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.ks-project-description-block {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
    gap: 44px;
    margin-top: 74px;
    align-items: start;
}

.ks-project-description-block h2,
.ks-project-featured-products h2 {
    margin: 0 0 12px;
    color: #ea4e1b;
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.1;
}

.ks-project-description {
    color: #666;
    font-family: Poppins, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

.ks-project-description p {
    margin: 0 0 14px;
}

.ks-project-description-extra {
    grid-column: 2;
    color: #666;
    font-family: Poppins, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

.ks-project-detail-image {
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

.ks-project-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-project-gallery,
.ks-project-product-gallery,
.ks-project-related-carousel {
    margin-top: 58px;
}

.ks-project-gallery .kinasmart-project-carousel-track,
.ks-project-product-gallery .kinasmart-project-carousel-track,
.ks-project-related-carousel .kinasmart-project-carousel-track {
    gap: 24px;
    scroll-snap-type: x mandatory;
}

.ks-project-gallery .kinasmart-project-slide,
.ks-project-product-gallery .kinasmart-project-slide,
.ks-project-related-carousel .grid-item {
    scroll-snap-align: start;
}

.ks-project-gallery .kinasmart-project-slide {
    flex: 0 0 calc((100% - 48px) / 3);
}

.ks-project-product-gallery .kinasmart-project-slide {
    flex: 0 0 calc((100% - 72px) / 4);
}

.ks-project-related-carousel .grid-item {
    flex: 0 0 calc((100% - 72px) / 4);
}

.ks-project-gallery figure,
.ks-project-product-gallery figure {
    margin: 0;
    overflow: hidden;
    background: #f2f2f2;
    aspect-ratio: 4 / 3;
}

.ks-project-product-gallery figure {
    background: #fff;
    border: 1px solid #eee;
}

.ks-project-gallery img,
.ks-project-product-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-project-product-gallery img {
    object-fit: contain;
    padding: 18px;
}

.ks-project-featured-products {
    margin-top: 76px;
}

.ks-project-featured-products h2 {
    text-align: center;
}

.ks-project-related {
    margin-top: 76px;
}

.ks-project-related h2 {
    margin: 0 0 34px;
    color: #ea4e1b;
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.ks-project-final-cta {
    margin: 78px auto 0;
    max-width: 760px;
    text-align: center;
    color: #666;
    font-family: Poppins, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
}

.ks-project-final-cta p {
    margin: 0 0 10px;
}

.ks-project-final-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 48px;
    margin-top: 18px;
    padding: 12px 24px;
    border: 1px solid #ea4e1b;
    border-radius: 3px;
    color: #ea4e1b !important;
    font-family: Poppins, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.ks-project-final-cta a:hover {
    background: #ea4e1b;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .kinasmart-project-grid,
    .kinasmart-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .kinasmart-project-slide {
        flex-basis: calc((100% - 22px) / 2);
    }

    .ks-mobile-fallback:not([hidden]) {
        display: block;
    }

    .ks-mobile-fallback-toggle {
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 100001;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid #ea4e1b;
        border-radius: 50%;
        background: rgba(255,255,255,0.94);
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
        cursor: pointer;
    }

    .ks-mobile-fallback-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        margin: 0 auto;
        background: #ea4e1b;
    }

    .ks-mobile-fallback-panel {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 100000;
        width: min(82vw, 320px);
        padding: 84px 28px 28px;
        background: rgba(255,255,255,0.98);
        box-shadow: 14px 0 30px rgba(0,0,0,0.18);
    }

    .ks-mobile-fallback-panel ul {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ks-mobile-fallback-panel a {
        color: #222;
        font-family: Poppins, Arial, sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
    }

    .ks-mobile-fallback-panel a:hover {
        color: #ea4e1b;
    }
}

@media (max-width: 640px) {
    .kinasmart-project-grid,
    .kinasmart-product-grid,
    .kinasmart-service-grid {
        grid-template-columns: 1fr !important;
    }

    .kinasmart-project-slide {
        flex-basis: 82%;
    }

    .kinasmart-service-image {
        height: 240px;
    }

    .ks-project-detail {
        padding-top: 104px;
    }

    .ks-project-detail-inner {
        width: min(100% - 28px, 1140px);
    }

    .ks-project-hero,
    .ks-project-description-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ks-project-description-extra {
        grid-column: auto;
    }

    .ks-project-gallery .kinasmart-project-slide,
    .ks-project-product-gallery .kinasmart-project-slide,
    .ks-project-related-carousel .grid-item {
        flex-basis: 82%;
    }

    .ks-project-detail h1 {
        font-size: 40px;
    }

    .ks-project-description {
        font-size: 16px;
    }
}
