/*
Theme Name: Tersan Kadence Child
Theme URI: https://www.tersancn.com/
Description: Kadence child theme for Jiangsu Taishan Industrial Technology Co., Ltd.
Author: Jiangsu Taishan Industrial Technology Co., Ltd.
Template: kadence
Version: 0.4.0
Text Domain: tersan-kadence-child
*/

:root {
    --tersan-red: #c10f0f;
    --tersan-red-dark: #940b0b;
    --tersan-black: #3f444a;
    --tersan-steel: #62676d;
    --tersan-gray: #656a70;
    --tersan-light: #fff7f7;
    --tersan-white: #ffffff;
}

body {
    background: var(--tersan-white);
    color: var(--tersan-black);
}

a {
    text-underline-offset: 0.18em;
}

::selection {
    background: var(--tersan-red);
    color: var(--tersan-white);
}

.tersan-contact-link {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.tersan-language-switcher {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tersan-language-switcher a,
.tersan-utility a {
    color: #ffe9e9;
    text-decoration: none;
}

.tersan-language-switcher .current-lang a {
    color: var(--tersan-white);
    font-weight: 700;
}

.tersan-utility {
    background: var(--tersan-red-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffe9e9;
    font-size: 0.78rem;
}

.tersan-utility__inner {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 34px;
}

.tersan-utility__inner nav {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 16px;
    padding-left: 16px;
}

.site-header,
#masthead {
    box-shadow: 0 6px 24px rgba(148, 11, 11, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-main-header-wrap,
.site-header-row-container-inner {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 0;
}

.site-main-header-inner-wrap,
.site-header-main-section {
    min-height: 84px;
}

#main-header .site-header-row.site-header-row-has-sides {
    align-items: center;
    display: flex;
    gap: 28px;
    justify-content: space-between;
}

#main-header .site-header-main-section-left {
    flex: 0 0 248px;
    max-width: 260px;
    min-width: 220px;
}

#main-header .site-header-main-section-left .site-header-item {
    width: auto;
}

#main-header .site-header-main-section-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.site-branding {
    align-items: center;
    display: flex;
    max-width: 260px;
    padding: 0;
}

#masthead .site-branding a.brand {
    align-items: center;
    column-gap: 10px;
    display: grid;
    grid-template-columns: 50px minmax(0, auto);
    text-decoration: none;
    width: auto;
}

#masthead .site-branding a.brand::before {
    background: url("assets/images/site-icon.png") center / contain no-repeat;
    content: "";
    display: block;
    height: 50px;
    width: 50px;
}

#masthead .site-branding a.brand img.custom-logo {
    display: none;
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1;
}

.site-title-wrap::after {
    color: #7a8086;
    content: "TERSAN INDUSTRY";
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

#masthead .site-branding .site-title {
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
    white-space: nowrap;
}

.site-title a,
.site-title a:focus,
.site-title a:hover {
    color: #4a4e53;
}

.main-navigation .primary-menu-container > ul,
.main-navigation .menu {
    gap: 2px;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a,
.main-navigation .menu > li.menu-item > a {
    align-items: center;
    color: #4c5055;
    display: flex;
    font-size: 0.96rem;
    font-weight: 650;
    height: 84px;
    padding: 0 15px;
    position: relative;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a::after,
.main-navigation .menu > li.menu-item > a::after {
    background: var(--tersan-red);
    bottom: 0;
    content: "";
    height: 3px;
    left: 15px;
    position: absolute;
    right: 15px;
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.main-navigation .primary-menu-container > ul > li.menu-item:hover > a,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
.main-navigation .menu > li.menu-item:hover > a,
.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-menu-ancestor > a {
    color: var(--tersan-red);
}

.main-navigation .primary-menu-container > ul > li.menu-item:hover > a::after,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a::after,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a::after,
.main-navigation .menu > li.menu-item:hover > a::after,
.main-navigation .menu > li.current-menu-item > a::after,
.main-navigation .menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

.home .content-area,
.home .site-main,
.home #primary {
    margin: 0;
    padding: 0;
    width: 100%;
}

.page-id-6 .content-area,
.page-id-9 .content-area {
    margin-bottom: 64px;
    margin-top: 46px;
}

.page-id-6 .entry.single-entry,
.page-id-9 .entry.single-entry {
    box-shadow: none;
}

.page-id-6 .entry-content-wrap,
.page-id-9 .entry-content-wrap {
    padding: 0;
}

.page-id-6 .single-content h2,
.page-id-9 .single-content h2 {
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    line-height: 1.3;
    margin-bottom: 18px;
}

.page-id-6 .single-content p,
.page-id-9 .single-content p {
    color: #3f444a;
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.tersan-shell {
    margin: 0 auto;
    max-width: 1240px;
    padding-left: 24px;
    padding-right: 24px;
}

.tersan-hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(193, 15, 15, 0.08), transparent 34%),
        linear-gradient(rgba(193, 15, 15, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(193, 15, 15, 0.028) 1px, transparent 1px),
        linear-gradient(108deg, #fffdfd 0%, #ffffff 58%, #fff7f7 100%);
    background-size: auto, 36px 36px, 36px 36px, auto;
    color: var(--tersan-black);
    overflow: hidden;
    position: relative;
}

.tersan-hero::before {
    background:
        radial-gradient(ellipse at 20% 92%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.64) 38%, transparent 72%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.74), transparent 62%);
    content: "";
    inset: 0;
    position: absolute;
}

.tersan-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent);
    bottom: -32%;
    content: "";
    height: 80%;
    left: -8%;
    position: absolute;
    transform: rotate(-4deg);
    width: 118%;
}

.tersan-hero__grid {
    align-items: center;
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    min-height: clamp(430px, 40vw, 560px);
    padding-bottom: clamp(54px, 6vw, 86px);
    padding-top: clamp(54px, 6vw, 86px);
    position: relative;
    z-index: 1;
}

.tersan-hero__content {
    max-width: 820px;
}

.tersan-hero__tagline {
    color: var(--tersan-red);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 22px;
}

.tersan-hero h1 {
    color: #171b20;
    font-size: clamp(2.55rem, 4.7vw, 4.65rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 24px;
    max-width: 1180px;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 2px rgba(17, 24, 32, 0.18);
}

.tersan-hero h1 span {
    display: inline;
}

.tersan-eyebrow,
.tersan-kicker {
    color: var(--tersan-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.tersan-eyebrow {
    color: var(--tersan-red);
}

.tersan-hero__intro {
    color: #5f6671;
    font-size: clamp(1.02rem, 1.55vw, 1.36rem);
    font-weight: 700;
    line-height: 1.8;
    margin: 0;
    max-width: 760px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.72);
}

.tersan-hero__intro span {
    display: block;
    overflow-wrap: anywhere;
}

.tersan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.tersan-hero__visual {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    min-height: 340px;
    position: relative;
}

.tersan-hero__image {
    border: 1px solid rgba(214, 220, 230, 0.72);
    box-shadow: 0 26px 54px rgba(32, 40, 52, 0.16);
    filter: drop-shadow(0 28px 34px rgba(32, 40, 52, 0.16));
    height: auto;
    max-height: 420px;
    object-fit: cover;
    width: min(100%, 620px);
}

.tersan-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.tersan-hero__highlights li {
    color: #5b6066;
    font-size: 0.9rem;
    font-weight: 600;
    padding-left: 16px;
    position: relative;
}

.tersan-hero__highlights li::before {
    background: var(--tersan-red);
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    top: 0.55em;
    width: 6px;
}

.tersan-button {
    border: 1px solid transparent;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-width: 150px;
    padding: 14px 24px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tersan-button--primary {
    background: var(--tersan-red);
    color: var(--tersan-white);
}

.tersan-button--primary:hover {
    background: var(--tersan-red-dark);
    color: var(--tersan-white);
}

.tersan-button--outline {
    border-color: var(--tersan-red);
    color: var(--tersan-red);
}

.tersan-button--outline:hover {
    background: var(--tersan-red);
    color: var(--tersan-white);
}

.tersan-section {
    padding: 96px 0;
}

.tersan-archive-content,
.tersan-news-content {
    padding-top: 56px;
}

.tersan-section--muted {
    background: var(--tersan-light);
}

.tersan-section__heading {
    margin-bottom: 44px;
    max-width: 760px;
}

.tersan-home-capabilities {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tersan-home-capabilities__heading {
    align-items: end;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    max-width: none;
}

.tersan-home-capabilities__heading > div {
    max-width: 760px;
}

.tersan-home-capabilities__more {
    flex: 0 0 auto;
    margin-bottom: 8px;
}

.tersan-section__heading h2,
.tersan-about h2,
.tersan-contact h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 18px;
}

.tersan-card-grid,
.tersan-product-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tersan-card {
    background: var(--tersan-white);
    border: 1px solid #dfe4ea;
    border-radius: 6px;
    box-shadow: 0 16px 36px rgba(21, 32, 46, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow: hidden;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tersan-card:hover,
.tersan-card:focus-within {
    border-color: #d7b3b3;
    box-shadow: 0 22px 46px rgba(21, 32, 46, 0.1);
    transform: translateY(-3px);
}

.tersan-card::after {
    background: var(--tersan-red);
    bottom: -1px;
    content: "";
    height: 4px;
    left: -1px;
    position: absolute;
    width: 72px;
}

.tersan-card__media {
    aspect-ratio: 16 / 9;
    background: #eef2f6;
    display: block;
    overflow: hidden;
    position: relative;
}

.tersan-card__media img {
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
    width: 100%;
}

.tersan-card:hover .tersan-card__media img,
.tersan-card:focus-within .tersan-card__media img {
    transform: scale(1.035);
}

.tersan-card__media > span {
    align-items: center;
    color: rgba(193, 15, 15, 0.24);
    display: flex;
    font-size: 4rem;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.tersan-default-image-frame {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7f8 100%);
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 24px;
    width: 100%;
}

.tersan-card__media img.tersan-default-image,
.tersan-product__image img.tersan-default-image,
.tersan-list-card__image img.tersan-default-image,
.tersan-title-card__image img.tersan-default-image,
.tersan-news-feature__image img.tersan-default-image,
.tersan-news-card__image img.tersan-default-image,
.tersan-product-detail__media img.tersan-default-image,
.tersan-capability-detail__media img.tersan-default-image,
.tersan-news-detail__image img.tersan-default-image {
    height: auto;
    max-height: 68%;
    max-width: 72%;
    object-fit: contain;
    opacity: 0.36;
    transform: none;
    width: auto;
}

.tersan-card:hover .tersan-card__media img.tersan-default-image,
.tersan-card:focus-within .tersan-card__media img.tersan-default-image,
.tersan-product:hover .tersan-product__image img.tersan-default-image,
.tersan-list-card:hover .tersan-list-card__image img.tersan-default-image,
.tersan-title-card:hover .tersan-title-card__image img.tersan-default-image,
.tersan-news-feature:hover .tersan-news-feature__image img.tersan-default-image,
.tersan-news-card:hover .tersan-news-card__image img.tersan-default-image {
    transform: none;
}

.tersan-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 30px 32px;
}

.tersan-card__title {
    align-items: baseline;
    display: flex;
    gap: 12px;
}

.tersan-card__number {
    color: var(--tersan-red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
    min-width: 2.2em;
}

.tersan-card h3,
.tersan-product h3 {
    font-size: 1.45rem;
    margin: 0 0 14px;
}

.tersan-card h3 a {
    color: inherit;
    text-decoration: none;
}

.tersan-card h3 a:hover,
.tersan-card h3 a:focus {
    color: var(--tersan-red);
}

.tersan-card p {
    color: #56606b;
    display: -webkit-box;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tersan-card__link {
    align-self: flex-start;
    margin-top: 18px;
}

.tersan-card-grid > .tersan-empty-state {
    grid-column: 1 / -1;
}

.tersan-product {
    background: var(--tersan-white);
    border: 1px solid #e4e6e8;
    overflow: hidden;
}

.tersan-product__image {
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
}

.tersan-product__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
    width: 100%;
}

.tersan-product:hover .tersan-product__image img {
    transform: scale(1.035);
}

.tersan-product__body {
    padding: 28px;
}

.tersan-product__body h3 {
    margin-top: 0;
}

.tersan-product__body h3 a {
    color: var(--tersan-black);
    text-decoration: none;
}

.tersan-product__meta {
    border-top: 1px solid #eceff1;
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-top: 16px;
}

.tersan-product__meta div,
.tersan-product-specs div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.tersan-product__meta dt,
.tersan-product-specs dt {
    color: var(--tersan-gray);
    font-weight: 650;
}

.tersan-product__meta dd,
.tersan-product-specs dd {
    color: var(--tersan-black);
    margin: 0;
    text-align: right;
}

.tersan-product--placeholder {
    min-height: 280px;
}

.tersan-product__symbol {
    align-items: center;
    background: linear-gradient(135deg, var(--tersan-red-dark), var(--tersan-red));
    color: rgba(255, 255, 255, 0.18);
    display: flex;
    font-size: 5rem;
    font-weight: 800;
    height: 150px;
    justify-content: flex-end;
    padding: 22px;
}

.tersan-product__line {
    background: var(--tersan-red);
    display: block;
    height: 3px;
    margin-top: 22px;
    width: 52px;
}

.tersan-text-link {
    color: var(--tersan-red);
    font-weight: 700;
    text-decoration: none;
}

.tersan-archive-hero {
    background: linear-gradient(120deg, #ffffff 0%, #fff8f8 100%);
    border-bottom: 1px solid #f0d8d8;
    padding: 72px 0 58px;
}

.tersan-archive-hero h1,
.tersan-single-hero h1 {
    color: var(--tersan-red-dark);
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0;
}

.tersan-archive-hero p,
.tersan-single-hero p {
    color: #5f646a;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin: 18px 0 0;
    max-width: 720px;
}

.tersan-tax-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.tersan-content-nav {
    margin-bottom: 34px;
    margin-top: 0;
}

.tersan-tax-nav a {
    border: 1px solid #e5c9c9;
    color: var(--tersan-red-dark);
    font-weight: 700;
    padding: 9px 14px;
    text-decoration: none;
}

.tersan-archive-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tersan-list-card {
    background: var(--tersan-white);
    border: 1px solid #e4e6e8;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.tersan-list-card__image {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--tersan-red-dark), var(--tersan-red));
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.1em;
    overflow: hidden;
    text-decoration: none;
}

.tersan-list-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
    width: 100%;
}

.tersan-list-card:hover .tersan-list-card__image img {
    transform: scale(1.035);
}

.tersan-list-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.tersan-list-card__label {
    color: var(--tersan-red);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}

.tersan-list-card h2 {
    font-size: 1.35rem;
    line-height: 1.28;
    margin: 0 0 14px;
}

.tersan-list-card h2 a {
    color: var(--tersan-black);
    text-decoration: none;
}

.tersan-list-card .tersan-text-link {
    margin-top: auto;
}

.tersan-title-card {
    background: var(--tersan-white);
    border: 1px solid #e4e6e8;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tersan-title-card__link {
    color: var(--tersan-black);
    display: block;
    text-decoration: none;
}

.tersan-title-card__image {
    align-items: center;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(148, 11, 11, 0.9), rgba(193, 15, 15, 0.72)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 12px);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    font-weight: 750;
    justify-content: center;
    overflow: hidden;
}

.tersan-title-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
    width: 100%;
}

.tersan-title-card:hover .tersan-title-card__image img {
    transform: scale(1.035);
}

.tersan-title-card:hover {
    border-color: #d8b7b7;
    box-shadow: 0 12px 28px rgba(148, 11, 11, 0.08);
    transform: translateY(-2px);
}

.tersan-title-card__body {
    display: block;
    padding: 18px 24px 20px;
}

.tersan-title-card__title {
    color: #3f444a;
    display: block;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    font-weight: 750;
    line-height: 1.35;
}

.tersan-empty-state {
    background: var(--tersan-white);
    border: 1px dashed #d8b4b4;
    color: var(--tersan-gray);
    padding: 34px;
}

.tersan-single-hero {
    background: linear-gradient(120deg, #ffffff 0%, #fff8f8 100%);
    padding: 64px 0;
}

.tersan-single-layout {
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.tersan-single-media {
    background: #f5f6f7;
    border: 1px solid #e4e6e8;
    overflow: hidden;
}

.tersan-single-media img {
    display: block;
    height: auto;
    width: 100%;
}

.tersan-product-specs {
    border: 1px solid #e4e6e8;
    display: grid;
    gap: 0;
    margin: 0 0 24px;
}

.tersan-product-specs div {
    border-bottom: 1px solid #e4e6e8;
    padding: 15px 18px;
}

.tersan-product-specs div:last-child {
    border-bottom: 0;
}

.tersan-document-link {
    align-items: center;
    border: 1px solid var(--tersan-red);
    color: var(--tersan-red);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 12px 18px;
    text-decoration: none;
}

.tersan-product-detail {
    padding: 46px 0 88px;
}

.tersan-product-detail__header {
    margin-bottom: 24px;
    max-width: 980px;
}

.tersan-product-detail h1 {
    color: var(--tersan-red-dark);
    font-size: clamp(1.8rem, 2.8vw, 2.75rem);
    letter-spacing: 0;
    line-height: 1.14;
    margin: 0;
}

.tersan-product-detail__header p {
    color: var(--tersan-gray);
    font-size: clamp(0.98rem, 1.35vw, 1.1rem);
    margin: 14px 0 0;
    max-width: 820px;
}

.tersan-product-detail__layout {
    align-items: start;
    display: grid;
    gap: 38px;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.tersan-product-detail__media {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e4e6e8;
    padding: 14px;
    overflow: hidden;
}

.tersan-product-detail__media img {
    display: block;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.tersan-product-detail__body {
    display: grid;
    gap: 24px;
}

.tersan-product-detail__content {
    color: #3f444a;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    line-height: 1.8;
}

.tersan-product-detail__content > *:first-child {
    margin-top: 0;
}

.tersan-capability-detail {
    padding: 46px 0 88px;
}

.tersan-capability-detail__header {
    margin-bottom: 24px;
    max-width: 860px;
}

.tersan-back-link {
    color: var(--tersan-red);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 750;
    margin-bottom: 12px;
    text-decoration: none;
}

.tersan-back-link::before {
    content: "<";
    margin-right: 8px;
}

.tersan-capability-detail h1 {
    color: var(--tersan-red-dark);
    font-size: clamp(1.75rem, 2.6vw, 2.65rem);
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
}

.tersan-capability-detail__header p {
    color: var(--tersan-gray);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    margin: 14px 0 0;
}

.tersan-capability-detail__layout {
    align-items: start;
    display: grid;
    gap: 38px;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.tersan-capability-detail__media {
    background: #f5f6f7;
    border: 1px solid #e4e6e8;
    overflow: hidden;
}

.tersan-capability-detail__media img {
    display: block;
    height: auto;
    width: 100%;
}

.tersan-capability-detail__content {
    border-left: 3px solid var(--tersan-red);
    color: #3f444a;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.8;
    padding-left: 24px;
}

.tersan-capability-detail__content > *:first-child {
    margin-top: 0;
}

.tersan-news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tersan-news-categories a {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #ead4d4;
    color: #5f2222;
    font-weight: 750;
    min-height: 42px;
    padding: 8px 14px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tersan-news-categories a:hover,
.tersan-news-categories a.is-active {
    background: var(--tersan-red);
    border-color: var(--tersan-red);
    color: var(--tersan-white);
}

.tersan-news-hero {
    background: #fffafa;
    padding: 46px 0 34px;
}

.tersan-news-hero .tersan-kicker {
    margin-bottom: 8px;
}

.tersan-news-hero h1 {
    font-size: clamp(2rem, 4vw, 3.35rem);
}

.tersan-news-hero p {
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    margin-top: 12px;
}

.tersan-news-toolbar {
    margin-bottom: 28px;
}

.tersan-news-feature {
    background: var(--tersan-white);
    border: 1px solid #e4e6e8;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 0.94fr) minmax(340px, 1.06fr);
    margin-bottom: 22px;
}

.tersan-news-feature__image,
.tersan-news-card__image {
    align-items: center;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(148, 11, 11, 0.9), rgba(193, 15, 15, 0.74)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 12px);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    font-size: 0.88rem;
    font-weight: 750;
    justify-content: center;
    letter-spacing: 0.08em;
    overflow: hidden;
    text-decoration: none;
}

.tersan-news-feature__image img,
.tersan-news-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
    width: 100%;
}

.tersan-news-feature:hover .tersan-news-feature__image img,
.tersan-news-card:hover .tersan-news-card__image img {
    transform: scale(1.035);
}

.tersan-news-feature__body {
    align-self: center;
    padding: clamp(26px, 3.2vw, 42px);
}

.tersan-news-meta {
    align-items: center;
    color: var(--tersan-gray);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    font-weight: 700;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.tersan-news-meta a {
    color: var(--tersan-red);
    text-decoration: none;
}

.tersan-news-feature h2,
.tersan-news-card h2 {
    line-height: 1.28;
    margin: 0 0 14px;
}

.tersan-news-feature h2 {
    font-size: clamp(1.55rem, 2.6vw, 2.3rem);
}

.tersan-news-card h2 {
    font-size: clamp(1.08rem, 1.65vw, 1.35rem);
}

.tersan-news-feature h2 a,
.tersan-news-card h2 a {
    color: var(--tersan-black);
    text-decoration: none;
}

.tersan-news-list {
    display: grid;
    gap: 14px;
}

.tersan-news-card {
    background: var(--tersan-white);
    border: 1px solid #e4e6e8;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(190px, 0.3fr) minmax(0, 0.7fr);
}

.tersan-news-card__body {
    align-self: center;
    padding: 22px 26px;
}

.tersan-news-card__body p,
.tersan-news-feature__body p {
    margin-bottom: 0;
}

.tersan-news-single-note {
    border: 1px dashed #d8b4b4;
    color: var(--tersan-gray);
    margin-top: 22px;
    padding: 22px;
}

.tersan-news-detail-hero {
    background: #fffafa;
    border-bottom: 1px solid #f0d8d8;
    padding: 44px 0 34px;
}

.tersan-news-detail-hero h1 {
    color: var(--tersan-red-dark);
    font-size: clamp(1.75rem, 2.7vw, 2.7rem);
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 16px;
    max-width: 980px;
}

.tersan-news-detail-section {
    padding-top: 46px;
}

.tersan-news-detail {
    max-width: 920px;
}

.tersan-news-detail__image {
    aspect-ratio: 16 / 9;
    border: 1px solid #e4e6e8;
    margin-bottom: 34px;
    overflow: hidden;
}

.tersan-news-detail__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tersan-news-detail__content {
    color: #3f444a;
    font-size: 1.05rem;
}

.pagination,
.nav-links {
    margin-top: 34px;
}

.tersan-contact-page {
    background: #ffffff;
}

.tersan-contact-simple {
    padding: 58px 0 86px;
}

.tersan-contact-simple__grid {
    align-items: start;
    display: grid;
    gap: 54px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.tersan-contact-simple__details > p {
    color: #535961;
    font-size: 1.04rem;
    line-height: 1.8;
    margin: 0 0 30px;
    max-width: 760px;
}

@media (min-width: 901px) {
    .tersan-contact-simple__details {
        padding-left: 34px;
    }
}

.tersan-contact-list {
    display: grid;
    gap: 20px;
    margin: 0 0 28px;
}

.tersan-contact-list div {
    display: grid;
    gap: 18px;
    grid-template-columns: 90px minmax(0, 1fr);
    padding: 4px 0;
}

.tersan-contact-list dt {
    color: var(--tersan-gray);
    font-weight: 750;
}

.tersan-contact-list dd {
    color: #2f343a;
    font-weight: 700;
    margin: 0;
}

.tersan-contact-list a {
    color: #2f343a;
    text-decoration: none;
}

.tersan-contact-simple__qr {
    align-items: center;
    border: 1px solid #e4e6e8;
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 24px;
    text-align: center;
}

.tersan-contact-simple__qr img {
    aspect-ratio: 1;
    display: block;
    max-width: 190px;
    object-fit: contain;
    width: 100%;
}

.tersan-contact-simple__qr .tersan-qr-placeholder {
    max-width: 190px;
}

.tersan-contact-simple__qr .tersan-fake-qr {
    max-width: 190px;
}

.tersan-fake-qr {
    aspect-ratio: 1;
    background:
        linear-gradient(90deg, #2f343a 10px, transparent 10px) 50% 48% / 28px 28px,
        linear-gradient(#2f343a 10px, transparent 10px) 50% 48% / 28px 28px,
        linear-gradient(90deg, transparent 0 14px, #2f343a 14px 22px, transparent 22px 34px, #2f343a 34px 42px, transparent 42px) 78% 74% / 70px 70px,
        linear-gradient(#2f343a 0 8px, transparent 8px 20px, #2f343a 20px 28px, transparent 28px 40px, #2f343a 40px 48px, transparent 48px) 72% 34% / 72px 72px,
        #ffffff;
    border: 12px solid #ffffff;
    box-shadow: 0 0 0 1px #dfe3e6;
    display: block;
    position: relative;
    width: 100%;
}

.tersan-fake-qr__corner,
.tersan-fake-qr__dot {
    position: absolute;
}

.tersan-fake-qr__corner {
    border: 10px solid #2f343a;
    height: 42px;
    width: 42px;
}

.tersan-fake-qr__corner::after {
    background: #2f343a;
    content: "";
    height: 16px;
    left: 13px;
    position: absolute;
    top: 13px;
    width: 16px;
}

.tersan-fake-qr__corner--tl {
    left: 14px;
    top: 14px;
}

.tersan-fake-qr__corner--tr {
    right: 14px;
    top: 14px;
}

.tersan-fake-qr__corner--bl {
    bottom: 14px;
    left: 14px;
}

.tersan-fake-qr__dot {
    background: #2f343a;
}

.tersan-fake-qr__dot--a {
    height: 18px;
    right: 38px;
    top: 96px;
    width: 18px;
}

.tersan-fake-qr__dot--b {
    bottom: 36px;
    height: 14px;
    right: 76px;
    width: 44px;
}

.tersan-fake-qr__dot--c {
    bottom: 78px;
    height: 36px;
    right: 34px;
    width: 14px;
}

.tersan-contact-simple__qr strong {
    color: #2f343a;
    font-size: 1.08rem;
    line-height: 1.35;
}

.tersan-contact-simple__qr span {
    color: var(--tersan-gray);
    font-size: 0.92rem;
}

.tersan-contact-hero {
    background: linear-gradient(120deg, #ffffff 0%, #fff9f9 64%, #fff2f2 100%);
    border-bottom: 1px solid #f0d8d8;
    padding: 58px 0 48px;
}

.tersan-contact-hero__grid {
    align-items: end;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
}

.tersan-contact-hero h1 {
    color: var(--tersan-red-dark);
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0;
}

.tersan-contact-hero p:not(.tersan-kicker) {
    color: #5f646a;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    margin: 16px 0 0;
    max-width: 720px;
}

.tersan-contact-hero__note {
    background: var(--tersan-white);
    border-left: 4px solid var(--tersan-red);
    box-shadow: 0 14px 36px rgba(148, 11, 11, 0.08);
    padding: 22px 24px;
}

.tersan-contact-hero__note span {
    color: var(--tersan-gray);
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tersan-contact-hero__note strong {
    color: #3f444a;
    display: block;
    font-size: 1.05rem;
    line-height: 1.45;
}

.tersan-contact-main {
    padding: 64px 0 34px;
}

.tersan-contact-main__grid {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.44fr);
}

.tersan-contact-panel {
    background: var(--tersan-white);
    border: 1px solid #e4e6e8;
    padding: clamp(24px, 3vw, 36px);
}

.tersan-contact-panel--primary {
    border-top: 4px solid var(--tersan-red);
}

.tersan-section-label {
    color: var(--tersan-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
}

.tersan-contact-panel h2,
.tersan-contact-route h2,
.tersan-contact-requirements h2 {
    color: #3f444a;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.3;
    margin: 0;
}

.tersan-contact-methods {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.tersan-contact-method {
    border: 1px solid #e7e9eb;
    color: #535961;
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tersan-contact-method:hover {
    border-color: #d8b7b7;
    box-shadow: 0 12px 26px rgba(148, 11, 11, 0.07);
    transform: translateY(-2px);
}

.tersan-contact-method__label {
    color: var(--tersan-red);
    font-size: 0.82rem;
    font-weight: 800;
}

.tersan-contact-method strong {
    color: #2f343a;
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.35;
}

.tersan-contact-method span:last-child {
    line-height: 1.65;
}

.tersan-contact-qr {
    background: #fffafa;
}

.tersan-contact-qr__grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.tersan-qr-card {
    background: var(--tersan-white);
    border: 1px solid #ead4d4;
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 20px;
    text-align: center;
}

.tersan-qr-placeholder {
    align-items: center;
    aspect-ratio: 1;
    background:
        linear-gradient(90deg, #3f444a 10px, transparent 10px) 0 0 / 30px 30px,
        linear-gradient(#3f444a 10px, transparent 10px) 0 0 / 30px 30px,
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 10px solid #ffffff;
    box-shadow: 0 0 0 1px #dfe3e6;
    color: var(--tersan-red-dark);
    display: flex;
    font-size: 0.8rem;
    font-weight: 800;
    justify-content: center;
    max-width: 176px;
    min-height: 148px;
    padding: 16px;
    width: 100%;
}

.tersan-qr-card__image {
    aspect-ratio: 1;
    background: var(--tersan-white);
    border: 10px solid var(--tersan-white);
    box-shadow: 0 0 0 1px #dfe3e6;
    display: block;
    max-width: 176px;
    object-fit: contain;
    width: 100%;
}

.tersan-qr-placeholder span {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ead4d4;
    padding: 6px 8px;
}

.tersan-qr-card h3 {
    color: #343941;
    font-size: 1.08rem;
    line-height: 1.35;
    margin: 0;
}

.tersan-qr-card p {
    color: var(--tersan-gray);
    line-height: 1.65;
    margin: 0;
}

.tersan-contact-guide {
    padding: 30px 0 88px;
}

.tersan-contact-guide__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.tersan-contact-route,
.tersan-contact-requirements {
    background: #f8f9fa;
    border: 1px solid #e4e6e8;
    padding: clamp(24px, 3vw, 34px);
}

.tersan-contact-route p:not(.tersan-section-label),
.tersan-contact-requirements li {
    color: #535961;
    line-height: 1.75;
}

.tersan-contact-route .tersan-button {
    margin-top: 10px;
}

.tersan-contact-requirements ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding-left: 1.1em;
}

.tersan-about {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    border-top: 1px solid #eef1f4;
}

.tersan-about__grid {
    align-items: start;
    display: grid;
    gap: clamp(36px, 6vw, 72px);
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.tersan-about__panel {
    background: var(--tersan-white);
    border: 1px solid #e3e7ec;
    border-left: 4px solid var(--tersan-red);
    box-shadow: 0 18px 46px rgba(31, 42, 56, 0.06);
    padding: clamp(26px, 3vw, 36px);
}

.tersan-about__text {
    color: #4e555d;
    font-size: clamp(1.04rem, 1.55vw, 1.22rem);
    line-height: 1.85;
    margin: 0 0 22px;
}

.tersan-contact {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #f0dede;
    color: var(--tersan-black);
    padding: 72px 0 78px;
}

.tersan-contact__intro {
    margin-bottom: 34px;
    max-width: 760px;
}

.tersan-contact__intro p:not(.tersan-kicker) {
    color: #5b626b;
    line-height: 1.75;
    margin: 18px 0 0;
}

.tersan-contact__details {
    display: grid;
    gap: 14px;
    grid-template-columns: 0.84fr minmax(0, 1fr) 1.42fr;
}

.tersan-contact__item {
    background: var(--tersan-white);
    border: 1px solid #e4e8ed;
    display: grid;
    gap: 8px;
    min-height: 104px;
    padding: 22px 24px;
}

.tersan-contact__item--wide {
    grid-column: auto;
}

.tersan-contact__item span {
    color: var(--tersan-red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tersan-contact__item a,
.tersan-contact__item address {
    color: #333941;
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.tersan-contact__item address {
    font-style: normal;
    margin: 0;
}

.custom-logo {
    height: auto;
    max-height: 54px;
    width: auto;
}

.site-bottom-footer-wrap,
.site-footer-row-container-inner {
    background: var(--tersan-red-dark);
    color: #ffe9e9;
}

.site-bottom-footer-wrap a,
.site-footer-row-container-inner a {
    color: var(--tersan-white);
}

@media (max-width: 1080px) {
    #main-header .site-header-row.site-header-row-has-sides {
        gap: 18px;
    }

    #main-header .site-header-main-section-left {
        flex-basis: 220px;
        max-width: 230px;
        min-width: 208px;
    }

    .site-branding {
        max-width: 230px;
    }

    .main-navigation .primary-menu-container > ul > li.menu-item > a,
    .main-navigation .menu > li.menu-item > a {
        font-size: 0.9rem;
        padding-left: 10px;
        padding-right: 10px;
    }

    .main-navigation .primary-menu-container > ul > li.menu-item > a::after,
    .main-navigation .menu > li.menu-item > a::after {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 900px) {
    .tersan-home-capabilities__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .tersan-home-capabilities__more {
        margin-bottom: 0;
    }

    .tersan-hero__grid,
    .tersan-about__grid,
    .tersan-contact-hero__grid,
    .tersan-contact-main__grid,
    .tersan-contact-guide__grid,
    .tersan-contact-simple__grid,
    .tersan-news-feature,
    .tersan-news-card,
    .tersan-capability-detail__layout,
    .tersan-product-detail__layout {
        grid-template-columns: 1fr;
    }

    .tersan-capability-detail__content {
        border-left: 0;
        border-top: 3px solid var(--tersan-red);
        padding-left: 0;
        padding-top: 22px;
    }

    .tersan-hero__grid {
        min-height: auto;
    }

    .tersan-hero__visual {
        justify-content: center;
        min-height: auto;
    }

    .tersan-hero__image {
        max-height: 340px;
        width: min(100%, 460px);
    }

    .tersan-card-grid,
    .tersan-product-grid,
    .tersan-archive-grid,
    .tersan-single-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tersan-utility__inner {
        justify-content: space-between;
    }

    .site-main-header-inner-wrap,
    .site-header-main-section {
        min-height: 72px;
    }

    .mobile-site-branding {
        max-width: 190px;
    }

    #masthead .mobile-site-branding a.brand {
        column-gap: 8px;
        grid-template-columns: 42px minmax(0, auto);
    }

    #masthead .mobile-site-branding a.brand::before {
        height: 42px;
        width: 42px;
    }

    #masthead .site-branding .site-title {
        font-size: 1.12rem;
    }

    .site-title-wrap::after {
        font-size: 0.56rem;
    }

    .custom-logo {
        max-height: 46px;
    }

    .tersan-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tersan-hero__grid,
    .tersan-section {
        padding-bottom: 68px;
        padding-top: 68px;
    }

    .tersan-card {
        min-height: auto;
    }

    .tersan-contact-simple {
        padding-bottom: 68px;
        padding-top: 42px;
    }

    .tersan-contact-simple__grid {
        gap: 32px;
    }

    .tersan-contact-list div {
        gap: 6px;
        grid-template-columns: 1fr;
    }

    .tersan-contact__details {
        grid-template-columns: 1fr;
    }

    .tersan-card__body {
        padding: 24px 24px 30px;
    }

    .tersan-card h3,
    .tersan-product h3 {
        font-size: 1.32rem;
    }

    .tersan-hero h1 {
        font-size: 2rem;
        line-height: 1.18;
        margin-bottom: 20px;
    }

    .tersan-hero__tagline {
        font-size: 0.86rem;
        margin-bottom: 16px;
    }

    .tersan-hero h1 span {
        display: block;
    }

    .tersan-hero__intro {
        font-size: 1rem;
        line-height: 1.8;
    }

    .tersan-hero__intro span {
        word-break: break-all;
    }

    .tersan-actions {
        margin-top: 26px;
    }

    .tersan-hero__image {
        max-height: 280px;
    }

    .tersan-contact-hero {
        padding: 44px 0 36px;
    }

    .tersan-contact-main {
        padding-top: 42px;
    }

    .tersan-contact-guide {
        padding-bottom: 64px;
    }

    .tersan-contact-method,
    .tersan-contact-panel,
    .tersan-contact-route,
    .tersan-contact-requirements {
        padding: 22px;
    }
}
