/* Static multipage additions: no browser scripts. */
.directory-link {
    display: block;
    border-radius: 26px;
    background: #f7f7f7;
    color: #999;
    font-size: 13px;
    padding: 12px 16px
}

.directory-link span {
    font-size: 20px;
    margin-right: 8px
}

.footer-services a {
    font-size: 12px;
    color: #777
}

.footer-services a:hover {
    color: var(--red)
}

.mobile-menu {
    display: none
}

.css-banner .slide {
    visibility: hidden;
    opacity: 0
}

.css-banner #banner-1:checked~.slide-1,.css-banner #banner-2:checked~.slide-2,.css-banner #banner-3:checked~.slide-3 {
    visibility: visible;
    opacity: 1
}

.banner-choice {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    bottom: 15px;
    left: 50%
}

.css-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    align-items: center;
    height: 20px
}

.css-dots label {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 20px;
    background: #fff;
    position: relative;
    cursor: pointer
}

.css-dots label:after {
    content: '';
    position: absolute;
    inset: -9px -3px
}

.css-banner #banner-1:checked~.css-dots label[for=banner-1],.css-banner #banner-2:checked~.css-dots label[for=banner-2],.css-banner #banner-3:checked~.css-dots label[for=banner-3] {
    width: 40px
}

.css-banner #banner-1:focus-visible~.css-dots label[for=banner-1],.css-banner #banner-2:focus-visible~.css-dots label[for=banner-2],.css-banner #banner-3:focus-visible~.css-dots label[for=banner-3] {
    outline: 2px solid white;
    outline-offset: 6px
}

.banner-arrow {
    cursor: pointer
}

.section-more {
    text-align: center;
    margin-top: 30px
}

.home-contact {
    color: white;
    padding: 5px 7% 20px
}

.home-contact h3 {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 22px
}

.home-contact p {
    line-height: 2;
    margin-bottom: 28px;
    font-size: 14px
}

.inner-banner img {
    width: 100%;
    height: auto;
    display: block
}

.section-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee
}

.section-nav a {
    min-width: 130px;
    text-align: center;
    padding: 15px 22px;
    font-size: 14px
}

.section-nav a:first-child,.section-nav a:hover {
    background: var(--red);
    color: white
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #888;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px
}

.breadcrumbs a:hover {
    color: var(--red)
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center
}

.profile-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover
}

.prose {
    font-size: 16px;
    color: #666;
    line-height: 1.9
}

.prose p {
    margin-top: 22px
}

.prose strong {
    color: var(--red)
}

.prose h1 {
    color: #333;
    font-weight: 400;
    font-size: 30px
}

.prose>.outline-button {
    margin-top: 30px
}

.pale-section {
    background: #f8f8f8
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    margin-top: 40px
}

.value-grid article {
    padding: 28px;
    background: #fff;
    border: 1px solid #eee
}

.value-grid b {
    font: 32px Georgia;
    color: var(--red);
    font-weight: 400
}

.value-grid h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 17px 0 12px
}

.value-grid p {
    font-size: 14px;
    color: #777;
    line-height: 1.9
}

.process-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
    margin: 45px 0 35px
}

.process-list b {
    font: 32px Georgia;
    color: var(--red)
}

.process-list h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 14px 0
}

.process-list p {
    color: #777;
    font-size: 14px;
    line-height: 1.8
}

.page-intro {
    color: #777;
    line-height: 1.9;
    margin: 30px 0;
    font-size: 15px
}

.service-group {
    margin-top: 42px
}

.group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px
}

.group-heading h2 {
    font-size: 23px;
    font-weight: 400
}

.group-heading h2 span {
    font: 24px Georgia;
    color: var(--red);
    margin-right: 15px
}

.group-heading>a {
    color: #888;
    font-size: 13px
}

.service-link-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    padding-top: 24px
}

.service-link-grid>a {
    display: block;
    border: 1px solid #eee;
    padding: 25px;
    transition: border-color .2s,box-shadow .2s
}

.service-link-grid>a:hover {
    border-color: var(--red);
    box-shadow: 0 5px 20px #00000008
}

.service-link-grid h3 {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 15px
}

.service-link-grid p {
    font-size: 13px;
    color: #777;
    line-height: 1.9
}

.service-link-grid span {
    display: block;
    color: var(--red);
    font-size: 12px;
    margin-top: 22px
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0,1fr);
    gap: 45px;
    padding-top: 45px;
    padding-bottom: 60px;
    align-items: start
}

.detail-menu {
    border: 1px solid #eee;
    position: sticky;
    top: 25px
}

.detail-menu h2 {
    font-size: 22px;
    font-weight: 400;
    padding: 20px;
    background: #f6f6f6
}

.detail-menu a {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #eee;
    font-size: 14px
}

.detail-menu a.current,.detail-menu a:hover {
    color: #fff;
    background: var(--red)
}

.detail-article h1 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--red);
    padding-bottom: 20px
}

.detail-lead {
    color: #666;
    font-size: 16px;
    line-height: 1.9
}

.item-directory {
    display: flex;
    gap: 12px 20px;
    flex-wrap: wrap;
    background: #f8f8f8;
    padding: 22px;
    margin-top: 25px
}

.item-directory a {
    font-size: 13px;
    color: #777
}

.item-directory a:hover {
    color: var(--red)
}

.detail-item {
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    scroll-margin-top: 30px
}

.detail-item h2 {
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 15px
}

.detail-item p {
    font-size: 15px;
    color: #777;
    line-height: 1.9
}

.article-actions {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-top: 30px;
    font-size: 13px
}

.news-list {
    margin-top: 35px
}

.news-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
    align-items: center
}

.news-row img {
    width: 220px;
    height: 150px;
    object-fit: cover
}

.article-category {
    font-size: 13px;
    color: var(--red)
}

.news-row h2 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.7;
    margin: 10px 0
}

.news-row:hover h2 {
    color: var(--red)
}

.news-row p {
    font-size: 14px;
    color: #888
}

.read-more {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 15px
}

.reading-page {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 1080px;
    margin: auto
}

.article-header {
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
    text-align: center
}

.article-header h1 {
    font-size: 28px;
    font-weight: 400;
    margin: 14px 0;
    line-height: 1.7
}

.article-header p {
    color: #888;
    font-size: 14px
}

.article-cover {
    margin: 35px auto;
    width: 100%;
    height: 320px;
    object-fit: cover
}

.article-section {
    margin: 30px 0
}

.article-section h2 {
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 18px
}

.article-section p {
    font-size: 16px;
    color: #666;
    line-height: 2
}

.article-note {
    background: #f8f8f8;
    padding: 20px;
    color: #999;
    font-size: 13px;
    margin-top: 30px
}

.article-pagination {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid #eee;
    padding: 25px 0;
    margin-top: 30px;
    font-size: 14px;
    color: #666
}

.article-pagination a:hover {
    color: var(--red)
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    margin-top: 35px;
    text-align: center
}

.contact-info-grid article {
    background: #fafafa;
    padding: 35px 20px
}

.contact-info-grid span {
    color: var(--red);
    font-size: 30px
}

.contact-info-grid h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 15px 0
}

.contact-info-grid p {
    color: #999;
    font-size: 14px
}

.contact-pending {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 25px
}

.directory-group {
    margin-top: 40px
}

.directory-group h2 {
    font-size: 22px;
    font-weight: 400;
    border-bottom: 2px solid var(--red);
    padding-bottom: 15px
}

.directory-group ul {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0 35px
}

.directory-group li {
    border-bottom: 1px solid #eee
}

.directory-group li a {
    display: block;
    font-size: 15px;
    padding: 17px 0
}

.directory-group a:hover {
    color: var(--red)
}

@media(max-width:1280px) {
    .detail-layout {
        grid-template-columns: 220px minmax(0,1fr);
        gap: 30px
    }
    .service-link-grid {
        grid-template-columns: repeat(2,1fr)
    }
    .profile-layout {
        gap: 30px
    }
    .profile-layout .prose {
        font-size: 14px
    }
}

@media(max-width:992px) {
    .mobile-menu {
        display: block;
        position: static
    }
    .mobile-menu summary {
        width: 40px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        cursor: pointer;
        list-style: none
    }
    .mobile-menu summary::-webkit-details-marker {
        display: none
    }
    .menu-lines,.menu-lines:before,.menu-lines:after {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--red);
        position: relative
    }
    .menu-lines:before,.menu-lines:after {
        content: '';
        position: absolute;
        left: 0
    }
    .menu-lines:before {
        top: -7px
    }
    .menu-lines:after {
        top: 7px
    }
    .mobile-menu[open] .menu-lines {
        background: transparent
    }
    .mobile-menu[open] .menu-lines:before {
        top: 0;
        transform: rotate(45deg)
    }
    .mobile-menu[open] .menu-lines:after {
        top: 0;
        transform: rotate(-45deg)
    }
    .mobile-panel {
        position: absolute;
        top: 55px;
        left: 0;
        right: 0;
        padding: 5px 4% 25px;
        max-height: calc(100dvh - 55px);
        overflow: auto;
        background: white;
        box-shadow: 0 10px 15px #0001
    }
    .mobile-panel .directory-link {
        margin-top: 20px
    }
    .profile-layout {
        grid-template-columns: 1fr 1fr
    }
    .value-grid {
        gap: 15px
    }
    .value-grid article {
        padding: 22px
    }
    .detail-menu {
        top: 75px
    }
    .detail-item {
        scroll-margin-top: 80px
    }
    .breadcrumbs {
        min-height: 55px
    }
    .process-list {
        grid-template-columns: repeat(2,1fr)
    }
    .home-contact h3 {
        font-size: 15px
    }
    .home-contact p {
        font-size: 13px
    }
}

@media(max-width:767px) {
    .service-cards {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 20px
    }
    .service-card {
        width: 100%
    }
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 25px
    }
    .profile-image {
        height: 280px;
        object-position: center 35%
    }
    .section-nav a {
        min-width: 0;
        font-size: 13px;
        padding: 13px 18px
    }
    .value-grid {
        grid-template-columns: 1fr;
        margin-top: 25px
    }
    .value-grid article {
        padding: 22px
    }
    .value-grid b {
        font-size: 27px
    }
    .value-grid h3 {
        font-size: 18px
    }
    .process-list {
        gap: 22px;
        margin-top: 25px
    }
    .process-list p {
        font-size: 13px
    }
    .page-intro {
        font-size: 14px;
        margin: 24px 0
    }
    .group-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 15px
    }
    .group-heading h2 {
        font-size: 21px
    }
    .service-link-grid {
        grid-template-columns: 1fr;
        gap: 15px
    }
    .service-link-grid>a {
        padding: 22px
    }
    .detail-layout {
        grid-template-columns: 1fr;
        padding-top: 25px;
        gap: 25px;
        padding-bottom: 35px
    }
    .detail-menu {
        position: static
    }
    .detail-menu h2 {
        font-size: 19px;
        padding: 15px 18px
    }
    .detail-menu a {
        padding: 13px 18px
    }
    .detail-article h1 {
        font-size: 25px
    }
    .detail-lead,.detail-item p {
        font-size: 14px
    }
    .detail-item h2 {
        font-size: 19px
    }
    .item-directory {
        padding: 18px;
        gap: 13px 18px
    }
    .article-actions {
        flex-wrap: wrap
    }
    .news-list {
        margin-top: 10px
    }
    .news-row {
        grid-template-columns: 95px 1fr;
        gap: 16px;
        padding: 22px 0;
        align-items: start
    }
    .news-row img {
        width: 95px;
        height: 95px
    }
    .news-row h2 {
        font-size: 16px;
        margin: 6px 0
    }
    .news-row p {
        font-size: 12px
    }
    .news-row .article-category {
        font-size: 11px
    }
    .read-more {
        margin-top: 10px;
        font-size: 11px
    }
    .reading-page {
        padding-top: 25px;
        padding-bottom: 35px
    }
    .article-header h1 {
        font-size: 23px
    }
    .article-header p {
        font-size: 13px
    }
    .article-cover {
        height: 210px;
        margin-block: 25px
    }
    .article-section h2 {
        font-size: 19px
    }
    .article-section p {
        font-size: 14px
    }
    .article-pagination {
        font-size: 13px
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 15px
    }
    .contact-info-grid article {
        padding: 25px
    }
    .directory-group ul {
        grid-template-columns: 1fr
    }
    .directory-group li a {
        font-size: 14px
    }
    .breadcrumbs {
        font-size: 12px;
        gap: 10px
    }
    .inner-banner img {
        min-height: 150px;
        object-fit: cover
    }
    .section-more {
        margin-top: 24px
    }
    .home-contact {
        padding-bottom: 10px
    }
    .home-contact h3 {
        font-size: 16px
    }
    .home-contact p {
        font-size: 14px
    }
}

/* Six service categories from customer feedback. */
.service-number {
    font: 24px Georgia,serif;
    color: var(--red)
}

.service-card h3 a:hover,.service-card li a:hover,.inline-more:hover {
    color: var(--red)
}

.service-card li a {
    font-size: inherit
}

.inline-more {
    display: inline-block;
    color: var(--red);
    font-size: 13px;
    margin-top: 16px
}

.category-jump {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    border: 1px solid #eee;
    margin-top: 30px
}

.category-jump a {
    font-size: 14px;
    text-align: center;
    padding: 17px 10px;
    background: #fafafa;
    border: 1px solid #eee
}

.category-jump a:hover {
    background: var(--red);
    color: white
}

.service-group {
    scroll-margin-top: 25px
}

@media(max-width:767px) {
    .category-jump {
        grid-template-columns: repeat(2,minmax(0,1fr));
        margin-top: 22px
    }
    .category-jump a {
        font-size: 12px;
        padding: 14px 7px
    }
    .service-group {
        scroll-margin-top: 75px
    }
    .detail-menu {
        display: grid;
        grid-template-columns: 1fr 1fr
    }
    .detail-menu h2 {
        grid-column: 1/-1
    }
    .detail-menu a {
        font-size: 12px;
        padding: 13px 10px
    }
    .detail-menu a span {
        display: none
    }
}

/* Generated photography: retain reference layout and readable overlays. */
.inner-banner img {
    aspect-ratio: 3.16/1;
    object-fit: cover;
    object-position: center
}

.about-image {
    aspect-ratio: 25/28;
    object-fit: cover
}

.consultation {
    background-image: linear-gradient(90deg,transparent 45%,rgba(173,0,16,.92) 50%),url('/assets/ai/banner-contact.webp')
}

.slide-1:before,.slide-2:before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5,17,30,.25);
    pointer-events: none
}

.banner-text {
    z-index: 1
}

.banner-arrow,.css-dots {
    z-index: 2
}

@media(max-width:767px) {
    .inner-banner img {
        aspect-ratio: 2.15/1
    }
    .consultation {
        background-image: linear-gradient(rgba(173,0,16,.87),rgba(173,0,16,.87)),url('/assets/ai/banner-contact.webp')
    }
    .slide-2:before {
        background: rgba(5,17,30,.5)
    }
}

/* Customer company name and supplied original logo. */
.brand {
    max-width: 100%
}

.brand>span {
    min-width: 0
}

.brand strong {
    display: block;
    white-space: normal;
    line-height: 1.5;
    letter-spacing: 1px;
    text-wrap: balance
}

.company-logo {
    width: 52px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff
}

.logo-area>.brand {
    gap: 8px
}

.logo-area .brand strong {
    font-size: 16px
}

.logo-area .brand small {
    font-size: 6px;
    letter-spacing: 1px
}

.banner-brand .company-logo {
    width: 55px;
    height: 64px
}

.banner h1 {
    font-size: clamp(24px,3.1vw,54px)
}

.content-brand strong,.footer-info .brand strong {
    font-size: 22px
}

.banner-text>a {
    text-align: center
}

@media(max-width:992px) {
    .logo-area .company-logo {
        width: 34px;
        height: 42px
    }
    .logo-area>.brand {
        max-width: calc(100% - 45px)
    }
    .logo-area .brand strong {
        font-size: 15px;
        letter-spacing: 0
    }
    .logo-area .brand small {
        font-size: 6px;
        letter-spacing: 1px
    }
    .banner-brand strong {
        font-size: 20px
    }
}

@media(max-width:767px) {
    .banner-brand strong {
        font-size: 17px
    }
    .banner-brand .company-logo {
        width: 40px;
        height: 47px
    }
    .banner h1 {
        font-size: 25px;
        line-height: 1.55
    }
    .content-brand strong,.footer-info .brand strong {
        font-size: 18px
    }
    .content-brand .company-logo,.footer-info .company-logo {
        width: 42px;
        height: 49px
    }
    .copyright {
        line-height: 1.8;
        padding-inline: 15px
    }
}

@media(max-width:767px) {
    .banner h1 {
        font-size: 22px;
        text-wrap: balance
    }
}

/* Reference timing: rise 0–1s, move 1.5–2.3s, backdrop 2–2.3s. */
.opening {
    display: none
}

@media(min-width:993px) and (prefers-reduced-motion:no-preference) {
    .opening {
        --dock-width: 17.7vw;
        --dock-height: 8.496vw;
        --brand-width: 85%;
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9997;
        pointer-events: none;
        animation: opening-dismiss .01s step-end 2.4s forwards
    }
    .opening-backdrop {
        position: absolute;
        inset: 0;
        background: #efefef;
        animation: opening-clear .3s ease-in 2s forwards
    }
    .opening-position {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 760px;
        height: 320px;
        transform: translate(-50%,-50%);
        animation: opening-dock .8s ease-in 1.5s forwards
    }
    .opening-rise {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transform: translateY(160px);
        animation: opening-rise 1s forwards
    }
    .opening-brand {
        width: var(--brand-width);
        gap: 24px;
        justify-content: center;
        animation: opening-gap .8s ease-in 1.5s forwards
    }
    .opening-brand .company-logo {
        width: 156px;
        height: 180px;
        animation: opening-logo .8s ease-in 1.5s forwards
    }
    .opening-brand strong {
        font-size: 48px;
        animation: opening-name .8s ease-in 1.5s forwards
    }
    .opening-brand small {
        font-size: 18px;
        letter-spacing: 3px;
        animation: opening-caption .8s ease-in 1.5s forwards
    }
    body:has(.opening) .logo-area>.brand {
        animation: opening-header .01s step-end 2.41s backwards
    }
}

@media(min-width:993px) and (max-width:1440px) {
    .opening {
        --dock-height: 7.434vw;
        --brand-width: 95%
    }
}

@media(min-width:993px) and (max-width:1280px) {
    .opening {
        --dock-width: 20vw;
        --dock-height: 8.4vw
    }
}

@media(min-width:993px) and (max-height:650px) {
    .opening {
        --dock-height: 6.195vw
    }
}

@media(min-width:993px) and (max-width:1280px) and (max-height:650px) {
    .opening {
        --dock-height: 7vw
    }
}

@keyframes opening-rise {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes opening-dock {
    to {
        left: 0;
        top: 0;
        width: var(--dock-width);
        height: var(--dock-height);
        transform: translate(0,0)
    }
}

@keyframes opening-gap {
    to {
        gap: 8px
    }
}

@keyframes opening-logo {
    to {
        width: 64px;
        height: 76px
    }
}

@keyframes opening-name {
    to {
        font-size: 18px
    }
}

@keyframes opening-caption {
    to {
        font-size: 6px;
        letter-spacing: 1px
    }
}

@keyframes opening-clear {
    to {
        opacity: 0
    }
}

@keyframes opening-dismiss {
    from,to {
        visibility: hidden;
        opacity: 0
    }
}

@keyframes opening-header {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

/* Keep the supplied portrait logo readable in the narrow desktop masthead. */
@media(min-width:993px) {
    .logo-area .company-logo {
        width: 64px;
        height: 76px
    }
    .logo-area .brand strong,.opening-brand strong {
        font-family: 'Microsoft YaHei','PingFang SC',sans-serif;
        font-weight: 600;
        letter-spacing: 1px
    }
    .logo-area .brand strong {
        font-size: 18px
    }
    .logo-area .company-name-part,.opening-brand .company-name-part {
        display: block;
        white-space: nowrap
    }
    .logo-area .brand small {
        font-size: 6px;
        letter-spacing: 1px
    }
}

/* Transparent customer logo and compact sidebar consultation card. */
.company-logo {
    background: transparent
}

.consult-card {
    padding: 20px 16px 14px;
    background: #faf8f8;
    border: 1px solid #f0e5e5;
    border-top: 2px solid var(--red);
    border-radius: 8px
}

.consult-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px
}

.consult-card p {
    font-size: 12px;
    color: #888;
    margin: 0 0 17px
}

.consult-card-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 13px;
    background: var(--red);
    color: white;
    border-radius: 4px;
    font-size: 14px
}

.consult-card-button:hover {
    background: #bd0010
}

.consult-directory {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #777;
    margin-top: 15px
}

.consult-directory:hover {
    color: var(--red)
}

.specialty-group {
    padding: 25px 0 0
}

.specialty-group>h3 {
    font-size: 19px;
    font-weight: 400;
    border-left: 3px solid var(--red);
    padding-left: 12px
}

.knowledge-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px 0
}

.knowledge-nav a {
    border: 1px solid #e9e9e9;
    padding: 10px 18px;
    font-size: 14px
}

.knowledge-nav a:hover {
    color: var(--red);
    border-color: var(--red)
}

.knowledge-category {
    margin-top: 40px;
    scroll-margin-top: 75px
}

.knowledge-category>h2 {
    font-size: 23px;
    font-weight: 400;
    border-bottom: 2px solid var(--red);
    padding-bottom: 15px
}

.news-row h3 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.7;
    margin: 10px 0
}

.news-row:hover h3 {
    color: var(--red)
}

@media(max-width:767px) {
    .news-row h3 {
        font-size: 16px;
        margin: 6px 0
    }
    .knowledge-nav a {
        font-size: 12px;
        padding: 9px 12px
    }
    .specialty-group>h3 {
        font-size: 17px
    }
}

/* Published company contact details. */
.consult-phone {
    display: block;
    color: var(--red);
    font-size: 20px;
    font-weight: 600;
    white-space: nowrap;
    margin: 0 0 15px;
    letter-spacing: .2px
}

.footer-contact {
    font-style: normal;
    margin-top: 16px
}

.footer-contact p {
    font-size: 13px;
    line-height: 1.9;
    color: #666;
    overflow-wrap: anywhere
}

.footer-contact a:hover,.contact-info-grid a:hover {
    color: var(--red)
}

.contact-info-grid p {
    color: #666;
    line-height: 1.8;
    overflow-wrap: anywhere
}

.home-contact p {
    overflow-wrap: anywhere
}

.home-contact p a:hover {
    text-decoration: underline
}

@media(min-width:993px) and (max-width:1100px) {
    .consult-phone {
        font-size: 17px
    }
}

/* One-line company name in the desktop header and opening animation. */
@media(min-width:993px) {
    .logo-area,.opening {
        --dock-font: clamp(10px,calc((16.815vw - 58px)/12),18px)
    }
    .logo-area>.brand {
        width: 95%;
        left: 2.5%
    }
    .logo-area .company-logo {
        width: 44px;
        height: 54px
    }
    .logo-area .brand strong {
        font-size: var(--dock-font);
        letter-spacing: 0;
        white-space: nowrap
    }
    .logo-area .company-name-part,.opening-brand .company-name-part {
        display: inline
    }
    .opening {
        --brand-width: 95%
    }
    .opening-brand strong {
        letter-spacing: 0;
        white-space: nowrap;
        font-size: 40px
    }
    .opening-brand>span {
        flex-shrink: 0
    }
}

@media(min-width:993px) and (max-width:1280px) {
    .logo-area,.opening {
        --dock-font: clamp(10px,calc((19vw - 58px)/12),18px)
    }
}

@keyframes opening-logo {
    to {
        width: 44px;
        height: 54px
    }
}

@keyframes opening-name {
    to {
        font-size: var(--dock-font)
    }
}

.company-history {
    scroll-margin-top: 65px
}

.history-timeline {
    list-style: none;
    padding: 0;
    margin: 36px 0 0
}

.history-timeline li {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr);
    gap: 30px;
    position: relative;
    padding: 0 0 35px 24px;
    margin-left: 7px;
    border-left: 1px solid #e3dcdc
}

.history-timeline li:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 5px #fff
}

.history-timeline li:last-child {
    padding-bottom: 0;
    border-left-color: transparent
}

.history-year {
    font-size: 29px;
    color: var(--red);
    line-height: 1.3
}

.history-timeline h3 {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 12px
}

.history-timeline p {
    font-size: 15px;
    color: #666;
    line-height: 1.9
}

.about-text>p+p {
    margin-top: 14px
}

@media(max-width:767px) {
    .history-timeline li {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-left: 20px;
        padding-bottom: 28px
    }
    .history-year {
        font-size: 24px
    }
    .history-timeline h3 {
        font-size: 18px
    }
    .history-timeline p {
        font-size: 14px
    }
}

/* Footer navigation: a dedicated, evenly spaced row. */
.footer-main {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding-bottom: 28px
}

.footer-info {
    padding-bottom: 0;
    border-bottom: 0
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 0;
    width: 100%;
    border-top: 1px solid #e5e5e5;
    padding-top: 20px
}

.footer-nav a {
    display: block;
    text-align: center;
    line-height: 1.6;
    padding: 10px 8px;
    white-space: nowrap
}

.footer-nav a+a {
    border-left: 1px solid #e5e5e5
}

.footer-nav a:hover {
    background: #fff;
    color: var(--red)
}

@media(max-width:767px) {
    .footer-main {
        gap: 20px;
        padding-bottom: 20px
    }
    .footer-nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding-top: 14px;
        gap: 4px 0
    }
    .footer-nav a {
        flex: 0 0 33.333%;
        padding: 10px 4px;
        font-size: 13px
    }
    .footer-nav a+a {
        border-left: 0
    }
}

/* Service-related imagery with editable HTML titles. */
.themed-banner {
    position: relative;
    background: #18232e;
    isolation: isolate
}

.themed-banner:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(8,18,30,.65),rgba(8,18,30,.2) 65%,transparent);
    z-index: 0
}

.themed-banner-copy {
    position: absolute;
    z-index: 1;
    left: 7%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    max-width: 700px;
    color: #fff
}

.themed-banner-copy h2 {
    font-size: clamp(24px,2.7vw,42px);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 18px
}

.themed-banner-copy p {
    font-size: 16px;
    line-height: 1.9;
    max-width: 570px;
    margin: 0
}

.slide-3:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(5,17,30,.5),transparent);
    pointer-events: none
}

.legal-banner-text {
    text-align: left
}

.banner .legal-banner-text h2 {
    margin-bottom: 24px
}

.banner .legal-banner-text>p {
    margin-bottom: 16px
}

.legal-topics {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 34px;
    color: #f0f1f3
}

.legal-banner-text>a {
    width: auto;
    min-width: 160px;
    padding-inline: 20px
}

@media(max-width:767px) {
    .themed-banner img {
        min-height: 225px;
        object-position: 65% center
    }
    .themed-banner-copy {
        left: 7%;
        width: 86%
    }
    .themed-banner-copy h2 {
        font-size: 25px;
        margin-bottom: 12px
    }
    .themed-banner-copy p {
        font-size: 13px;
        max-width: 290px
    }
    .themed-banner:after {
        background: rgba(8,18,30,.52)
    }
    .slide-3:before {
        background: rgba(5,17,30,.48)
    }
    .banner .legal-banner-text h2 {
        font-size: 26px;
        margin-bottom: 20px
    }
    .banner .legal-banner-text>p {
        font-size: 16px
    }
    .legal-topics {
        font-size: 12px;
        margin-bottom: 26px
    }
    .legal-banner-text>a {
        min-width: 140px
    }
}

/* Separate bilingual section headings instead of overlapping them. */
.section-title {
    padding-bottom: 22px
}

.section-title>p {
    padding-bottom: 0;
    line-height: 1.15;
    overflow-wrap: anywhere
}

.section-title>h2 {
    position: static;
    width: auto;
    margin-top: 10px;
    line-height: 1.4
}

.section-title:after {
    bottom: 0
}

.consultation .section-title>h2 {
    margin-top: 12px
}

@media(max-width:767px) {
    .section-title {
        padding-bottom: 17px
    }
    .section-title>p {
        font-size: clamp(20px,6.5vw,30px)
    }
    .section-title>h2 {
        margin-top: 8px
    }
    .consultation .section-title>h2 {
        margin-top: 10px
    }
}

/* Legal imagery fills the open right side of the shared footer. */
.footer-info {
    position: relative;
    isolation: isolate
}

.footer-info::before {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    top: -30px;
    bottom: -12px;
    right: 0;
    width: 62%;
    background-image: linear-gradient(90deg,#f8f8f8 0%,rgba(248,248,248,.5) 30%,rgba(248,248,248,.12) 100%),url('/assets/ai/about-legal-banner.webp');
    background-size: cover;
    background-position: center;
    opacity: .24;
    mask-image: linear-gradient(180deg,transparent,#000 18%,#000 82%,transparent)
}

@media(max-width:767px) {
    .footer-info::before {
        top: -12px;
        bottom: 0;
        width: 70%;
        opacity: .1;
        background-position: 40% center
    }
}

/* PbootCMS pagination */
.pagebar .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px
}

.pagination a {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 3px
}

.pagination span {
    color: #333;
    font-size: 14px;
    padding: 8px 2px;
    margin: 0 5px;
    border-radius: 3px
}

.pagination a:hover {
    color: #e60012;
    border-color: #e60012
}

.pagination a.page-num-current {
    color: #fff;
    background: #e60012;
    border-color: #e60012
}

.detail-layout > .detail-article:only-child {
    grid-column: 1 / -1
}
