/* =========================================================
   PAGE 1 — ELECTRONIC COMPONENTS
   File: assets/css/services.css

   Global font inherits from header/site stylesheet.
   All styles are scoped to .ec-page.
   ========================================================= */

.ec-page {
    --ec-primary: #123f78;
    --ec-primary-dark: #0a2850;
    --ec-accent: #37a6d7;
    --ec-text: #202d3d;
    --ec-muted: #637184;
    --ec-border: #e0e7ef;
    --ec-surface: #f4f7fb;

    font-family: inherit;
    color: var(--ec-text);
    background: #ffffff;
    overflow: hidden;
}

.ec-page *,
.ec-page *::before,
.ec-page *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.ec-page h1,
.ec-page h2,
.ec-page h3,
.ec-page p {
    margin-top: 0;
}

.ec-page a {
    text-decoration: none;
}

.ec-page p {
    text-align: justify;
    text-justify: inter-word;
}

.ec-page .ec-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.ec-page .ec-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--ec-primary);
}


/* =========================================================
   1. HERO
   ========================================================= */

.ec-page .ec-hero {
    position: relative;
    padding: 30px 0 0;
    background:
        radial-gradient(circle at 90% 20%,
            rgba(55, 166, 215, 0.16),
            transparent 27%),
        linear-gradient(125deg,
            #f3f7fc 0%,
            #ffffff 55%,
            #edf5fb 100%);
    border-bottom: 1px solid #e7edf4;
}

.ec-page .ec-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #536579;
    transition: color 0.25s ease;
}

.ec-page .ec-back-link:hover {
    color: var(--ec-primary);
}

.ec-page .ec-back-link span {
    line-height: 1;
}

.ec-page .ec-hero-content {
    max-width: 820px;
    padding: 75px 0 78px;
}

.ec-page .ec-hero-content .ec-eyebrow {
    padding: 7px 12px;
    border: 1px solid #d6e5f4;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.7);
}

.ec-page .ec-hero-content h1 {
    max-width: 800px;
    margin-bottom: 24px;
    color: var(--ec-primary-dark);
    line-height: 1.08;
}

.ec-page .ec-hero-content h1 span {
    display: block;
    margin-top: 10px;
    color: #4384b7;
    line-height: 1.25;
}

.ec-page .ec-hero-content>p {
    max-width: 700px;
    margin-bottom: 30px;
    color: #596a7e;
    line-height: 1.9;
}

.ec-page .ec-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

.ec-page .ec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 51px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.ec-page .ec-btn:hover {
    transform: translateY(-2px);
}

.ec-page .ec-btn span {
    line-height: 1;
}

.ec-page .ec-btn-primary {
    color: #ffffff;
    background: var(--ec-primary);
    box-shadow: 0 8px 20px rgba(18, 63, 120, 0.13);
}

.ec-page .ec-btn-primary:hover {
    color: #ffffff;
    background: var(--ec-primary-dark);
}

.ec-page .ec-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ec-primary);
}

.ec-page .ec-text-link span {
    transition: transform 0.25s ease;
}

.ec-page .ec-text-link:hover span {
    transform: translateY(3px);
}

.ec-page .ec-hero-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #dce6f0;
}

.ec-page .ec-hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 18px 24px;
    border-right: 1px solid #dce6f0;
    color: #34475d;
}

.ec-page .ec-hero-stat:first-child {
    padding-left: 0;
}

.ec-page .ec-hero-stat:last-child {
    border-right: 0;
}

.ec-page .ec-stat-number {
    color: #4188bd;
}


/* =========================================================
   2. CATEGORY INTRODUCTION
   ========================================================= */

.ec-page .ec-intro {
    padding: 88px 0 70px;
}

.ec-page .ec-intro-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.ec-page .ec-intro h2 {
    max-width: 530px;
    margin-bottom: 0;
    color: var(--ec-primary-dark);
    line-height: 1.22;
}

.ec-page .ec-intro-grid>p {
    margin-bottom: 0;
    padding-left: 25px;
    border-left: 3px solid var(--ec-accent);
    color: var(--ec-muted);
    line-height: 1.9;
}


/* =========================================================
   3. PRODUCT CATEGORY SECTIONS
   ========================================================= */

.ec-page .ec-categories {
    padding-bottom: 50px;
    background: linear-gradient(to bottom,
            #f7f9fc 0%,
            #ffffff 100%);
}

.ec-page .ec-category-section {
    padding: 68px 0 74px;
    border-bottom: 1px solid var(--ec-border);
    scroll-margin-top: 35px;
}

.ec-page .ec-category-section:last-child {
    border-bottom: 0;
}

.ec-page .ec-category-heading {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-bottom: 35px;
}

/* .ec-page .ec-category-number {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 70px;
    height: 70px;
    border: 1px solid #d7e5f3;
    border-radius: 9px;
    background: #ffffff;
    color: #4387b8;
    box-shadow: 0 5px 18px rgba(23, 56, 91, 0.04);
} */

.ec-page .ec-category-heading-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* max-width: 850px; */
}

.ec-page .ec-category-heading-content .ec-eyebrow {
    margin-bottom: 8px;
}

.ec-page .ec-category-heading h2 {
    margin-bottom: 13px;
    color: var(--ec-primary-dark);
    line-height: 1.2;
}

.ec-page .ec-category-heading-content p,
.ec-page .ec-category-heading>p {
    /* max-width: 850px; */
    margin-bottom: 0;
    color: var(--ec-muted);
    line-height: 1.8;
}


/* =========================================================
   4. PRODUCT GRID AND CARDS
   ========================================================= */

.ec-page .ec-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

/* .ec-page .ec-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(19, 49, 82, 0.025);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
} */
.ec-page .ec-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 0;
    /* left, right, bottom border remove */
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(16, 43, 75, .09);
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Animated top border */

.ec-page .ec-product-card::before {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--ec-accent);
    content: "";
    transition: width 0.35s ease;
}

/* .ec-page .ec-product-card:hover {
    transform: translateY(-5px);
    border-color: #c7d9ea;
    box-shadow: 0 15px 35px rgba(19, 49, 82, 0.075);
} */
.ec-page .ec-product-card:hover {
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(22, 59, 104, .15);
}

.ec-page .ec-product-card:hover::before {
    width: 100%;
}

/* Uniform product images */

.ec-page .ec-product-card>img {
    display: block;
    flex: 0 0 220px;
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    background: #e9f2f9;
    border-bottom: 1px solid #e2edf5;
}

/* Card content */

.ec-page .ec-product-card .ec-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    /* padding: 22px; */
}

/* .ec-page .ec-card-topline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 21px;
} */

.ec-page .ec-card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 29px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #eef5fb;
    color: #3879a9;
}

/* Hide legacy arrow */

.ec-page .ec-card-arrow {
    display: none !important;
}

.ec-page .ec-product-card .ec-card-copy h3 {
    margin: 10px 0 7px;
    color: #0B2545;
    background-color: ;
    /* color: #10284c; */
    font-family: "Manrope", sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.ec-page .ec-product-card .ec-card-copy p {
    margin-bottom: 0;
    color: #647286;
    line-height: 1.75;
}


/* =========================================================
   5. AOS SCROLL ANIMATION SUPPORT
   ========================================================= */

.ec-page [data-aos="fade-up"] {
    opacity: 0;
    transform: translate3d(0, 38px, 0);
    transition-property: opacity, transform;
}

.ec-page [data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.ec-page .ec-product-card[data-aos="fade-up"].aos-animate {
    transform: translate3d(0, 0, 0);
}

.ec-page .ec-product-card[data-aos="fade-up"].aos-animate:hover {
    transform: translate3d(0, -5px, 0);
}


/* =========================================================
   6. SOURCING CTA
   ========================================================= */

.ec-page .ec-sourcing {
    padding: 50px 0 100px;
}

.ec-page .ec-sourcing-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: 40px;
    min-height: 370px;
    padding: 55px 60px;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(circle at 90% 20%,
            rgba(70, 155, 213, 0.23),
            transparent 28%),
        linear-gradient(120deg,
            #0a2850 0%,
            #123f78 65%,
            #155184 100%);
}

.ec-page .ec-sourcing-copy {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.ec-page .ec-sourcing .ec-eyebrow {
    color: #8fd6fa;
}

.ec-page .ec-sourcing h2 {
    max-width: 650px;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.ec-page .ec-sourcing-copy p {
    max-width: 730px;
    margin-bottom: 15px;
    color: #d5e2f1;
    line-height: 1.9;
}

.ec-page .ec-sourcing-copy p+p {
    margin-bottom: 26px;
}

.ec-page .ec-btn-light {
    color: var(--ec-primary-dark);
    background: #ffffff;
}

.ec-page .ec-btn-light:hover {
    color: var(--ec-primary-dark);
    background: #eaf5fd;
}

/* CTA decorative graphic */

.ec-page .ec-sourcing-decoration {
    position: relative;
    width: 230px;
    height: 230px;
    justify-self: center;
    opacity: 0.85;
}

.ec-page .ec-decoration-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(164, 221, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.035);
}

.ec-page .ec-decoration-line {
    position: absolute;
    display: block;
    background: rgba(151, 216, 255, 0.65);
}

.ec-page .ec-line-one {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.ec-page .ec-line-two {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
}

.ec-page .ec-line-three {
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    transform: rotate(45deg);
}

.ec-page .ec-decoration-node {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 2px solid #9adfff;
    border-radius: 50%;
    background: #174c7b;
    box-shadow: 0 0 0 5px rgba(125, 204, 255, 0.1);
}

.ec-page .ec-node-one {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
}

.ec-page .ec-node-two {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

.ec-page .ec-node-three {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
}

.ec-page .ec-node-four {
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
}


/* =========================================================
   7. TABLET RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
    .ec-page .ec-intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ec-page .ec-intro-grid>p {
        max-width: 760px;
    }

    .ec-page .ec-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .ec-page .ec-product-card>img {
        flex-basis: 210px;
        height: 210px;
        min-height: 210px;
        max-height: 210px;
    }

    .ec-page .ec-sourcing-card {
        grid-template-columns: minmax(0, 1fr) 170px;
        gap: 20px;
        padding: 42px 35px;
    }

    .ec-page .ec-sourcing-decoration {
        transform: scale(0.8);
    }
}


/* =========================================================
   8. MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
    .ec-page .ec-container {
        width: calc(100% - 32px);
    }

    .ec-page .ec-hero {
        padding-top: 23px;
    }

    .ec-page .ec-hero-content {
        padding: 52px 0 48px;
    }

    .ec-page .ec-hero-content h1 {
        line-height: 1.08;
    }

    .ec-page .ec-hero-content h1 span {
        line-height: 1.25;
    }

    .ec-page .ec-hero-content>p {
        line-height: 1.85;
    }

    .ec-page .ec-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
    }

    .ec-page .ec-hero-bottom {
        grid-template-columns: 1fr;
    }

    .ec-page .ec-hero-stat {
        min-height: 58px;
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid #dce6f0;
    }

    .ec-page .ec-hero-stat:last-child {
        border-bottom: 0;
    }

    .ec-page .ec-intro {
        padding: 60px 0 30px;
    }

    .ec-page .ec-intro-grid>p {
        padding-left: 17px;
    }

    .ec-page .ec-category-section {
        padding: 48px 0 50px;
    }

    .ec-page .ec-category-heading {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-bottom: 25px;
    }

    /* .ec-page .ec-category-number {
        align-self: flex-start;
        width: 49px;
        height: 49px;
    } */

    .ec-page .ec-category-heading-content p,
    .ec-page .ec-category-heading>p {
        line-height: 1.85;
    }

    .ec-page .ec-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ec-page .ec-product-card>img {
        flex-basis: 220px;
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .ec-page .ec-product-card .ec-card-copy {
        padding: 18px;
    }

    /* .ec-page .ec-card-topline {
        margin-bottom: 15px;
    } */

    .ec-page .ec-sourcing {
        padding: 30px 0 65px;
    }

    .ec-page .ec-sourcing-card {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 34px 24px;
        border-radius: 8px;
    }

    .ec-page .ec-sourcing-copy p {
        line-height: 1.9;
    }

    .ec-page .ec-sourcing-decoration {
        width: 160px;
        height: 130px;
        margin-top: 15px;
        transform: scale(0.65);
        transform-origin: top center;
    }
}


/* =========================================================
   9. ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ec-page *,
    .ec-page *::before,
    .ec-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .ec-page [data-aos="fade-up"] {
        opacity: 1;
        transform: none;
    }

    .ec-page .ec-product-card {
        will-change: auto;
    }
}



/* PAGE 1 — ELECTRONIC COMPONENTS MAIN HEADING */



/* ----------------------------------------- */

.ec-page .ec-page-title {
    margin-bottom: 20px;
    color: var(--ec-primary-dark);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

@media (max-width: 600px) {
    .ec-page .ec-page-title {
        margin-bottom: 16px;
        font-size: 32px;
        letter-spacing: -0.4px;
    }
}


/* Electronic Components - Centered Main Heading */

.ec-page .ec-page-title {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #0b2e59;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
    text-align: center;
}

.ec-page .ec-title-line {
    display: block;
    order: 1;
    width: 85px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #0b2e59, #1599e5);
}

@media (max-width: 600px) {
    .ec-page .ec-page-title {
        gap: 13px;
        margin-bottom: 28px;
        font-size: 32px;
        letter-spacing: -0.7px;
    }

    .ec-page .ec-title-line {
        width: 65px;
        height: 4px;
    }
}



/* =========================================================
   PAGE 2 — ADD NEXT PAGE STYLES BELOW THIS LINE
   Use a unique wrapper class for each page.
   ========================================================= */

.mf-page .ec-page-title {
    max-width: 1000px;
    margin: 0 auto 34px;
    padding: 34px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #0b2e59;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
    text-align: center;
}

.mf-page .ec-title-line {
    display: block;
    width: 85px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #0b2e59, #1599e5);
}

.mf-page .ec-intro p,
.mf-page .ec-category-heading-content p,
.mf-page .ec-card-copy p,
.mf-sourcing-section p {
    text-align: justify;
}

/* Product images use the existing .ec-product-card img styles. */

/* Sourcing support section */

.mf-sourcing-section {
    padding: 70px 0;
    background: #f2f8fc;
    border-top: 1px solid #e0edf6;
}

.mf-sourcing-inner {
    max-width: 950px;
    margin: 0 auto;
}

.mf-sourcing-section .ec-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #0878c9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.mf-sourcing-section h2 {
    margin: 0 0 20px;
    color: #0b2e59;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.25;
}

.mf-sourcing-section p {
    margin: 0 0 16px;
    color: #60758b;
    font-size: 15px;
    line-height: 1.85;
}

.mf-sourcing-section .ec-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 14px 20px;
    border-radius: 5px;
    background: #0878c9;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.mf-sourcing-section .ec-btn:hover {
    transform: translateY(-2px);
    background: #075da0;
}

@media (max-width: 768px) {
    .mf-page .ec-page-title {
        padding-top: 24px;
        margin-bottom: 26px;
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .mf-page .mf-product-image-placeholder {
        min-height: 210px;
    }

    .mf-sourcing-section {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .mf-page .ec-page-title {
        padding-right: 14px;
        padding-left: 14px;
        font-size: 30px;
    }

    .mf-page .ec-title-line {
        width: 65px;
    }

    .mf-page .mf-product-image-placeholder {
        min-height: 190px;
    }

    .mf-sourcing-section p {
        font-size: 14px;
    }
}




/* FORCE product images to show fully without crop or zoom */
/* .ec-page .ec-product-card img,
.ec-product-card img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
    object-position: center !important;
    transform: none !important;
    transition: none !important;
} */

/* Disable image zoom on hover */
/* .ec-page .ec-product-card:hover img,
.ec-product-card:hover img {
    transform: none !important;
    scale: 1 !important;
} */

/* Prevent parent from cutting off the image */
/* .ec-product-card {
    overflow: visible !important;
} */

/* --------------------------------------------------------------------- */

/* PRODUCT CARD — JUMP ONLY WHILE HOVERING */

/* .ec-page .ec-product-card {
    animation: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
} */

/* Disable existing hover movement */
/* .ec-page .ec-product-card:hover {
    transform: none;
    border-color: #c7d9ea;
    box-shadow: 0 15px 35px rgba(19, 49, 82, 0.12);
} */

/* Repeat the jump only while the mouse is over the card */
/* .ec-page .ec-product-card:hover {
    animation: ec-card-jump 0.45s ease-in-out infinite alternate !important;
}

@keyframes ec-card-jump {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
} */

/* Keep AOS from overriding the hover animation */
/* .ec-page .ec-product-card[data-aos="fade-up"].aos-animate:hover {
    animation: ec-card-jump 0.45s ease-in-out infinite alternate !important;
} */

/* Stop movement for users who prefer reduced motion */
/* @media (prefers-reduced-motion: reduce) {
    .ec-page .ec-product-card:hover {
        animation: none !important;
    }
} */
/* =========================================================
   ELECTRONIC COMPONENTS — SCREENSHOT-MATCHED HEADER AREA
   Only the main title and category overview are restyled.
   Product category sections and cards remain unchanged.
   ========================================================= */

/* Pale blue header area behind title + category overview */
.ec-page {
    padding: 0 6px;
    background: #f1f6fc;
    border-radius: 16px;
}

/* White title panel */
.ec-page>.ec-page-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 16px 0 0;
    padding: 16px 20px 15px;
    color: #12315b;
    background: #ffffff;
    border: 1px solid #d9e5f4;
    border-radius: 13px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-align: center;
}

/* Small PRODUCT CATEGORY label above the blue line */
/* .ec-page>.ec-page-title::before {
    content: "PRODUCT CATEGORY";
    display: block;
    color: #2879cf;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
} */

.ec-page>.ec-page-title .ec-title-line {
    order: 0;
    display: block;
    width: 26px;
    height: 3px;
    margin: 0;
    border-radius: 3px;
    background: #1688e8;
}

/* Category overview stays inside the same pale-blue header area */
.ec-page>.ec-intro {
    margin: 0;
    padding: 19px 8px 23px;
    background: transparent;
    border: 0;
}

.ec-page>.ec-intro .ec-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.ec-page>.ec-intro .ec-eyebrow {
    display: inline-block;
    margin: 0 0 11px;
    padding: 5px 0 5px 11px;
    border-left: 4px solid #1688e8;
    color: #087bc5;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.ec-page>.ec-intro h2 {
    max-width: none;
    margin: 0 0 8px;
    color: #12315b;
    font-size: clamp(20px, 2vw, 23px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
}

.ec-page>.ec-intro .ec-intro-grid>p {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #64758d;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* Keep product sections on their existing white/soft-grey backgrounds */
.ec-page>.ec-categories {
    margin: 0 -6px;
}

@media (max-width: 600px) {
    .ec-page {
        padding: 0 5px;
        border-radius: 12px;
    }

    .ec-page>.ec-page-title {
        margin-top: 10px;
        padding: 15px 12px;
        font-size: 28px;
        gap: 8px;
    }

    .ec-page>.ec-intro {
        padding: 18px 7px 20px;
    }

    .ec-page>.ec-intro h2 {
        font-size: 20px;
    }

    .ec-page>.ec-intro .ec-intro-grid>p {
        font-size: 13px;
    }
}















/* ==========================================================
   Electronic Components page
   Scoped under .ec-page so it overrides older .ec-* rules in
   services.css without touching the rest of the site.
   Load this file AFTER services.css.
   ========================================================== */

.ec-page {
    --ec-navy: #0b2545;
    --ec-navy-deep: #07182f;
    --ec-blue: #2f6fed;
    --ec-blue-dark: #1f56c4;
    --ec-cyan: #65e6f4;
    --ec-ink: #182338;
    --ec-slate: #5b6e8a;
    --ec-line: #dfe7f2;
    --ec-tint: #f4f7fc;
    color: var(--ec-ink);
    background: #fff;
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

.ec-page *,
.ec-page *::before,
.ec-page *::after {
    box-sizing: border-box;
}

.ec-page .ec-container {
    width: min(1160px, calc(100% - 44px));
    margin-inline: auto;
}


/* ==========================================
   TVR ELECTRONICS - ELECTRONIC COMPONENTS HERO
   Premium Industrial Theme
========================================== */

.ec-page .ec-page-hero {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 360px;
    padding: 76px 0 72px;
    overflow: hidden;
    background: #0b1930;
    border-bottom: 3px solid #22b8a7;
}

/* Background Image */
.ec-page .ec-page-hero .ec-page-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navy Gradient Overlay */
.ec-page .ec-page-hero .ec-page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(130deg, rgb(23 47 87 / 97%) 5%, rgb(24 60 109 / 92%) 10%, rgb(33 79 125 / 3%) 60%
80%
)
}

/* Content */
.ec-page .ec-hero-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 1200px;
}

/* Main Title */
.ec-page .ec-hero-stack .ec-page-title {
    margin: 0;
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.2);
}

/* Teal Accent Line */
.ec-page .ec-hero-stack .ec-title-line {
    display: block;
    width: 76px;
    height: 4px;
    margin: 20px 0 25px;
    border-radius: 10px;
    background: linear-gradient(90deg, #22b8a7, #2f6fed);
    box-shadow: 0 0 16px rgba(34, 184, 167, 0.25);
}

/* Eyebrow Label */
.ec-page .ec-hero-stack .ec-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-top:20px;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: #8ff3e5;
    background: rgba(34, 184, 167, 0.10);
    border: 1px solid rgba(72, 220, 201, 0.38);
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.4;
}

/* Supporting Heading */
.ec-page .ec-hero-stack h2 {
    /* max-width: 760px; */
    margin: 0 0 15px;
    color: #f4f8ff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 700;
    line-height: 1.4;
}

/* Description */
.ec-page .ec-hero-stack p {
    max-width: 750px;
    margin: 0;
    color: #d0dbea;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.85;
    text-align: left;
}

/* Tablet */
@media (max-width: 768px) {
    .ec-page .ec-page-hero {
        min-height: auto;
        padding: 54px 0;
    }

    .ec-page .ec-page-hero .ec-page-hero-overlay {
        background: linear-gradient(
            100deg,
            rgba(7, 19, 39, 0.96),
            rgba(11, 32, 61, 0.88)
        );
    }

    .ec-page .ec-hero-stack .ec-page-title {
        letter-spacing: -0.6px;
    }

    .ec-page .ec-hero-stack .ec-title-line {
        margin: 16px 0 22px;
    }

    .ec-page .ec-hero-stack p {
        font-size: 0.94rem;
        line-height: 1.75;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ec-page .ec-page-hero {
        padding: 42px 0;
    }

    .ec-page .ec-hero-stack .ec-eyebrow {
        font-size: 0.67rem;
        letter-spacing: 1.5px;
    }

    .ec-page .ec-hero-stack h2 {
        font-size: 1.25rem;
    }
}

/* ---------- Eyebrow (small tag above headings) ---------- */

.ec-page .ec-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 11px;
    color: var(--ec-blue-dark);
    background: #e8f0fe;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.5;
}

/* ---------- Category sections ---------- */

.ec-page .ec-category-section {
    padding: 72px 0 80px;
    background: #fff;
    border-top: 1px solid var(--ec-line);
}

.ec-page .ec-category-section:nth-child(even) {
    background: var(--ec-tint);
}

.ec-page .ec-category-heading {
    display: grid;
    grid-template-columns: 6px 1fr;
    gap: 26px;
    margin-bottom: 42px;
}

/* the empty span becomes a vertical accent bar */
.ec-page .ec-category-number {
    display: block;
    width: 6px;
    min-height: 100%;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--ec-blue), var(--ec-cyan));
}

.ec-page .ec-category-heading-content h2 {
    margin: 0 0 12px;
    color: var(--ec-navy);
    font-family: "Manrope", sans-serif;
    /* font-size: clamp(1.8rem, 3.2vw, 2.5rem); */
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.04em;
}

.ec-page .ec-category-heading-content p {
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--ec-slate);
    font-size: .98rem;
    line-height: 1.75;
}

/* ---------- Product cards ---------- */

.ec-page .ec-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.ec-page .ec-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid var(--ec-line);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 43, 75, .05);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.ec-page .ec-product-card>img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e8eef6;
    border-bottom: 1px solid var(--ec-line);
}

.ec-page .ec-card-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 5px 24px 26px;
}

.ec-page .ec-card-copy h3 {
    margin: 0 0 10px;
    color: var(--ec-navy);
    font-family: "Manrope", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.ec-page .ec-card-copy p {
    margin: 0;
    color: var(--ec-slate);
    font-size: .88rem;
    line-height: 1.7;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .ec-page .ec-page-title {
        padding-block: 68px 60px;
    }

    .ec-page .ec-intro-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ec-page .ec-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 650px) {
    .ec-page .ec-page-title {
        padding-block: 54px 48px;
    }

    .ec-page .ec-intro {
        padding: 48px 0 40px;
    }

    .ec-page .ec-intro-grid>p {
        padding-left: 18px;
    }

    .ec-page .ec-category-section {
        padding: 52px 0 58px;
    }

    .ec-page .ec-category-heading {
        gap: 18px;
        margin-bottom: 30px;
    }

    .ec-page .ec-product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ec-page .ec-product-card>img {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ec-page .ec-product-card {
        transition: none;
    }
}

/* Full-width product hero image */
.ec-page {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
}

.ec-page .ec-page-hero {
    position: relative;
    width: 100%;
    min-height: 200px;
    margin: 0;
    padding: 45px max(22px, calc((100% - 1160px) / 2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0;
}

.ec-page .ec-page-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
}

.ec-page .ec-page-title {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .ec-page .ec-page-hero {
        min-height: 160px;
        padding: 35px 20px;
    }
}


.ec-page .ec-page-hero .ec-page-title {
    width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

