/* Content adaptations for the existing home and news pages. */
.index-footer-bottom .index-con {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}

.index-footer-bottom .index-con::before,
.index-footer-bottom .index-con::after {
    display: none;
}

.index-footer-bottom p {
    margin: 0;
}

.index-footer-bottom .footer-products a:hover,
.index-footer-bottom .footer-products a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1199.98px) {
    .index-title h2 {
        font-size: clamp(52px, 7vw, 84px);
        padding: 20px 0;
    }
}

@media (max-width: 991.98px) {
    .index-con {
        padding-right: 24px;
        padding-left: 24px;
    }

    .index-about {
        margin-top: 36px;
    }

    .index-about .index-about-text,
    .index-about-pic {
        float: none;
        width: 100%;
    }

    .index-about-text p {
        font-size: 16px;
        line-height: 1.9;
    }

    .index-about-pic {
        margin-top: 28px;
        border-radius: 20px;
    }

    .index-about-pic img {
        height: auto;
    }

    .services-section,
    .overview-section,
    .blog-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2,
    .overview-content h2 {
        font-size: 32px;
        line-height: 1.45;
    }

    .overview-image,
    .overview-image-2 {
        margin-top: 28px;
    }

    #partners .overview-image {
        margin-top: 0;
        margin-bottom: 28px;
    }

    .index-footer {
        margin-top: 32px;
        padding-top: 40px;
    }

    .index-footer-info {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        align-items: start;
        gap: 24px;
        margin-bottom: 36px;
    }

    .index-footer-info::before,
    .index-footer-info::after {
        display: none;
    }

    .index-footer-info .logo,
    .index-footer-info .lianxi {
        float: none;
        width: auto;
        height: auto;
        margin: 0;
        min-width: 0;
    }

    .index-footer-info .logo img {
        width: 96px !important; /* Override the existing inline percentage. */
        max-width: 100%;
        height: auto;
    }

    .index-footer-info .lianxi p,
    .index-footer-bottom p {
        overflow-wrap: anywhere;
        line-height: 1.8;
    }

    .index-footer-bottom p {
        float: none;
        margin-bottom: 0;
        font-size: 13px;
    }

    .news-body {
        padding: 0 24px !important; /* Override the existing inline gutters. */
    }

    .news-body pre {
        margin: 0;
        overflow: visible;
        white-space: normal;
        overflow-wrap: anywhere;
        font-family: inherit;
        font-size: 16px;
        line-height: 1.9;
    }

    .news-body pre h1 {
        font-size: 26px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .news-body pre h2 {
        font-size: 22px;
        line-height: 1.5;
        margin: 24px 0 16px;
    }

    .news-body pre p {
        margin-bottom: 16px;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .news-body pre img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .news-body pre figure {
        margin: 20px 0;
    }

    .news-body pre .gary {
        line-height: 1.7;
    }
}

@media (max-width: 767.98px) {
    .index-con,
    .news-body {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .index-title h2 {
        font-size: clamp(42px, 10vw, 64px);
        letter-spacing: -1px;
        padding: 8px 0 16px;
    }

    .services-section,
    .overview-section,
    .blog-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .section-title h2,
    .overview-content h2 {
        font-size: 28px;
    }

    .services-section .section-title {
        margin-bottom: 16px;
    }

    .single-services-item {
        padding: 28px 24px;
        margin-top: 20px;
    }

    .overview-content .features-list {
        margin-right: -6px;
        margin-left: -6px;
    }

    .overview-content .features-list li {
        padding-right: 6px;
        padding-left: 6px;
    }

    .overview-content .features-list li span {
        padding: 12px 10px;
        font-size: 15px;
    }

    .blog-item .single-blog-item {
        padding: 22px;
    }

    .news-body pre h1 {
        font-size: 23px;
    }
}

@media (max-width: 479.98px) {
    .overview-content .features-list li {
        flex-basis: 100%;
        max-width: 100%;
    }

    .index-footer-info {
        grid-template-columns: minmax(0, 1fr);
    }

}
