/* =========================================================

   RexCraft Technology Co., Ltd.

   Global Stylesheet

   ========================================================= */

/* =========================================================

   1. GLOBAL RESET

   ========================================================= */

\*,

\*::before,

\*::after {

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

html,

body {

    margin: 0;

    padding: 0;

    width: 100%;

    min-height: 100%;

}

body {

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;

    line-height: 1.6;

    color: #222;

    background: #fff;

    overflow-x: hidden;

}

img,

svg {

    max-width: 100%;

}

img {

    display: block;

    height: auto;

}

a {

    color: inherit;

    text-decoration: none;

}

button,

input,

textarea,

select {

    font: inherit;

}

button {

    cursor: pointer;

}

ul,

ol {

    margin: 0;

    padding: 0;

    list-style: none;

}

p,

h1,

h2,

h3,

h4,

h5,

h6 {

    margin-top: 0;

}

/* =========================================================

   2. GLOBAL VARIABLES

   ========================================================= */

:root {

    --color-heading: #263238;

    --color-text: #455a64;

    --color-muted: #78909c;

    --color-border: #dfe5e8;

    --color-primary: #428dd7;

}

/* =========================================================

   3. GLOBAL CONTAINER

   ========================================================= */

.container {

    width: min(1200px, calc(100% - 40px));

    margin: 0 auto;

}

/* =========================================================

   4. HEADER

   ========================================================= */

.site-header {

    position: fixed;

    top: 0;

    left: 0;

    z-index: 1000;

    width: 100%;

    background: #fff;

    border-bottom: 1px solid #e8e8e8;

}

.header-inner {

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}

.logo {

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

}

.logo img {

    display: block;

}

.logo-mark {

    height: 50px;

    width: auto;

    margin-right: 10px;

}

.logo-img {

    width: auto;

    max-width: 190px;

    max-height: 50px;

}

/* =========================================================

   5. NAVIGATION

   ========================================================= */

.site-nav {

    margin-left: auto;

}

.site-nav ul {

    display: flex;

    align-items: center;

    gap: 36px;

}

.site-nav a {

    position: relative;

    display: inline-flex;

    align-items: center;

    min-height: 44px;

    padding: 0 2px;

    color: #000;

    font-size: 15px;

    font-weight: 400;

    white-space: nowrap;

    transition: color 0.2s ease;

}

.site-nav a::after {

    content: "";

    position: absolute;

    left: 2px;

    right: 2px;

    bottom: 4px;

    height: 1px;

    background: #0066cc;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.2s ease;

}

.site-nav a:hover,

.site-nav a.active {

    color: #0066cc;

}

.site-nav a:hover::after,

.site-nav a.active::after {

    transform: scaleX(1);

}

/* =========================================================

   6. MOBILE NAVIGATION TOGGLE

   ========================================================= */

.nav-toggle {

    display: none;

    width: 44px;

    height: 44px;

    padding: 8px;

    border: 0;

    background: transparent;

    flex-shrink: 0;

}

.nav-toggle span {

    display: block;

    width: 24px;

    height: 2px;

    margin: 5px auto;

    background: currentColor;

    transition:

        transform 0.2s ease,

        opacity 0.2s ease;

}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {

    transform: translateY(7px) rotate(45deg);

}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {

    opacity: 0;

}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {

    transform: translateY(-7px) rotate(-45deg);

}

/* =========================================================

   7. HOME HERO

   ========================================================= */

.hero {

    min-height: 520px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:

        linear-gradient(

            rgba(0, 0, 0, 0.38),

            rgba(0, 0, 0, 0.38)

        ),

        url("../images/hero-home.jpg") center / cover no-repeat;

}

.hero-content {

    width: min(1100px, calc(100% - 40px));

    margin: 0 auto;

    color: #fff;

}

.hero-content h1 {

    margin-bottom: 12px;

    font-size: clamp(30px, 4vw, 48px);

    line-height: 1.2;

    font-weight: 700;

}

.hero-content p {

    margin-bottom: 0;

    font-size: clamp(16px, 2vw, 22px);

    line-height: 1.4;

    font-weight: 700;

}

/* =========================================================

   8. COMMON PAGE HERO

   ========================================================= */

.page-hero {

    position: relative;

    width: 100%;

    min-height: 380px;

    margin: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background:

        linear-gradient(

            rgba(0, 0, 0, 0.35),

            rgba(0, 0, 0, 0.35)

        ),

        url("../images/hero-home.jpg");

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover;

}

.page-hero-content {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;

    text-align: center;

}

.page-hero-content h1 {

    max-width: 1100px;

    margin: 0 auto;

    color: #fff;

    font-size: 42px;

    line-height: 1.3;

    font-weight: 700;

    text-align: center;

}

/* =========================================================

   9. WELCOME / ABOUT

   ========================================================= */

.welcome {

    padding: 80px 0;

}

.welcome-title {

    margin-bottom: 10px;

    text-align: center;

    font-size: clamp(14px, 4vw, 28px);

    line-height: 1.25;

    color: #428dd7;

}

.welcome-subtitle {

    margin-bottom: 50px;

    text-align: center;

    font-size: clamp(18px, 2vw, 24px);

    line-height: 1.4;

    font-weight: 700;

}

.welcome-grid {

    display: grid;

    grid-template-columns:

        0.85fr

        1.15fr;

    gap: 60px;

    align-items: stretch;

}

.welcome-gallery {

    display: grid;

    grid-template-columns: 1fr;

    gap: 6px;

}

.gallery-item {

    width: 50%;

    box-shadow:

        0 3px 10px rgba(0, 0, 0, 0.18);

    overflow: hidden;

}

.gallery-item:nth-child(1) {

    margin-left: 0;

}

.gallery-item:nth-child(2) {

    margin-left: 19%;

}

.gallery-item:nth-child(3) {

    margin-left: 38%;

}

.gallery-item:nth-child(4) {

    margin-left: 57%;

}

.gallery-item img {

    width: 100%;

    aspect-ratio: 4 / 3.6;

    object-fit: cover;

    transition: transform 0.4s ease;

}

.gallery-item img:hover {

    transform: scale(1.05);

}

.welcome-text {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

}

.welcome-text p {

    margin-bottom: 20px;

    text-align: justify;

    font-size: 15.5px;

}

.welcome-text p:last-child {

    margin-bottom: 0;

}

/* =========================================================

   10. FOOTER

   ========================================================= */

.site-footer {

    margin-top: 0;

    padding: 60px 0 0;

    background: #dbdbdb;

    color: #222;

}

.footer-nav {

    margin-bottom: 30px;

    padding-bottom: 20px;

    text-align: left;

    border-bottom: 1px solid rgba(181, 181, 181, 0.6);

}

.footer-nav ul {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 32px;

}

.footer-nav a {

    color: #222;

    font-size: 16px;

    font-weight: 500;

    transition: opacity 0.2s ease;

}

.footer-nav a:hover {

    opacity: 0.6;

}

.footer-grid {

    display: grid;

    grid-template-columns:

        minmax(0, 1fr)

        minmax(0, 1.5fr)

        minmax(0, 0.8fr);

    gap: 50px;

    padding: 50px 0;

}

.footer-col {

    min-width: 0;

}

.footer-logo-col {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}

.footer-brand-logo {

    width: auto;

    max-width: 120px;

    margin-bottom: 18px;

}

.footer-brand-name {

    margin-bottom: 0;

    font-weight: 700;

}

.footer-col h4 {

    margin-bottom: 16px;

    font-size: 17px;

    color: #7fb2d9;

    font-weight: 600;

}

.footer-col p {

    margin-bottom: 8px;

}

.contact-label {

    margin-top: 20px;

    margin-bottom: 5px !important;

    font-weight: 700;

}

.social-links {

    display: flex;

    align-items: center;

    gap: 14px;

}

.social-links a {

    width: 44px;

    height: 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #ccc;

    border-radius: 50%;

    color: #222;

    transition:

        background-color 0.2s ease,

        color 0.2s ease,

        transform 0.2s ease;

}

.social-links a:hover {

    transform: translateY(-2px);

}

.social-icon {

    width: 20px;

    height: 20px;

    display: block;

}

.footer-bottom {

    margin-top: 36px;

    padding: 20px 0;

    border-top: 1px solid rgba(0, 0, 0, 0.15);

    text-align: center;

    font-size: 14px;

}

.footer-bottom p {

    margin-bottom: 0;

}

/* =========================================================

   11. PRODUCT CARD

   ========================================================= */

.products-section {

    padding: 64px 0 88px;

}

.products-intro {

    max-width: 1080px;

    margin: 0 auto 56px;

    text-align: justify;

    font-size: 16.5px;

    line-height: 1.85;

    color: #5d6b79;

}

.product-grid {

    display: grid;

    grid-template-columns:

        repeat(4, 1fr);

    gap: 28px;

}

.product-card {

    display: flex;

    flex-direction: column;

    padding: 18px 18px 16px;

    border: 1px solid #8fa8c8;

    border-radius: 16px;

    transition:

        box-shadow 0.3s ease,

        transform 0.3s ease;

}

.product-card:hover {

    box-shadow:

        0 8px 24px rgba(46, 117, 182, 0.18);

    transform: translateY(-4px);

}

.product-card-img {

    width: 88%;

    margin: 0 auto 18px;

    overflow: hidden;

}

.product-card-img img {

    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    object-position: center;

    border-radius: 20px;

    transform: scale(1.08);

    transition: transform 0.4s ease;

}

.product-card:hover .product-card-img img {

    transform: scale(1.12);

}

.product-card h3 {

    flex: 1;

    margin: 10px 0 0;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.5;

    color: var(--color-heading);

}

.btn-more {

    align-self: flex-end;

    margin-top: 16px;

    padding: 5px 16px;

    border: 1px solid #8fa8c8;

    border-radius: 5px;

    color: var(--color-heading);

    font-size: 13px;

    font-weight: 500;

    line-height: 1.4;

    transition:

        background 0.25s ease,

        border-color 0.25s ease,

        color 0.25s ease;

}

.btn-more:hover {

    background: #f3f6fa;

    border-color: #8fa8c8;

    color: var(--color-heading);

}

/* =========================================================

   12. INQUIRY FORM

   ========================================================= */

.inquiry-form {

    width: 100%;

}

.quote-field {

    margin-bottom: 20px;

}

.quote-field label {

    display: block;

    margin-bottom: 7px;

    font-weight: 600;

}

.required-mark {

    margin-left: 3px;

    color: #b00020;

}

.quote-field input,

.quote-field textarea,

.quote-field select {

    width: 100%;

    max-width: 100%;

    padding: 12px 14px;

    border: 1px solid #ccc;

    border-radius: 2px;

    background: #fff;

    color: #222;

    outline: none;

    transition:

        border-color 0.2s ease,

        box-shadow 0.2s ease;

}

.quote-field textarea {

    min-height: 150px;

    resize: vertical;

}

.quote-field input:focus,

.quote-field textarea:focus,

.quote-field select:focus {

    border-color: #555;

    box-shadow:

        0 0 0 2px rgba(0, 0, 0, 0.06);

}

.quote-submit {

    margin-top: 10px;

}

.submit-btn {

    min-height: 46px;

    padding: 11px 24px;

    border: 0;

    background: #222;

    color: #fff;

    font-weight: 600;

    border-radius: 2px;

}

/* =========================================================

   13. SUCCESS POPUP

   ========================================================= */

.success-popup[hidden] {

    display: none;

}

.success-popup {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}

.success-popup-overlay {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.5);

}

.success-popup-content {

    position: relative;

    z-index: 1;

    width: min(480px, 100%);

    padding: 40px 30px 35px;

    background: #fff;

    text-align: center;

    box-shadow:

        0 20px 60px rgba(0, 0, 0, 0.2);

}

.success-popup-close {

    position: absolute;

    top: 10px;

    right: 12px;

    width: 40px;

    height: 40px;

    padding: 0;

    border: 0;

    background: transparent;

    font-size: 28px;

    line-height: 1;

}

body.popup-open {

    overflow: hidden;

}

/* =========================================================

   14. RELATED PRODUCTS

   ========================================================= */

.related-products {

    padding: 80px 0;

}

.section-heading {

    max-width: 800px;

    margin: 0 auto 40px;

    text-align: center;

}

.section-heading h2 {

    margin-bottom: 12px;

    font-size: clamp(28px, 4vw, 40px);

    line-height: 1.25;

}

.section-heading p {

    margin-bottom: 0;

    color: #555;

}

.related-products-grid {

    display: grid;

    grid-template-columns:

        repeat(4, minmax(0, 1fr));

    gap: 24px;

}

/* =========================================================

   15. PRODUCTS PAGE

   ========================================================= */

.products-hero-content {

    width: 100%;

    height: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

}

.products-hero-content h1 {

    margin: 0;

    font-size: 36px;

    line-height: 1.2;

    font-weight: 700;

    color: #fff;

    text-align: center;

}

/* =========================================================

   16. NEWS PAGE

   ========================================================= */

.news-section {

    padding: 70px 0 90px;

}

.news-list {

    width: 100%;

    max-width: 1000px;

    margin: 0 auto;

}

.news-item {

    display: grid;

    grid-template-columns:

        150px

        minmax(0, 1fr);

    align-items: center;

    column-gap: 35px;

    padding: 32px 0;

    border-top: 1px solid #dfe5e8;

}

.news-item:last-child {

    border-bottom: 1px solid #dfe5e8;

}

.news-date {

    display: block;

    font-size: 13px;

    color: #78909c;

}

.news-title {

    margin: 0;

    font-size: 19px;

    line-height: 1.55;

    font-weight: 600;

}

.news-title a {

    color: #263238;

    transition: color 0.2s ease;

}

.news-title a:hover {

    color: #607d8b;

}

/* =========================================================

   17. FAQ

   ========================================================= */

.faq-section {

    padding: 48px 0 80px;

}

.faq-section .container {

    width: min(1200px, calc(100% - 40px));

    max-width: 1200px;

    margin: 0 auto;

}

.faq-section .service-title {

    margin: 0 0 36px;

    text-align: left;

    font-size: 30px;

    font-weight: 600;

    line-height: 1.3;

    color: var(--color-heading);

}

.faq-item {

    padding: 26px 0;

    border-bottom: 1px solid #d9e1ea;

}

.faq-item:first-child {

    border-top: 1px solid #d9e1ea;

}

.faq-q {

    margin-bottom: 12px;

    font-size: 17px;

    font-weight: 600;

    color: var(--color-heading);

    text-align: left;

}

.faq-a {

    font-size: 16px;

    color: var(--color-text);

    text-align: left;

}

/* =========================================================

   18. SERVICE PAGE

   ========================================================= */

.service-hero-content h1 {

    margin: 0;

    font-size: 36px;

    line-height: 1.2;

    font-weight: 700;

    color: #fff;

    text-align: center;

}

/* Service Titles */

.service-section h2.service-title {

    margin: 0 0 28px;

    text-align: left;

    font-size: 30px;

    font-weight: 600;

    line-height: 1.3;

    color: #263238;

}

/* =========================================================

   HOW WE WORK

   ========================================================= */

.how-we-work-section {

    padding-top: 48px;

}

.how-we-work-section .service-intro {

    margin: 0 0 36px;

    font-size: 16px;

    line-height: 1.7;

    color: #5f6b73;

}

/* =========================================================

   PROCESS FLOW

   ========================================================= */

.how-we-work-section .process-flow {

    position: relative;

    width: 100%;

    padding: 24px 0 60px;

}

/* =========================================================

   FLOW STEPS

   ========================================================= */

.how-we-work-section .flow-steps {

    position: relative;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    width: 100%;

    padding: 0 20px;

}

/* =========================================================

   INDIVIDUAL STEP

   ========================================================= */

.how-we-work-section .flow-step {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    flex: 1;

    min-width: 0;

    z-index: 2;

}

/* =========================================================

   STEP BOX

   ========================================================= */

.how-we-work-section .step-box {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 90px;

    min-height: 52px;

    padding: 0 16px;

    border: 1px solid #cfd8dc;

    border-radius: 4px;

    background: #fff;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.4;

    color: #263238;

    text-align: center;

    z-index: 3;

}

/* =========================================================

   VERTICAL ARROW

   ========================================================= */

.how-we-work-section .step-arrow {

    position: relative;

    display: block;

    width: 2px;

    height: 30px;

    margin-top: 10px;

    background: #78909c;

    z-index: 2;

}

.how-we-work-section .step-arrow::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -1px;

    width: 8px;

    height: 8px;

    border-right: 2px solid #78909c;

    border-bottom: 2px solid #78909c;

    transform: translateX(-50%) rotate(45deg);

}

/* =========================================================

   HORIZONTAL LARGE FLOW ARROW

   ========================================================= */

.how-we-work-section .flow-line {

    position: absolute;

    left: 20px;

    right: 20px;

    bottom: 30px;

    width: auto;

    height: 4px;

    margin: 0;

    background: #78909c;

    z-index: 1;

}

.how-we-work-section .flow-line::after {

    content: "";

    position: absolute;

    right: -1px;

    top: 50%;

    width: 18px;

    height: 18px;

    border-top: 4px solid #78909c;

    border-right: 4px solid #78909c;

    transform: translateY(-50%) rotate(45deg);

    background: transparent;

}

/* =========================================================

   WHAT WE SUPPORT

   ========================================================= */

.what-we-support-section {

    padding-top: 48px;

}

/* =========================================================

   INDUSTRIES

   ========================================================= */

.industries-section {

    padding-top: 48px;

}

.industries-section .industries-grid {

    display: flex;

    justify-content: center;

    align-items: stretch;

    gap: 18px;

    width: 100%;

}

.industries-section .industry-item {

    flex: 1 1 0;

    max-width: 190px;

}

.industries-section .industry-item img {

    display: block;

    width: 100%;

    height: 150px;

    object-fit: cover;

    border-radius: 6px;

}

/* =========================================================

   19. ARTICLE PAGE

   ========================================================= */

.article-wrapper {

    padding: 105px 0 90px;

}

.article-wrapper .container {

    width: min(900px, calc(100% - 40px));

}

.article-header {

    padding-bottom: 32px;

    border-bottom: 1px solid #dfe5e8;

}

.article-title {

    margin: 0 0 24px;

    font-size: 38px;

    line-height: 1.3;

    font-weight: 700;

    color: #263238;

}

.article-meta {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    font-size: 14px;

    color: #78909c;

}

.article-share-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    border-radius: 4px;

}

.article-share-linkedin {

    color: #0a66c2;

    border: 1px solid #0a66c2;

}

.article-share-x {

    color: #000;

    border: 1px solid #000;

}

.article-share-link svg {

    width: 16px;

    height: 16px;

}

.article-keywords,

.article-excerpt {

    padding: 25px 0;

    border-bottom: 1px solid #dfe5e8;

}

.article-info-row {

    display: grid;

    grid-template-columns:

        100px

        minmax(0, 1fr);

    column-gap: 24px;

}

.article-info-label {

    font-size: 15px;

    font-weight: 600;

    color: #263238;

}

.article-keyword-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px 10px;

}

.article-keyword {

    padding: 5px 10px;

    border: 1px solid #d9e0e3;

    border-radius: 3px;

    background: #f7f9fa;

    font-size: 13px;

    color: #607d8b;

}

.article-excerpt p {

    margin: 0;

    font-size: 15px;

    line-height: 1.8;

    color: #546e7a;

}

.article-content {

    padding: 46px 0 58px;

    font-size: 16px;

    line-height: 1.9;

    color: #455a64;

}

.article-content p {

    margin: 0 0 26px;

}

.article-content h2 {

    margin: 46px 0 20px;

    font-size: 27px;

    color: #263238;

}

.article-content h3 {

    margin: 36px 0 16px;

    font-size: 21px;

    color: #263238;

}

.article-content ul,

.article-content ol {

    margin: 0 0 28px;

    padding-left: 26px;

}

.article-content li {

    margin-bottom: 10px;

}

.article-content img {

    display: block;

    width: auto;

    max-width: 100%;

    height: auto;

    margin: 36px auto;

    border-radius: 4px;

}

.article-content blockquote {

    margin: 34px 0;

    padding: 20px 24px;

    border-left: 3px solid #b0bec5;

    background: #f5f7f8;

}

/* =========================================================

   20. PRODUCT DETAIL

   ========================================================= */

.detail-section {

    padding: 65px 0 75px;

}

.detail-section .container {

    max-width: 1200px;

}

/* =========================================================

   PRODUCT DETAIL - PRODUCT DESCRIPTION

   ========================================================= */

.product-content {

    max-width: 980px;

    margin: 0 auto 52px;

}

.product-content h2 {

    margin: 0 0 20px;

    font-size: 28px;

    line-height: 1.4;

    font-weight: 700;

    color: #263238;

}

.product-content h3 {

    margin: 32px 0 13px;

    font-size: 20px;

    line-height: 1.45;

    font-weight: 600;

    color: #263238;

}

.product-content p {

    margin: 0 0 18px;

    font-size: 16px;

    line-height: 1.8;

    color: #455a64;

}

.product-content ul {

    margin: 0 0 25px;

    padding-left: 22px;

    list-style: disc;

}

.product-content li {

    margin-bottom: 8px;

    font-size: 16px;

    line-height: 1.75;

    color: #455a64;

}

/* =========================================================

   PRODUCT DETAIL - PRODUCT DESCRIPTION BLOCK

   ========================================================= */

.product-content-block {

    max-width: 1000px;

    margin: 0 auto 50px;

}

.product-content-block h2 {

    margin: 0 0 24px;

    font-size: 28px;

    font-weight: 600;

    line-height: 1.35;

    color: #222;

    text-align: left;

}

.product-description {

    font-size: 16px;

    font-weight: 400;

    line-height: 1.9;

    color: #555;

    text-align: left;

}

.product-description br + br {

    content: "";

    display: block;

    margin-bottom: 18px;

}

/* =========================================================

   PRODUCT DETAIL - GALLERY

   ========================================================= */

.detail-gallery {

    display: grid;

    grid-template-columns:

        repeat(4, minmax(0, 1fr));

    gap: 20px;

    width: 100%;

    max-width: 1120px;

    margin: 0 auto 65px;

}

.detail-gallery .detail-item {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 230px;

    margin: 0;

    padding: 12px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e2e7eb;

    border-radius: 10px;

    overflow: hidden;

    transition:

        box-shadow 0.25s ease,

        transform 0.25s ease;

}

.detail-gallery .detail-item img {

    display: block;

    width: 100%;

    height: 100%;

    margin: 0;

    object-fit: contain;

    border-radius: 8px;

    transition: transform 0.25s ease;

}

.detail-gallery .detail-item:hover {

    transform: translateY(-2px);

    box-shadow:

        0 8px 22px rgba(0, 0, 0, 0.10);

}

.detail-gallery .detail-item:hover img {

    transform: scale(1.03);

}

/* =========================================================

   PRODUCT DETAIL - CTA

   ========================================================= */

.detail-cta {

    max-width: 980px;

    margin: 0 auto 60px;

    padding: 42px 48px;

    text-align: center;

    border-radius: 12px;

    background: #f5f7f8;

}

.detail-cta-title {

    margin-bottom: 12px;

    font-size: 27px;

    line-height: 1.4;

    font-weight: 700;

    color: #263238;

}

.detail-cta-text {

    margin-bottom: 15px;

    font-size: 16px;

    line-height: 1.75;

    color: #455a64;

}

.detail-cta-text:last-child {

    margin-bottom: 0;

}

/* =========================================================

   PRODUCT DETAIL - REQUEST A QUOTE

   ========================================================= */

.detail-section .contact-quote-section {

    padding: 70px 0;

    border-top: 1px solid #e3e8eb;

}

.detail-section .contact-quote-layout {

    width: 100%;

}

.detail-section .quote-column {

    max-width: 900px;

    margin: 0 auto;

}

.detail-section .quote-column .service-title {

    margin: 0 0 15px;

    font-size: 30px;

    line-height: 1.3;

    font-weight: 600;

    color: #263238;

}

.detail-section .quote-intro {

    margin-bottom: 35px;

    font-size: 16px;

    line-height: 1.75;

    color: #5f6b73;

}

.detail-section .quote-form {

    width: 100%;

}

.detail-section .quote-group {

    margin-bottom: 35px;

}

.detail-section .quote-group h3 {

    margin: 0 0 20px;

    padding-bottom: 10px;

    border-bottom: 1px solid #e0e5e8;

    font-size: 18px;

    font-weight: 600;

    color: #263238;

}

.detail-section .quote-row {

    display: grid;

    grid-template-columns:

        repeat(2, minmax(0, 1fr));

    gap: 22px;

}

.detail-section .quote-field {

    margin-bottom: 20px;

}

.detail-section .quote-field label {

    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 600;

    color: #263238;

}

.detail-section .quote-field input,

.detail-section .quote-field textarea,

.detail-section .quote-field select {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #cfd8dc;

    border-radius: 4px;

    background: #fff;

    color: #222;

    outline: none;

    transition:

        border-color 0.2s ease,

        box-shadow 0.2s ease;

}

.detail-section .quote-field textarea {

    min-height: 170px;

    resize: vertical;

}

.detail-section .quote-field input:focus,

.detail-section .quote-field textarea:focus,

.detail-section .quote-field select:focus {

    border-color: #78909c;

    box-shadow:

        0 0 0 2px rgba(120, 144, 156, 0.12);

}

.detail-section .quote-submit {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 0 28px;

    border: 0;

    border-radius: 4px;

    background: #263238;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    transition:

        transform 0.2s ease,

        opacity 0.2s ease;

}

.detail-section .quote-submit:hover {

    transform: translateY(-1px);

    opacity: 0.9;

}

/* =========================================================

   PRODUCT DETAIL - NAVIGATION

   ========================================================= */

.product-navigation {

    display: grid;

    grid-template-columns:

        1fr

        auto

        1fr;

    align-items: center;

    gap: 25px;

    max-width: 1100px;

    margin: 0 auto;

    padding-top: 40px;

    border-top: 1px solid #dfe5e8;

}

.product-navigation a {

    color: #607d8b;

    font-size: 14px;

    font-weight: 500;

    transition: color 0.2s ease;

}

.product-navigation a:hover {

    color: #263238;

}

.product-navigation a:first-child {

    text-align: left;

}

.product-navigation a:last-child {

    text-align: right;

}

.product-navigation .products-link {

    text-align: center;

}

/* =========================================================

   21. CONTACT PAGE

   =========================================================

   IMPORTANT:

   Contact page uses body > .contact-quote-section.

   Product Detail uses:

   body > main > .detail-section > .contact-quote-section

   Therefore these rules affect Contact only.

   ========================================================= */

body > .contact-quote-section {

    padding: 70px 0;

    border-top: 1px solid #e3e8eb;

}

body > .contact-quote-section .contact-quote-layout {

    display: grid;

    grid-template-columns:

        minmax(0, 1fr)

        minmax(0, 600px);

    gap: 70px;

    align-items: start;

}

body > .contact-quote-section .contact-info-column {

    min-width: 0;

}

body > .contact-quote-section .quote-column {

    width: 100%;

    max-width: 600px;

    margin: 0;

}

body > .contact-quote-section .quote-intro {

    max-width: 600px;

    margin-bottom: 25px;

    font-size: 16px;

    line-height: 1.75;

    color: #5f6b73;

}

/* Contact form groups use the same content as product detail. */

body > .contact-quote-section .inquiry-form .quote-group {

    margin-bottom: 25px;

}

body > .contact-quote-section .inquiry-form .quote-group h3 {

    margin: 0 0 19px;

    padding-bottom: 10px;

    border-bottom: 1px solid #dfe5e8;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.03em;

    color: #263238;

}

body > .contact-quote-section .inquiry-form .quote-field {

    width: 100%;

}

/* Contact only: first four fields form two columns; country spans both. */

body > .contact-quote-section .contact-fields-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 16px;

}

body > .contact-quote-section .contact-fields-grid > .quote-field {

    min-width: 0;

}

body > .contact-quote-section .contact-fields-grid > .quote-field:last-child {

    grid-column: 1 / -1;

}

/* Contact Inquiry Form Component */

body > .contact-quote-section

.quote-column

[data-component="inquiry-form"] {

    width: 100%;

    max-width: 600px;

    transform: none;

}

body > .contact-quote-section

.quote-column

[data-component="inquiry-form"] input,

body > .contact-quote-section

.quote-column

[data-component="inquiry-form"] textarea,

body > .contact-quote-section

.quote-column

[data-component="inquiry-form"] select {

    width: 100%;

    max-width: 100%;

}

/* Contact Form Textarea */

body > .contact-quote-section

.quote-column

[data-component="inquiry-form"]

textarea {

    min-height: 150px;

}

/* =========================================================

   22. TABLET

   ========================================================= */

@media (max-width: 1024px) {

    .container {

        width: min(

            100% - 32px,

            960px

        );

    }

    .site-nav ul {

        gap: 22px;

    }

    .welcome-grid {

        gap: 40px;

    }

    .footer-grid {

        grid-template-columns:

            repeat(2, minmax(0, 1fr));

        gap: 40px;

    }

    .footer-logo-col {

        grid-column: 1 / -1;

    }

    .related-products-grid {

        grid-template-columns:

            repeat(3, minmax(0, 1fr));

    }

    .detail-gallery {

        grid-template-columns:

            repeat(3, minmax(0, 1fr));

    }

    .page-hero {

        min-height: 320px;

    }

    .page-hero-content h1 {

        font-size: 38px;

    }

    /* Contact */

    body > .contact-quote-section

    .contact-quote-layout {

        grid-template-columns:

            minmax(0, 1fr)

            minmax(0, 520px);

        gap: 45px;

    }

    body > .contact-quote-section

    .quote-column {

        max-width: 520px;

    }

}

/* =========================================================

   23. MOBILE

   ========================================================= */

@media (max-width: 768px) {

    .container {

        width: min(

            100% - 28px,

            680px

        );

    }

    /* Header */

    .header-inner {

        min-height: 68px;

        position: relative;

    }

    .logo-mark {

        height: 42px;

    }

    .logo-img {

        max-width: 160px;

        max-height: 42px;

    }

    .nav-toggle {

        display: block;

    }

    /* Navigation */

    .site-nav {

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        display: none;

        margin-left: 0;

        background: #fff;

        border-top: 1px solid #e8e8e8;

        border-bottom: 1px solid #e8e8e8;

        box-shadow:

            0 8px 20px rgba(0, 0, 0, 0.08);

    }

    .site-nav.is-open {

        display: block;

    }

    .site-nav ul {

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 8px 0;

    }

    .site-nav li {

        width: 100%;

    }

    .site-nav a {

        width: 100%;

        min-height: 48px;

        padding: 10px 20px;

        justify-content: flex-start;

    }

    .site-nav a::after {

        display: none;

    }

    /* Hero */

    .hero {

        min-height: 420px;

    }

    .page-hero {

        min-height: 270px;

    }

    .page-hero-content {

        padding: 35px 18px;

    }

    .page-hero-content h1 {

        font-size: 32px;

    }

    /* Welcome */

    .welcome {

        padding: 55px 0;

    }

    .welcome-subtitle {

        margin-bottom: 35px;

    }

    .welcome-grid {

        grid-template-columns: 1fr;

        gap: 35px;

    }

    /* Footer */

    .site-footer {

        padding-top: 45px;

    }

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 40px 0;

    }

    .footer-logo-col {

        grid-column: auto;

    }

    /* Products */

    .product-grid {

        grid-template-columns:

            repeat(2, minmax(0, 1fr));

        gap: 20px;

    }

    .related-products-grid {

        grid-template-columns:

            repeat(2, minmax(0, 1fr));

    }

    /* News */

    .news-item {

        grid-template-columns:

            110px

            minmax(0, 1fr);

        column-gap: 20px;

        padding: 24px 0;

    }

    /* Article */

    .article-wrapper {

        padding: 78px 0 60px;

    }

    .article-title {

        font-size: 30px;

    }

    /* Product Detail */

    .detail-section {

        padding: 50px 0 60px;

    }

    .detail-gallery {

        grid-template-columns:

            repeat(2, minmax(0, 1fr));

        gap: 18px;

    }

    .detail-gallery .detail-item {

        height: 220px;

    }

    .detail-cta {

        padding: 35px 25px;

    }

    .detail-section .quote-row {

        grid-template-columns: 1fr;

        gap: 0;

    }

    .product-navigation {

        grid-template-columns: 1fr;

        gap: 15px;

        text-align: center;

    }

    .product-navigation a:first-child,

    .product-navigation a:last-child,

    .product-navigation .products-link {

        text-align: center;

    }

    /* Contact */

    body > .contact-quote-section {

        padding: 55px 0;

    }

    body > .contact-quote-section

    .contact-quote-layout {

        grid-template-columns: 1fr;

        gap: 45px;

    }

    body > .contact-quote-section

    .quote-column {

        max-width: 100%;

    }

    body > .contact-quote-section

    .quote-intro {

        max-width: 100%;

    }

    body > .contact-quote-section

    .quote-column

    [data-component="inquiry-form"] {

        max-width: 100%;

    }

}

/* =========================================================

   24. SMALL MOBILE

   ========================================================= */

@media (max-width: 480px) {

    .container {

        width: calc(100% - 24px);

    }

    body {

        font-size: 15px;

    }

    /* Header */

    .header-inner {

        min-height: 62px;

    }

    .logo-mark {

        height: 36px;

    }

    .logo-img {

        max-width: 130px;

        max-height: 36px;

    }

    /* Hero */

    .hero {

        min-height: 350px;

    }

    .page-hero {

        min-height: 230px;

    }

    .page-hero-content {

        padding: 30px 14px;

    }

    .page-hero-content h1 {

        font-size: 25px;

        line-height: 1.35;

    }

    /* Welcome */

    .welcome {

        padding: 45px 0;

    }

    /* Products */

    .product-grid {

        grid-template-columns: 1fr;

    }

    .related-products-grid {

        grid-template-columns: 1fr;

    }

    /* Footer */

    .footer-nav ul {

        flex-direction: column;

        align-items: center;

        gap: 8px;

    }

    /* News */

    .news-item {

        grid-template-columns: 1fr;

        gap: 8px;

    }

    .news-date {

        font-size: 12px;

    }

    .news-title {

        font-size: 17px;

    }

    /* Article */

    .article-wrapper {

        padding: 72px 0 50px;

    }

    .article-wrapper .container {

        width: calc(100% - 24px);

    }

    .article-title {

        font-size: 26px;

    }

    /* Product Detail */

    .detail-section {

        padding: 35px 0 45px;

    }

    .product-content h2 {

        font-size: 24px;

    }

    .product-content h3 {

        font-size: 19px;

    }

    .product-content p,

    .product-content li {

        font-size: 15px;

    }

    .detail-gallery {

        grid-template-columns: 1fr;

        gap: 16px;

        margin-bottom: 45px;

    }

    .detail-gallery .detail-item {

        height: 210px;

        padding: 10px;

    }

    .detail-cta {

        padding: 28px 18px;

    }

    .detail-cta-title {

        font-size: 22px;

    }

    .detail-cta-text {

        font-size: 15px;

    }

    .detail-section .contact-quote-section {

        padding: 50px 0;

    }

    .detail-section .quote-column .service-title {

        font-size: 25px;

    }

    .detail-section .quote-intro {

        font-size: 15px;

    }

    .detail-section .quote-submit {

        width: 100%;

    }

    /* Contact */

    body > .contact-quote-section {

        padding: 50px 0;

    }

    body > .contact-quote-section

    .quote-column .service-title {

        font-size: 25px;

    }

    body > .contact-quote-section

    .quote-intro {

        font-size: 15px;

    }

    body > .contact-quote-section

    .quote-submit {

        width: 100%;

    }

}

/* =========================================================

   PRODUCT DETAIL HERO TITLE

   ========================================================= */

.product-detail-hero .page-hero-content h1 {

    font-size: 36px;

    line-height: 1.25;

}

/* Product detail: outlined navigation links matching the approved reference. */

.product-navigation {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 16px;

}

.product-navigation a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 38px;

    padding: 8px 16px;

    border: 1px solid #cbdcf0;

    border-radius: 5px;

    background: #fff;

    color: #236ab7;

    font-size: 13px;

    line-height: 1.4;

    text-align: center;

    text-decoration: none;

    transition: border-color .2s ease, background-color .2s ease;

}

.product-navigation a:hover {

    color: #236ab7;

    border-color: #2c7dce;

    background: #f6faff;

}

.product-navigation .product-nav-prev {

    border-color: #2c7dce;

}

.product-navigation .product-nav-prev,

.product-navigation .product-nav-next {

    gap: 4px;

}

.product-navigation .product-nav-item strong {

    font-weight: 400;

}

.product-navigation .product-nav-item.disabled {

    opacity: .55;

    pointer-events: none;

}

@media (max-width: 600px) {

    .product-navigation {

        gap: 10px;

    }

    .product-navigation a {

        max-width: 100%;

    }

}

/* =========================================================

   CONTACT QUOTE FORM — rexcrafttech.com/contact.html styling

   Scope: Contact page only; product inquiry and JS stay unchanged.

   ========================================================= */

body > .contact-quote-section {

    background: #f6f8fb;

}

body > .contact-quote-section .quote-column > .service-title {

    color: #111827;

}

body > .contact-quote-section .quote-intro {

    color: #657795;

    font-size: 14px;

    line-height: 1.75;

    margin-bottom: 24px;

}

body > .contact-quote-section .inquiry-form {

    background: #fff;

    border: 1px solid #d9e4f0;

    border-radius: 5px;

    padding: 20px;

    box-sizing: border-box;

}

body > .contact-quote-section .inquiry-form .quote-group {

    margin-bottom: 24px;

}

body > .contact-quote-section .inquiry-form .quote-group h3 {

    border: 0;

    padding: 0;

    margin: 0 0 17px;

    color: #172b40;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.025em;

}

body > .contact-quote-section .inquiry-form .quote-field {

    margin: 0 0 15px;

}

body > .contact-quote-section .inquiry-form .quote-field label {

    display: block;

    margin-bottom: 6px;

    color: #2d4054;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.45;

}

body > .contact-quote-section .inquiry-form .required-mark {

    color: #d23434;

}

body > .contact-quote-section .contact-fields-grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 15px;

}

body > .contact-quote-section .inquiry-form .quote-field input,

body > .contact-quote-section .inquiry-form .quote-field select,

body > .contact-quote-section .inquiry-form .quote-field textarea {

    box-sizing: border-box;

    display: block;

    width: 100%;

    max-width: 100%;

    border: 1px solid #cfdaea;

    border-radius: 3px;

    background: #fff;

    color: #26384c;

    font: inherit;

    font-size: 13px;

    outline: none;

}

body > .contact-quote-section .inquiry-form .quote-field input,

body > .contact-quote-section .inquiry-form .quote-field select {

    height: 31px;

    padding: 5px 10px;

}

body > .contact-quote-section .inquiry-form .quote-field textarea {

    min-height: 120px;

    padding: 9px 10px;

    resize: vertical;

}

body > .contact-quote-section .inquiry-form .quote-field input:focus,

body > .contact-quote-section .inquiry-form .quote-field select:focus,

body > .contact-quote-section .inquiry-form .quote-field textarea:focus {

    border-color: #327bbd;

    box-shadow: 0 0 0 2px rgba(47, 117, 185, 0.12);

}

body > .contact-quote-section .inquiry-form .quote-submit {

    margin-top: 6px;

}

body > .contact-quote-section .inquiry-form .submit-btn {

    background: #263238;

    border: 1px solid #263238;

    border-radius: 3px;

    color: white;

    min-height: 30px;

    padding: 6px 15px;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.3;

    cursor: pointer;

}

body > .contact-quote-section .inquiry-form .submit-btn:hover {

    background: #1c282e;

    border-color: #1c282e;

}

@media (max-width: 600px) {

    body > .contact-quote-section .contact-fields-grid {

        grid-template-columns: minmax(0, 1fr);

    }

    body > .contact-quote-section .contact-fields-grid > .quote-field:last-child {

        grid-column: auto;

    }

    body > .contact-quote-section .inquiry-form {

        padding: 17px 15px;

    }

}

/* =========================================================

   CONTACT PAGE — wider right column and matching body text

   Contact-only overrides. Other page styles remain unchanged.

   ========================================================= */

@media (min-width: 1025px) {

    body > .contact-quote-section .contact-quote-layout {

        grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);

        gap: 30px;

    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    body > .contact-quote-section .contact-quote-layout {

        grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);

        gap: 26px;

    }

}

body > .contact-quote-section .quote-column,

body > .contact-quote-section .quote-intro,

body > .contact-quote-section .quote-column [data-component="inquiry-form"] {

    max-width: none;

}

body > .contact-quote-section .inquiry-form .quote-group h3 {

    font-size: 16px;

}

body > .contact-quote-section .inquiry-form .quote-field label,

body > .contact-quote-section .inquiry-form .quote-field input,

body > .contact-quote-section .inquiry-form .quote-field select,

body > .contact-quote-section .inquiry-form .quote-field textarea {

    font-size: 16px;

}

body > .contact-quote-section .inquiry-form .quote-field input,

body > .contact-quote-section .inquiry-form .quote-field select {

    height: 42px;

    padding: 8px 12px;

}

body > .contact-quote-section .inquiry-form .quote-field textarea {

    padding: 10px 12px;

}

body > .contact-quote-section .inquiry-form .submit-btn {

    font-size: 16px;

    padding: 9px 18px;

}

/* Shared inquiry success dialog — Contact and product details */

.success-popup[hidden] { display: none !important; }

.success-popup { padding: 20px; }

.success-popup-overlay { background: rgba(22, 34, 51, .36); }

.success-popup-content {

    box-sizing: border-box;

    width: min(400px, 100%);

    max-height: calc(100dvh - 40px);

    overflow-y: auto;

    border: 1px solid #e3eaf3;

    border-radius: 14px;

    background: #fff;

    box-shadow: 0 20px 60px rgba(28, 51, 81, .18);

    padding: 34px 30px 32px;

    font-family: Arial, sans-serif;

    color: #172638;

}

.success-popup-close {

    top: 12px;

    right: 12px;

    width: 30px;

    height: 30px;

    border-radius: 8px;

    color: #64748b;

    font-size: 25px;

    cursor: pointer;

}

.success-popup-close:hover, .success-popup-close:focus-visible { background: #f1f5f9; color: #172638; }

.success-popup-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 62px;

    height: 62px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #e8f6ef;

    color: #1c9661;

}

.success-popup-icon svg { width: 32px; height: 32px; }

.success-popup-content h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; font-weight: 700; }

.success-popup-content p { margin: 0 auto; max-width: 320px; font-size: 15px; line-height: 1.6; color: #536174; }

@media (max-width: 480px) {

    .success-popup-content { padding: 34px 22px 28px; }

    .success-popup-content h2 { font-size: 20px; }

}

/* Article navigation: three equal regions, preserve responsive stacking */
.article-navigation { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); align-items:center; gap:16px; padding:35px 0; }
.article-navigation > :first-child { justify-self:start; }
.article-navigation > :nth-child(2) { justify-self:center; }
.article-navigation > :last-child { justify-self:end; }
.article-navigation a { display:inline-flex; align-items:center; justify-content:center; padding:9px 15px; border:1px solid #d0dbe5; border-radius:5px; color:#236ab7; text-align:center; }
.article-navigation a.is-disabled, .article-navigation a[aria-disabled="true"] { color:#a4afb8; background:#f4f6f8; border-color:#e0e5e9; cursor:not-allowed; pointer-events:none; }
@media (max-width: 600px) { .article-navigation { grid-template-columns:1fr; } .article-navigation > * { justify-self:stretch !important; } }


/* Article detail: editorial heading and clearer share controls. */
.article-wrapper .article-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 12px 0 34px;
    text-align: center;
}
.article-wrapper .article-title {
    max-width: 790px;
    margin: 0 auto 26px;
    color: #263238;
    font-size: clamp(29px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.022em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.article-wrapper .article-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.article-wrapper .article-share-link {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    transition: background-color .2s ease, color .2s ease;
}
.article-wrapper .article-share-link svg { width: 22px; height: 22px; }
.article-wrapper .article-share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}
@media (max-width: 480px) {
    .article-wrapper .article-header { padding-top: 0; }
    .article-wrapper .article-title { font-size: 27px; }
    .article-wrapper .article-meta-row { gap: 8px; }
}


/* News listing: editorial cards; scoped to News page only. */
.news-section .news-list { max-width: 1100px; }
.news-section .news-item {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    align-items: center;
    column-gap: 34px;
    padding: 30px 0;
    border-top: 1px solid #dfe5e8;
}
.news-section .news-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #edf2f6;
}
.news-section .news-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-section .news-thumbnail:hover img { transform: scale(1.035); }
/* News fallback: transparent company logo, without cropping. */
.news-section .news-thumbnail img.news-logo-fallback {
    width: 76%;
    height: 76%;
    max-width: 76%;
    object-fit: contain;
    transform: none;
}
.news-section .news-thumbnail:hover img.news-logo-fallback {
    transform: none;
}

.news-section .news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e8edf2, #d7e0e7);
    color: #617789;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .14em;
}
.news-section .news-item-body { min-width: 0; }
.news-section .news-date { margin-bottom: 10px; font-size: 13px; letter-spacing: .025em; }
.news-section .news-title { margin: 0 0 12px; font-size: clamp(20px, 2vw, 25px); line-height: 1.35; }
.news-section .news-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-width: 760px; margin: 0 0 16px; color: #60717e; font-size: 15px; line-height: 1.75; }
.news-section .news-read-more { display: inline-flex; align-items: center; gap: 8px; color: #236ab7; font-size: 14px; font-weight: 600; }
.news-section .news-read-more:hover, .news-section .news-title a:hover { color: #14518d; }
/* Keep X and LinkedIn share controls visually consistent. */
.article-wrapper .article-share-x:hover { background: #111; color: #fff; }
@media (max-width: 768px) {
    .news-section .news-item { grid-template-columns: minmax(135px, 190px) minmax(0,1fr); column-gap: 22px; }
}
@media (max-width: 560px) {
    .news-section .news-item { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
    .news-section .news-thumbnail { max-width: none; aspect-ratio: 16 / 9; }
    .news-section .news-title { font-size: 21px; }
    .news-section .news-excerpt { font-size: 14px; }
}

/* News page: transparent background for the company logo fallback only. */
.news-section .news-thumbnail:has(> img.news-logo-fallback) {
    background: transparent;
}
