/* ===== Typography ===== */
/* Red Hat Display on CNC page titles and the H heading from the editor's rich-text body; body copy keeps the site face.
   Font loaded in includes/header-cnc.php, the only file that loads this one. */
body.cnc-header h1,
body.cnc-header h2,
body.cnc-header h3,
.cnc-section-body h4,
.cnc-section-heading--carousel>div h4,
.cnc-card-btn {
    font-family: "Red Hat Display", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Base / Reset ===== */
.cnc-hero,
.cnc-cards-section,
.cnc-why,
.cnc-img-text,
.cnc-action-band,
.why-doosan,
.cnc-feature-strip,
.cnc-series,
.cnc-spec-strip,
.cnc-brands-strip,
.cnc-pg-section,
.cnc-brand-intro {
    box-sizing: border-box;
}

.cnc-hero *,
.cnc-cards-section *,
.cnc-why *,
.cnc-img-text *,
.cnc-action-band *,
.why-doosan *,
.cnc-feature-strip *,
.cnc-series *,
.cnc-spec-strip *,
.cnc-brands-strip *,
.cnc-pg-section * {
    box-sizing: border-box;
}

.cnc-brand-intro * {
    box-sizing: border-box;
}

.cnc-hero img,
.cnc-hero video,
.cnc-cards-section img,
.cnc-why img,
.cnc-img-text img,
.cnc-action-band img,
.why-doosan img,
.cnc-feature-strip img,
.cnc-series img,
.cnc-brand-intro img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== Layout Containers / Typography ===== */
.cnc-container {
    /*width: 100%;*/
    margin: 0 auto;
    /*padding: 0 15%;*/
}

.cnc-text-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.cnc-section-heading {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

/* A text-only section is nothing but its heading, so the 56px gap below it is dead space. */
.cnc-feature-strip>.cnc-container>.cnc-section-heading:only-child {
    margin-bottom: 0;
}

.cnc-section-heading h2 {
    margin-bottom: 14px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-section-heading p {
    font-size: 14px;
    line-height: 1.85;
}

.cnc-intro-cta {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
    font-size: 14.5px;
    font-weight: 700;
    color: #1a5fa8;
}

/* ===== Buttons ===== */
.cnc-btn {
    display: inline-block;
    padding: 13px 28px;
    border: 1.5px solid transparent;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-decoration: none;
}

.cnc-btn:hover {
    transform: translateY(-1px);
}

.cnc-btn-primary {
    background-color: #1a5fa8;
    border-color: #1a5fa8;
    color: #fff;
}

.cnc-btn-primary-dark {
    background-color: #0f3a66;
    border-color: #0f3a66;
    color: #fff;
}

.cnc-btn-primary-dark:hover {
    background-color: #0a2a4d;
    border-color: #0a2a4d;
    color: #fff;
}

/* ===== Brochure dropdown =====
   A series with a brochure per model renders the button as a menu instead of a link. */
.cnc-brochure-menu {
    position: relative;
    display: inline-block;
}

.cnc-brochure-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-family: inherit;
}

.cnc-brochure-arrow {
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform .15s;
}

.cnc-brochure-menu.is-open .cnc-brochure-arrow {
    transform: rotate(180deg);
}

.cnc-brochure-list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    display: none;
    min-width: 100%;
    /* Long model names shouldn't stretch the menu past the hero copy. */
    max-width: 320px;
    padding: 6px 0;
    border: 1px solid #e3e8ef;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, .3);
}

.cnc-brochure-menu.is-open .cnc-brochure-list {
    display: block;
}

.cnc-brochure-option {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #0f3a66;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cnc-brochure-option:hover,
.cnc-brochure-option:focus {
    background: #f0f5fb;
    color: #0a2a4d;
    text-decoration: none;
}

.cnc-btn-primary:hover {
    background-color: #154d8a;
    border-color: #154d8a;
    color: #fff;
}

/* "See What's In Stock" - outlined, so it reads as secondary beside the primary CTA.
   Scoped under .cnc-header to beat the .cnc-header .cnc-btn reset. */
.cnc-header a.cnc-btn-stocked {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid #1a5fa8;
    border-radius: 3px;
    color: #1a5fa8;
    z-index: 0;
    transition: color .3s ease .05s;
}

/* Fill wipes in from the left on hover rather than switching, matching .cnc-card-btn. */
.cnc-header a.cnc-btn-stocked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a5fa8;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: -1;
}

.cnc-header a.cnc-btn-stocked:hover::before {
    transform: scaleX(1);
}

.cnc-header a.cnc-btn-stocked:hover {
    color: #fff;
}

/* On a video-bg hero the copy is white, so the solid white fill would hide it against the footage. */
.cnc-header .cnc-hero-video-bg a.cnc-btn-stocked,
.cnc-header .cnc-hero-content.text-white a.cnc-btn-stocked {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.cnc-header .cnc-hero-video-bg a.cnc-btn-stocked::before,
.cnc-header .cnc-hero-content.text-white a.cnc-btn-stocked::before {
    background: rgba(255, 255, 255, .15);
}

.cnc-header .cnc-hero-video-bg a.cnc-btn-stocked:hover,
.cnc-header .cnc-hero-content.text-white a.cnc-btn-stocked:hover {
    color: #fff;
}

.cnc-btn-white {
    background-color: #fff;
    border-color: #fff;
    color: #111;
}

.cnc-btn-white:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: #111;
}

.cnc-btn-outline-white {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.cnc-btn-outline-white:hover {
    background-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.cnc-btn-outline {
    background-color: transparent;
    border-color: currentColor;
    color: inherit;
}

.cnc-btn-outline:hover {
    background-color: rgba(0, 0, 0, .06);
}

.cnc-btn-enquiry {
    background-color: #fff;
    border-color: #d10000;
    color: #d10000;
}

.cnc-btn-enquiry:hover {
    background-color: #fdf0f0;
    border-color: #d10000;
    color: #d10000;
}

.cnc-btn-enquiry-inverse {
    background-color: #d10000;
    border-color: #d10000;
    color: #fff;
}

.cnc-btn-enquiry-inverse:hover {
    background-color: #9e0000;
    border-color: #9e0000;
    color: #fff;
}

/* Blue outline button for View Brochure  */
a.cnc-btn-primary-outline {
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 13px 28px;
    background-color: transparent;
    border: 1.5px solid #1a5fa8;
    border-radius: 3px;
    color: #1a5fa8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-decoration: none;
    transition: color 0.22s ease;
    z-index: 0;
}

a.cnc-btn-primary-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a5fa8;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

a.cnc-btn-primary-outline:hover::before {
    transform: scaleX(1);
}

a.cnc-btn-primary-outline:hover {
    color: #fff;
}

/* ===== Hero ===== */
.cnc-hero {
    position: relative;
    overflow: hidden;
    /*margin-top: -24px;*/
    padding: 2% 15%;
}

.cnc-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 100%;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}

.cnc-hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.cnc-hero-content {
    flex: 1 1 44%;
    min-width: 0;
}

.cnc-hero-image {
    position: relative;
    flex: 1 1 52%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.cnc-hero-image img {
    width: auto;
    max-width: 100%;
    max-height: 484px;
    object-fit: contain;
    border-radius: 8px;
}

/* Compact hero variant - for a small square graphic rather than a wide photo.
   The image no longer sets the section height, so the text side carries it. */
.cnc-hero-compact {
    padding: 48px 15%;
}

.cnc-hero-compact .cnc-hero-container {
    gap: 80px;
    justify-content: center;
}

/* Don't let the text column grow into the spare width - that stretch, not the gap, is what pushes the graphic to the far edge. */
.cnc-hero-compact .cnc-hero-content {
    flex: 0 1 auto;
}

/* Column shrinks to the graphic so the leftover width doesn't sit as a gap. */
/* The image no longer sets the section height here, so it must drop the shared min-height. */
.cnc-hero-compact .cnc-hero-image {
    flex: 0 0 auto;
    min-height: 0;
}

.cnc-hero-compact .cnc-hero-image img {
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* Service & Support's cog graphic runs larger than other compact heroes. */
.cnc-hero-service .cnc-hero-image img {
    width: 592px;
}

.cnc-hero-compact h1 {
    font-size: 46px;
}

.cnc-hero-compact .cnc-hero-body {
    max-width: 560px;
    margin-bottom: 28px;
}

.cnc-hero h1 {
    margin-bottom: 20px;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.03;
}

.cnc-hero-subtitle {
    margin: -12px 0 20px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.cnc-hero-body {
    max-width: 480px;
    margin-bottom: 36px;
    font-size: 15px;
    line-height: 1.85;
}

.cnc-hero-actions,
.cnc-action-actions,
.cnc-img-text-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cnc-hero-video-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 580px;
    padding: 96px 15%;
}

.cnc-hero-video-bg::before {
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    pointer-events: none;
    clip-path: none;
}

.cnc-hero-video-bg .cnc-hero-container {
    position: static;
    z-index: 2;
    justify-content: center;
    gap: 0;
}

.cnc-hero-video-bg .cnc-hero-content {
    position: relative;
    z-index: 2;
    flex: none;
    max-width: 760px;
    text-align: center;
    /*background: rgba(255, 255, 255, 0.15);*/
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 36px 56px;
}

.cnc-hero-video-bg .cnc-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    flex: none;
    overflow: hidden;
}

/* Darkening overlay so the white hero text stays visible over the video. */
.cnc-hero-video-bg .cnc-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.45);
}

.cnc-hero-video-bg .cnc-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    pointer-events: none;
    user-select: none;
    margin: 0;
}

.cnc-hero-video-bg .cnc-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

.cnc-hero-video::-webkit-media-controls,
.cnc-hero-video::-webkit-media-controls-panel,
.cnc-hero-video::-webkit-media-controls-overlay-play-button,
.cnc-hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none;
}

.cnc-hero-video-bg .cnc-hero-body {
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
    font-size: 17px;
    line-height: 1.8;
}

.cnc-hero-video-bg .cnc-hero-actions {
    justify-content: center;
}

/* Slideshow hero — same full-bleed overlay layout as the video hero, but the
   background is a set of crossfading images instead of a <video>. */
.cnc-hero-slideshow-bg {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: auto;
    min-height: 450px;
    padding: 24px 15px 50px 48px;
}

.cnc-hero-slideshow-bg::before {
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    pointer-events: none;
    clip-path: none;
}

.cnc-hero-slideshow-bg .cnc-hero-container {
    position: static;
    z-index: 2;
    justify-content: flex-start;
    gap: 0;
    margin-left: 0;
}

.cnc-hero-slideshow-bg .cnc-hero-content {
    position: relative;
    z-index: 2;
    flex: none;
    max-width: 760px;
    text-align: left;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
}

.cnc-hero-slideshow-bg .cnc-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    flex: none;
    overflow: hidden;
}

/* Darkening overlay so the white hero text stays visible over the photos. */
.cnc-hero-slideshow-bg .cnc-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.45);
}

/* Each layer uses an explicit inset instead of a width/height:100% chain, so it fills its
   positioned ancestor directly rather than depending on percentage-height resolution. */
.cnc-hero-slideshow {
    position: absolute;
    inset: 0;
}

.cnc-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.cnc-hero-slide.active {
    opacity: 1;
}

.cnc-hero-slide img {
    position: absolute;
    inset: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    margin: 0;
}

.cnc-hero-slideshow-bg .cnc-hero-body {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.8;
}

.cnc-hero-slideshow-bg .cnc-hero-actions {
    justify-content: flex-start;
}

.cnc-hero-slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.cnc-hero-slideshow-dots .cnc-media-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.cnc-hero-slideshow-dots .cnc-media-dot.active {
    background: #fff;
    transform: scale(1.35);
}

/* ----- Hero media slot: carousel and inline video -----
   These sit beside the copy rather than behind it, unlike the full-bleed slideshow above. */

/* Slides stack absolutely and cross-fade, so the box holds its own height and the page
   doesn't jump as the images change. The aspect ratio matches a static hero image. */
/* Slides stack in one grid cell, so the height is fixed and nothing reflows on swap.
   The bottom padding reserves the dot strip below the photo. */
.cnc-hero-carousel {
    position: relative;
    display: grid;
    width: 100%;
    height: 520px;
    padding-bottom: 28px;
}

.cnc-hero-carousel-slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
}

.cnc-hero-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in-out, visibility 0s;
}

/* Full column width, capped by the shared .cnc-hero-image img max-height. */
.cnc-hero-carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .cnc-hero-carousel-slide {
        transition: none;
    }
}

/* Sits in the reserved strip under the photo, so it never overlaps the machine. */
.cnc-hero-carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 8px;
}

.cnc-hero-carousel-dots .cnc-media-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(26, 95, 168, 0.25);
    transition: background 0.2s, transform 0.2s;
}

.cnc-hero-carousel-dots .cnc-media-dot:hover {
    background: rgba(26, 95, 168, 0.7);
}

.cnc-hero-carousel-dots .cnc-media-dot.active {
    background: #1a5fa8;
    transform: scale(1.35);
}

/* An iframe has no intrinsic aspect ratio, so the slot needs a 16:9 box to size it from.
   An uploaded file sizes itself, so this wraps only the YouTube case. */
.cnc-hero-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

.cnc-hero-video-frame .cnc-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* A slot video is a normal block in the column, not the absolutely-filled video-bg case. */
.cnc-hero:not(.cnc-hero-video-bg) .cnc-hero-image>.cnc-hero-video:not(iframe) {
    width: 100%;
    height: auto;
    max-height: 560px;
    border-radius: 8px;
}

/* ===== Product Cards ===== */
.cnc-cards-section,
.cnc-why,
.why-doosan,
.cnc-img-text,
.cnc-feature-strip,
.cnc-series,
.cnc-spec-strip {
    padding: 88px 0;
}

.cnc-cards-section--intro {
    padding-bottom: 24px;
}

.cnc-cards-section--intro+a+.cnc-cards-section {
    padding-top: 24px;
}

/* Avoid stacking padding when a spec-compare table follows a cards section. */
.cnc-cards-section+a+.cnc-spec-compare-section {
    padding-top: 24px;
}

/* No heading authored, so the cards start straight away and the full top padding is dead space. */
.cnc-cards-section--no-heading {
    padding-top: 24px;
}

/* Two 88px paddings meeting under the cards read as a gap, so the pair is halved. */
.cnc-cards-section {
    padding-bottom: 44px;
}

.cnc-cards-section+section,
.cnc-cards-section+a+section {
    padding-top: 44px;
}

.cnc-cards {
    display: grid;
    gap: 32px;
}

.cnc-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cnc-cards .cnc-card {
    flex: 0 0 376px;
    max-width: 382px;
}

.cnc-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border-radius: 4px;
}

/* Lift the contents, not the card: 
transforming the card pulls its hit area off a cursor near the bottom edge, 
causing an endless flicker  */
.cnc-card>* {
    transition: transform .2s ease;
}

.cnc-card:hover>* {
    transform: translateY(-3px);
}

.cnc-card-image {
    position: relative;
    overflow: hidden;
}

.cnc-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    padding: 12px 0 0;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.cnc-card:hover .cnc-card-image img {
    transform: scale(1.04);
}

.cnc-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 4px;
    text-align: center;
}

.cnc-card-body h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.cnc-card-body h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-card-title-link {
    display: inline;
    padding-bottom: 2px;
    text-decoration: none;
}

.cnc-card-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 3em;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.cnc-card-btn {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 87%;
    margin: 0 auto 12px;
    padding: 11px 20px;
    border: 1px solid;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    z-index: 0;
    transition: color .3s ease .05s;
}

.cnc-card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a5fa8;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    z-index: -1;
}

.cnc-card-btn:hover::before {
    transform: scaleX(1);
}

.cnc-card-btn:hover {
    color: #fff;
}

.cnc-btn-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.cnc-card-btn:hover .cnc-btn-arrow {
    transform: translateX(4px);
}

.cnc-card::after {
    content: '';
    display: block;
    flex-shrink: 0;
    height: 3px;
}

/* Service tile variant */
.cnc-card--service {
    background: #fff;
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    transition: box-shadow .25s ease, transform .25s ease;
    overflow: visible;
    /* 4px of slack under the content so the 4px hover lift below never pulls the
       card's bottom edge off a cursor resting there, which would flicker hover. */
    padding-bottom: 4px;
}

.cnc-card--service:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(26, 95, 168, .12);
}

.cnc-card--service::before,
.cnc-card--service::after {
    display: none;
}

.cnc-card--service .cnc-card-image {
    display: none;
}

.cnc-card--service .cnc-card-body {
    padding: 36px 32px 20px;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.cnc-card--service .cnc-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.cnc-card--service .cnc-service-icon i {
    font-size: 40px;
    color: #c0392b;
}

.cnc-card--service .cnc-card-body h3 {
    font-size: 19px;
    font-weight: 800;
    color: #1a2133;
    line-height: 1.25;
    margin: 0;
}

.cnc-card--service .cnc-card-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.cnc-card--service .cnc-card-body h3 a:hover {
    color: #1a5fa8;
}

.cnc-card--service .cnc-card-body p {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    font-size: 14px;
    color: #637085;
    line-height: 1.75;
    margin: 0;
}

.cnc-card-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    margin: 0 auto 32px;
    padding: 0 0 2px;
    border: none;
    background: none;
    color: #1a5fa8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    background-image: linear-gradient(#1a5fa8, #1a5fa8);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: gap .2s ease, background-size .35s ease;
}

.cnc-card-link-btn:hover {
    background-size: 100% 2px;
    color: #1350a0;
    gap: 10px;
}

/* Shared icon tile used by service-and-support.php cards
   (.cnc-card--service .cnc-service-icon above overrides sizing/layout) */
.cnc-service-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #eef4fb;
    color: #1a5fa8;
}

.cnc-service-icon .material-icons {
    font-size: 24px;
}

/* ===== Feature Grid / Why-Choose ===== */
.cnc-why {
    padding: 36px 0 112px;
}

.cnc-why .cnc-section-heading {
    margin-bottom: 72px;
}

.cnc-why .cnc-why-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 28px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.cnc-why .cnc-why-point {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 36px 32px 34px;
    border: 1px solid #e7e9ee;
    border-radius: 3px;
    background: #fff;
    text-align: left;
    box-shadow: 0 1px 3px rgba(15, 25, 45, .04);
    transition: box-shadow .25s ease, transform .25s ease;
}

.cnc-why .cnc-why-point-img-tile {
    position: relative;
    align-self: stretch;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

/* A linked tile wraps its image in an anchor, which must stretch or the image loses the cell's height. */
.cnc-why .cnc-why-point-img-tile>a {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.cnc-why .cnc-why-point-img-tile img {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.cnc-why .cnc-why-point-img-tile:hover img {
    transform: scale(1.05);
}

.cnc-why .cnc-why-point-img-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 28px 20px 16px;
    background: linear-gradient(to top, rgba(8, 16, 30, .78), rgba(8, 16, 30, 0));
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.005em;
    color: #fff;
    pointer-events: none;
}

.cnc-why .cnc-why-point-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.cnc-why .cnc-why-point:not(.cnc-why-point-img-tile)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 28px;
    height: 2px;
    background: #1a5fa8;
}

.cnc-why .cnc-why-point:not(.cnc-why-point-img-tile):hover {
    box-shadow: 0 16px 32px rgba(15, 25, 45, .1);
    transform: translateY(-3px);
}

.cnc-why .cnc-why-point-img-tile:hover {
    box-shadow: 0 16px 32px rgba(15, 25, 45, .12);
}

.cnc-why .cnc-why-point-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 20px;
}

.cnc-why .cnc-why-point-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    order: 2;
}

.cnc-why .cnc-why-point-icon i {
    font-size: 28px;
    color: #b7c2d0;
    line-height: 1;
}

.cnc-why .cnc-why-point-label {
    order: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.01em;
    color: #154d8a;
}

.cnc-why .cnc-why-point-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.72;
    color: #626d7a;
}

.cnc-why .cnc-why-point-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1a5fa8;
    text-decoration: none;
}

.cnc-why .cnc-why-point-link i.material-icons {
    font-size: 16px;
    color: #1a5fa8;
    transition: transform .2s ease;
}

.cnc-why .cnc-why-point-link:hover i.material-icons {
    transform: translateX(4px);
}

.why-doosan .cnc-container,
.cnc-img-text .cnc-container {
    display: flex;
    align-items: center;
    /*gap: 72px;*/
}

/* .container's width grows with the viewport, so the band needs its own cap. */
.cnc-service-support .cnc-container {
    max-width: 1128px;
    margin-left: auto;
    margin-right: auto;
    gap: 48px;
}

.cnc-service-support .cnc-img-text-content,
.cnc-service-support .cnc-img-text-image {
    flex: 1 1 540px;
    min-width: 0;
}

/* The PNG has wide transparent padding round the cog, so scale it up to match v2's tighter crop. */
.cnc-service-support .cnc-img-text-image img {
    transform: scale(1.3);
}

.cnc-img-text--reverse .cnc-container {
    flex-direction: row-reverse;
}

.cnc-features-section {
    background: #f8fafc;
    padding-top: 0;
    padding-bottom: 0;
}

/* Not text-align: a section sets its own inline, and this selector would outrank it. */
.cnc-features-section .cnc-section-heading {
    max-width: 100%;
    margin-bottom: 8px;
}

.cnc-img-text--compact {
    padding: 48px 0;
}

.cnc-img-text--compact .cnc-container {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 540px);
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 0 24px;
}

.cnc-img-text--compact .cnc-img-text-content {
    grid-column: 1;
    grid-row: 1;
}

.cnc-img-text--compact .cnc-img-text-image {
    grid-column: 2;
    grid-row: 1;
}

.cnc-img-text--compact.cnc-img-text--reverse .cnc-img-text-content {
    grid-column: 2;
    grid-row: 1;
}

.cnc-img-text--compact.cnc-img-text--reverse .cnc-img-text-image {
    grid-column: 1;
    grid-row: 1;
}


.cnc-img-text--compact .cnc-img-text-content {
    max-width: none;
}

.cnc-img-text--compact .cnc-img-text-image img {
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .25);
}

.cnc-img-text--compact .cnc-img-text-content h3,
.cnc-img-text--compact .cnc-img-text-content h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.cnc-img-text--compact .cnc-img-text-content p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #4a596d;
}

.cnc-img-text--compact .cnc-img-text-content p:last-child {
    margin-bottom: 0;
}

/* Multi-feature block: several h4/p groups stacked in one text column, sharing one image */
.cnc-img-text--compact .cnc-img-text-content--stacked {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Section-level background modifier: lets sections alternate grey/white
   independently of the parent .cnc-features-section background. */
.cnc-img-text--compact.cnc-img-text--grey {
    background: #f8fafc;
}

.cnc-img-text--compact:not(.cnc-img-text--grey) {
    background: #fff;
}

.why-doosan-content,
.cnc-img-text-content {
    flex: 1 1 46%;
}

.cnc-img-text-content,
.cnc-img-text-image {
    flex: 1 1 50%;
}

.cnc-img-text-image {
    position: relative;
}

/* contain rather than cover, matching .cnc-section-split-image: a tall product shot
   on a white background loses its edges when cropped to fill. */
.cnc-img-text-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: contain;
}

.why-doosan-content h2,
.cnc-img-text-content h2 {
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.why-doosan-content p,
.cnc-img-text-content p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;
    max-width: 480px;
}

/* Background modifier for the editor's per-section grey/white setting, matching
   .cnc-img-text--grey above so the two alternate to the same greys. */
.cnc-feature-strip--grey {
    background: #f8fafc;
}

/* Explicit white, so a block never picks up the grey of a .cnc-features-section wrapper behind it. */
.cnc-feature-strip:not(.cnc-feature-strip--grey),
.cnc-client-stories:not(.cnc-feature-strip--grey),
.cnc-why:not(.cnc-feature-strip--grey),
.cnc-cards-section:not(.cnc-feature-strip--grey) {
    background: #fff;
}

/* Split section: the image-right / image-left layouts on the category templates.
   image-left reverses the row, so the text always comes first in the markup regardless of side. */
.cnc-section-split {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: content-box;
}

.cnc-section-split--image-left {
    flex-direction: row-reverse;
}

.cnc-section-split-text,
.cnc-section-split-image {
    flex: 1;
    min-width: 0;
}

/* Wide shots fill the column, square ones stop at max-height. cover crops rather than pads with white. */
.cnc-section-split-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 440px;
    min-height: 260px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Product videos are 16:9, unlike the 4:3 product shots above - matching their own ratio
   avoids the letterboxing a 4:3 box would force on them. */
.cnc-section-split-image video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    outline: none;
}

/* An iframe has no intrinsic ratio, so the 16:9 box sizes the column. */
.cnc-section-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 4px;
    overflow: hidden;
}

.cnc-section-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cnc-section-split-text .cnc-btn {
    margin-top: 12px;
    display: inline-block;
}

/* Was an h2 taking the theme default; sized down here to stay under the page's section headings. */
.cnc-section-split-text h4 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.cnc-section-body {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.9;
    color: #4a596d;
}

/* Headings the content editor inserts into a rich-text body. Without this they take the
   theme's global h4 and render inconsistently with the 14px body text around them. */
.cnc-section-body h4,
.cnc-section-heading--carousel>div h4 {
    margin: 14px 0 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.cnc-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.cnc-feature-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cnc-feature {
    padding: 28px 32px;
}

.cnc-feature-icon {
    display: none;
}

.cnc-feature-body h3 {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
}

.cnc-feature-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

/* Brand page feature strip — scoped so other pages are unaffected */
.cnc-feature-strip--brand .cnc-feature-grid {
    gap: 28px 56px;
}

.cnc-feature-strip--brand .cnc-feature {
    padding: 6px 0 6px 22px;
    border-left: 3px solid #1a5fa8;
}

.cnc-feature-strip--brand .cnc-feature-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 7px;
    color: #111;
    letter-spacing: 0;
}

.cnc-feature-strip--brand .cnc-feature-body p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #555;
}

/* ===== Action Band ===== */
.cnc-action-band {
    position: relative;
    overflow: hidden;
    padding: 37px 15% 44px;
    background: linear-gradient(120deg, #0a2f5c 0%, #0f3f75 45%, #1a5fa8 100%);
}

.cnc-action-band::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -6%;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .1), transparent 70%);
    pointer-events: none;
}

.cnc-action-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, .5), transparent 65%);
    mask-image: linear-gradient(120deg, rgba(0, 0, 0, .5), transparent 65%);
    pointer-events: none;
}

.cnc-action-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cnc-action-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cnc-action-text p.cnc-text-eyebrow {
    color: #8fc3ff;
}

.cnc-action-text h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-action-text p {
    max-width: 440px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    line-height: 1.5;
}

.cnc-action-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    margin-top: 4px;
    padding: 14px 32px;
    background: #d10000;
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: 0 4px 12px rgba(5, 18, 40, .22);
    transition: box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.cnc-action-cta:hover {
    background: #8f0000;
    color: #fff;
    box-shadow: 0 6px 16px rgba(5, 18, 40, .26);
    transform: translateY(-1px);
}

.cnc-action-cta:hover .cnc-btn-arrow {
    transform: translateX(4px);
}

.cnc-action-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(5, 18, 40, .28);
}

/* ===== Product Page v2 ===== */
.cnc-product-v2 {
    box-sizing: border-box;
    padding: 24px 0 72px;
}

.cnc-product-v2 * {
    box-sizing: border-box;
}

.cnc-product-v2 img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Top section: carousel left, specs right */
.cnc-pv2-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 64px;
}

/* Bottom section right col: static image */
.cnc-pv2-main-image>img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 6px;
}

/* Bottom section left col: eyebrow, h1, description, buttons */
.cnc-pv2-desc .cnc-text-eyebrow {
    margin-bottom: 6px;
}

/* Stocked machine product page: brand badge sits at the top-right of the page content, clear of both columns.
   Out of normal flow, so it never pushes the title or specs down. */
.cnc-pv2-top {
    position: relative;
}

.cnc-stocked-brand-badge {
    position: absolute;
    top: 8px;
    right: -168px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: transform .15s ease;
}

a.cnc-stocked-brand-badge:hover {
    transform: scale(1.03);
}

.cnc-stocked-brand-badge img {
    max-width: 320px;
    max-height: 96px;
    object-fit: contain;
}

@media (max-width: 700px) {
    .cnc-stocked-brand-badge {
        position: static;
        margin: 0 0 16px auto;
    }
}

.cnc-pv2-desc h1 {
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.05;
}

.cnc-pv2-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* Right column: specs heading + table */
.cnc-pv2-specs {
    align-self: center;
}

.cnc-pv2-specs-heading {
    margin: 0 0 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: #1a5fa8;
    border-radius: 4px 4px 0 0;
}

.cnc-spec-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.cnc-spec-table tr:nth-child(even) {
    background: #f7f7f7;
}

.cnc-spec-table th,
.cnc-spec-table td {
    padding: 7px 14px;
    font-size: 13.5px;
    line-height: 1.45;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e8e8e8;
}

.cnc-spec-table tr:last-child th,
.cnc-spec-table tr:last-child td {
    border-bottom: none;
}

.cnc-spec-table th {
    width: 44%;
    font-weight: 700;
    color: #222;
}

.cnc-spec-table td {
    color: #444;
}

/* Bottom section: description left, static image right */
/* One column by default: the overview image is optional, and without it the text should not
   sit in a half-width column with empty space beside it. */
.cnc-pv2-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: start;
}

.cnc-pv2-bottom--with-image {
    grid-template-columns: 1fr 1fr;
}

.cnc-pv2-overview-image img {
    display: block;
    width: 100%;
    height: auto;
}

.cnc-pv2-desc h2 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-pv2-desc p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.85;
    color: #444;
}

.cnc-pv2-desc p:last-child {
    margin-bottom: 0;
}

/* Stocked machine overview: parsed description sections. Section length varies a lot (2 bullets to 20), so this flows into two CSS columns rather than a row grid - a rigid grid leaves huge gaps next to short sections; column-flow packs everything tightly instead. */
.cnc-pv2-bottom--sections {
    display: block;
}

.cnc-pv2-bottom--sections>h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-stocked-overview-section {
    break-inside: avoid;
    margin-bottom: 28px;
}

.cnc-stocked-overview-section h3 {
    position: relative;
    margin: 0 0 12px;
    padding-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #16273a;
}

.cnc-stocked-overview-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: #1a5fa8;
}

.cnc-stocked-overview-section ul {
    margin: 0;
    padding: 0 0 0 16px;
    list-style: none;
}

.cnc-stocked-overview-section li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 4px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.cnc-stocked-overview-section li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1a5fa8;
}

.cnc-stocked-overview-section li:last-child {
    margin-bottom: 0;
}

/* Stacked groups, each flowing through balanced columns without splitting a bullet. */
.cnc-stocked-group + .cnc-stocked-group {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid #e1e8f0;
}

.cnc-stocked-group > h2 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-stocked-flow {
    column-count: 3;
    column-gap: 40px;
}

.cnc-stocked-flow .cnc-stocked-overview-text {
    column-span: all;
}

.cnc-stocked-overview-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.cnc-stocked-flow .cnc-stocked-overview-section {
    break-inside: auto;
}

.cnc-stocked-flow .cnc-stocked-overview-section h3 {
    break-after: avoid;
}

.cnc-stocked-flow .cnc-stocked-overview-section li {
    break-inside: avoid;
}

/* Feature bullets are long and never split, so the tightest balance can leave the middle column short.
   An invisible spacer at the end makes the columns a little taller, giving the middle room for another bullet. */
.cnc-stocked-flow--features::after {
    content: '';
    display: block;
    height: 80px;
    break-inside: avoid;
}

.cnc-stocked-feature-list li {
    margin-bottom: 10px;
}

.cnc-stocked-feature-list strong {
    color: #16273a;
}

.cnc-stocked-feature-list a {
    color: #1a5fa8;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .cnc-stocked-flow {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .cnc-stocked-flow {
        column-count: 1;
    }

    .cnc-stocked-flow--features::after {
        display: none;
    }
}

/* Carousel column */
.cnc-pv2-carousel-col {
    text-align: center;
}

.cnc-pv2-carousel-col .cnc-media-carousel {
    background: transparent;
}

.cnc-pv2-carousel-col .cnc-media-carousel img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    max-height: 420px;
}

/* ===== Legacy Product Page ===== */
/* Legacy product styles kept for any non-product-v2 pages */
.cnc-product,
.cnc-product-details,
.cnc-action-band {
    box-sizing: border-box;
}

.cnc-product *,
.cnc-product-details *,
.cnc-action-band * {
    box-sizing: border-box;
}

.cnc-product img,
.cnc-product-details img {
    display: block;
    max-width: 100%;
    height: auto;
}

.cnc-product {
    margin-top: -24px;
    padding: 5% 0;
}

.cnc-product-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.cnc-product-copy h1 {
    margin-bottom: 18px;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.03;
}

.cnc-product-copy p {
    max-width: 520px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.85;
}

.cnc-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cnc-product-image {
    padding: 30px;
    border-radius: 8px;
}

.cnc-product-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
}

.cnc-product-details {
    padding: 88px 0;
}

.cnc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: start;
}

.cnc-details-copy h2 {
    margin-bottom: 18px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-details-copy p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.9;
}

/* Machine Options carousel (Bodor P series page) - 3 option cards per page */
.cnc-options-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cnc-options-viewport {
    flex: 1 1 auto;
    overflow: hidden;
}

/* A single page (1-3 options, the common case) has no arrows to make room for and nothing
   to page through, so the row centres in the full width instead of sitting flush left. */
.cnc-options-carousel--single .cnc-options-viewport {
    display: flex;
    justify-content: center;
}

.cnc-options-carousel--single .cnc-options-track {
    width: auto !important;
    transform: none !important;
}

.cnc-options-carousel--single .cnc-options-item {
    flex: 0 0 auto !important;
    width: 380px;
}

/* A single flex row that slides via transform: translateX() - JS sets each
   item's flex-basis to match how many cards currently fit (3/2/1 by
   viewport) and shifts the whole track by whole pages, so a final page
   with fewer than a full page of cards still lines up under the same
   columns instead of stretching or left-hugging. */
.cnc-options-track {
    display: flex;
    align-items: flex-start;
    transition: transform .35s ease;
}

.cnc-options-item {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 0 16px;
}

.cnc-options-item .cnc-card {
    max-width: 380px;
    margin: 0 auto;
}

.cnc-options-arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1.5px solid #d7dce4;
    border-radius: 50%;
    background: #fff;
    color: #1a5fa8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cnc-options-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cnc-options-arrow:hover {
    background: #1a5fa8;
    border-color: #1a5fa8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(26, 95, 168, .22);
    transform: translateY(-1px);
}

.cnc-options-arrow:active {
    transform: translateY(0);
}

.cnc-options-dots {
    justify-content: center;
    margin-top: 12px;
}

/* Scoped overrides so the Machine Options carousel sits tighter than the
   shared .cnc-cards-section / .cnc-section-heading defaults without
   changing those classes for every other page that uses them. */
.cnc-section-heading--carousel {
    margin-bottom: 24px;
}

.cnc-options-section {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Card count per view is set in JS (computePerPage): 3 columns down to
   1040px, 2 down to 700px, 1 below that. Just shrink the arrows so a narrow
   phone viewport has room for arrow + card + arrow without overflowing. */
@media (max-width: 700px) {
    .cnc-options-carousel {
        gap: 8px;
    }

    .cnc-options-arrow {
        width: 36px;
        height: 36px;
    }

    .cnc-options-arrow svg {
        width: 14px;
        height: 14px;
    }
}

/* ===== Media Carousel / Video Dialog ===== */
/* Product hero image carousel */
.cnc-media-carousel {
    position: relative;
}

/* Legacy carousel nav (absolute-positioned, used in old .cnc-product layout) */
.cnc-product-image .cnc-media-carousel>.cnc-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #d0d0d0;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: border-color 0.2s, color 0.2s;
}

.cnc-product-image .cnc-media-carousel>.cnc-media-nav:hover {
    border-color: #1a5fa8;
    color: #1a5fa8;
    transform: translateY(-50%) scale(1.08);
}

.cnc-product-image .cnc-media-prev {
    left: 10px;
}

.cnc-product-image .cnc-media-next {
    right: 10px;
}

.cnc-product-image .cnc-media-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 2;
}

.cnc-product-image .cnc-media-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cnc-product-image .cnc-media-dot.active {
    background: #fff;
    transform: scale(1.35);
}

.cnc-media-track {
    border-radius: 8px;
    overflow: hidden;
}

.cnc-media-slide {
    display: none;
    width: 100%;
}

.cnc-media-slide.active {
    display: block;
    animation: cncFadeSlide 0.35s ease;
}

@keyframes cncFadeSlide {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cnc-video-thumb-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: #000;
    cursor: pointer;
}

.cnc-video-thumb-btn img {
    object-fit: cover;
}

.cnc-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.cnc-play-btn svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s;
}

.cnc-video-thumb-btn:hover .cnc-play-btn svg {
    transform: scale(1.1);
}

.cnc-media-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.cnc-media-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #1a5fa8;
    color: #fff;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    flex-shrink: 0;
}

.cnc-media-nav svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cnc-media-nav:hover {
    background: #154d8a;
    transform: scale(1.08);
}

.cnc-media-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.cnc-media-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.cnc-media-dot.active {
    background: #1a5fa8;
    transform: scale(1.35);
}

/* Video dialog */
.cnc-video-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cnc-video-dialog.open {
    display: flex;
}

.cnc-video-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.cnc-video-dialog-inner {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
}

.cnc-video-dialog-close {
    position: absolute;
    top: -44px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.cnc-video-dialog-close:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.cnc-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.cnc-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Brand Filters / Brand Listing ===== */
.cnc-brand-products {
    padding: 48px 0 72px;
}

.cnc-brand-products .cnc-section-heading {
    margin-bottom: 28px;
}

.cnc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.cnc-brand-products .cnc-filter-bar {
    margin-bottom: 0;
}

.cnc-brand-products .cnc-filter-bar--l1 {
    padding: 0 0 8px;
}

.cnc-brand-grid {
    margin-top: 28px;
}

.cnc-filter-btn {
    padding: 6px 16px;
    border: 1.5px solid #d1d9e0;
    border-radius: 100px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.cnc-filter-btn:hover {
    border-color: #1a5fa8;
    color: #1a5fa8;
}

.cnc-filter-btn.is-active {
    border-color: #1a5fa8;
    background: #1a5fa8;
    color: #fff;
}

.cnc-filter-bar--l2 {
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 0;
    gap: 6px;
}

.cnc-filter-bar--l2 .cnc-filter-btn {
    font-size: 11px;
    padding: 5px 13px;
    background: transparent;
    border-color: #b8c4cf;
    color: #5a6a7a;
}

.cnc-filter-bar--l2 .cnc-filter-btn:hover {
    border-color: #1a5fa8;
    color: #1a5fa8;
}

.cnc-filter-bar--l2 .cnc-filter-btn.is-active {
    background: #1a5fa8;
    border-color: #1a5fa8;
    color: #fff;
}

.cnc-filter-bar--l3 {
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 0;
    gap: 6px;
}

.cnc-filter-bar--l3 .cnc-filter-btn {
    font-size: 10px;
    padding: 4px 11px;
    background: transparent;
    border-color: #cdd5db;
    color: #6a7a8a;
    border-radius: 100px;
}

.cnc-filter-bar--l3 .cnc-filter-btn:hover {
    border-color: #1a5fa8;
    color: #1a5fa8;
}

.cnc-filter-bar--l3 .cnc-filter-btn.is-active {
    background: #1a5fa8;
    border-color: #1a5fa8;
    color: #fff;
}

/* Brand landing page */
.cnc-brand-intro {
    padding: 40px 0;
    background: #f8f9fb;
}

.cnc-brand-intro-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: center;
}

.cnc-brand-intro-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.cnc-brand-intro-logo img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

/* Compact hero variant used in default brands page */
.cnc-hero--brand-compact .cnc-hero-container {
    justify-content: center;
}

.cnc-hero--brand-compact .cnc-hero-content {
    flex: 0 1 auto;
}

.cnc-hero--brand-compact .cnc-hero-image {
    flex: 0 1 auto;
    margin-left: 40px;
}

.cnc-hero--brand-compact .cnc-brand-intro-logo {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    align-items: center;
    justify-content: center;
}

.cnc-hero--brand-compact .cnc-brand-intro-logo img {
    max-height: 180px;
}

.cnc-brand-intro-copy h2 {
    margin-bottom: 14px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.cnc-brand-intro-copy p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.85;
    color: #444;
}

/* ===== Product Grid ===== */
.cnc-pg-section {
    padding: 40px 0;
}

/* Matches .cnc-spec-compare-section--grey, so both card modes honour the same background setting. */
.cnc-pg-section--grey {
    background: #f8fafc;
}

.cnc-pg-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* Keeps multiple header actions (e.g. enquiry + brochure) on one row. */
.cnc-pg-header-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cnc-pg-header-left h2 {
    margin: 6px 0 0;
}

.cnc-pg-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 63px;
}

.cnc-pg-item {
    flex: 0 0 376px;
    max-width: 381px;
}

.cnc-pg-item--hidden {
    display: none;
}

.cnc-pg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e6ee;
    gap: 16px;
}

.cnc-pg-count {
    font-size: 14px;
    color: #666;
}

.cnc-pg-count strong {
    color: #1a2133;
}

/* ===== Spec Compare Table ===== */
/* Bodor P series — spec comparison table */
.cnc-spec-compare-section {
    padding: 56px 0 72px;
    background: #fff;
}

.cnc-spec-compare-section--grey {
    background: #f8fafc;
}

.cnc-spec-compare-wrap {
    overflow-x: auto;
    margin-top: 0;
    border: 1px solid #ebeef3;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .12);
}

.cnc-spec-compare-cta {
    margin-top: 32px;
    text-align: center;
    /* Flex so a Brochure button sits beside the enquiry CTA with a gap rather than against it. */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Control systems the series is available with, shown under the spec table. */
.cnc-controls-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #ebeef3;
    text-align: center;
}

.cnc-controls-section h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #4d4d4d;
}

.cnc-controls-section p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #4a596d;
}

/* Flex rather than grid so a short list centres at its natural width on desktop but
   still fills the row on narrow screens, where a capped grid column leaves dead space. */
.cnc-controls-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cnc-controls-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 160px;
    max-width: 240px;
    min-height: 96px;
    padding: 20px 24px;
    border: 1px solid #ebeef3;
    border-radius: 8px;
    background: #fff;
}

/* Logos vary wildly in aspect, so cap both axes and let object-fit letterbox them. */
.cnc-controls-item img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* Fallback when a control system has no logo. */
.cnc-controls-item span {
    font-size: 15px;
    font-weight: 700;
    color: #1f2b3b;
}

.cnc-spec-compare {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

/* Cap and centre single-column spec tables instead of stretching full-width. */
.cnc-spec-compare-wrap:has(.cnc-spec-compare thead tr th:nth-child(2):last-child) {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* Bodor P has 6 columns (label + 5 models) with denser values than the
   2-3 column tables elsewhere, so it needs more room per column. */
.cnc-spec-compare-wrap--wide .cnc-spec-compare {
    min-width: 960px;
}

.cnc-spec-compare th,
.cnc-spec-compare td {
    padding: 14px 22px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    border-bottom: 1px solid #edf0f5;
}

.cnc-spec-compare thead th {
    position: relative;
    padding: 22px 22px 18px;
    vertical-align: bottom;
    background: #e9ecf1;
    border-bottom: 1px solid #d7dce4;
}

/* Model names carry the header, so they get brand blue at a larger, heavier size than the body cells. */
.cnc-spec-compare thead th:not(.cnc-spec-compare-label) {
    color: #1a5fa8;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.3;
}

.cnc-spec-compare thead .cnc-spec-compare-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
    text-align: left;
    vertical-align: bottom;
}

/* Model headings become links when a series opts into linking them to their product pages. */
.cnc-spec-compare-model-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 95, 168, .3);
}

.cnc-spec-compare-model-link:hover,
.cnc-spec-compare-model-link:focus {
    color: #14497f;
    border-bottom-color: #14497f;
}

.cnc-spec-compare tbody th {
    text-align: left;
    font-weight: 700;
    font-size: 12.5px;
    color: #3f4756;
    background: #eef0f4;
    white-space: nowrap;
}

.cnc-spec-compare tbody td {
    color: #1a2133;
    font-weight: 400;
}

.cnc-spec-compare tbody tr:hover th {
    background: #e4e7ed;
}

.cnc-spec-compare tbody tr:hover td {
    background: #f9fafb;
}

.cnc-spec-compare tbody tr:last-child th,
.cnc-spec-compare tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Brands Carousel Strip ===== */

.cnc-brands-strip {
    overflow: hidden;
    padding: 28px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
}

.cnc-brands-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: cnc-brands-scroll 28s linear infinite;
}

.cnc-brands-strip:hover .cnc-brands-track {
    animation-play-state: paused;
}

.cnc-brands-item {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease;
}

.cnc-brands-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cnc-brands-item:hover {
    border-bottom: 3px solid #1a5fa8;
}

@keyframes cnc-brands-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== Header ===== */
/* ---- Sticky header ---- */
#top.header {
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* Clears the compact sticky header on every anchor, not a hand-kept id list. */
[id] {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---- Row 1: Utility bar (white) ---- */
.cnc-header .cnc-utility-bar {
    background: #fff;
    border-bottom: 1px solid #e2e6ee;
}

.cnc-header .cnc-utility-inner {
    display: flex;
    align-items: center;
    height: var(--cnc-utility-h, 85px);
    padding: 0;
    transition: height .35s ease-out;
}

/* Kills the transition during an anchor click so the scroll target is measured on a settled layout. */
.cnc-header.is-collapsing .cnc-utility-inner,
.cnc-header.is-collapsing .cnc-topbar-logo a,
.cnc-header.is-collapsing .cnc-logo-full,
.cnc-header.is-collapsing .cnc-logo-icon {
    transition: none;
}

.cnc-header .cnc-topbar-logo {
    display: flex;
    align-items: center;
    padding-left: 1px;
    padding-right: 12px;
    flex-shrink: 0;
}

.cnc-header .cnc-topbar-logo a {
    position: relative;
    display: block;
    height: 85px;
    width: 310px;
    overflow: hidden;
    transition: height .4s ease-out,
        width .4s ease-out;
}

.cnc-header .cnc-logo-full {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scaleX(1);
    transform-origin: left center;
    width: 100%;
    opacity: 1;
    transition: opacity .28s ease-in,
        transform .32s cubic-bezier(0.4, 0, 1, 1);
}

.cnc-header .cnc-logo-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(0.5);
    transform-origin: left center;
    height: 32px;
    width: 32px;
    border-radius: 4px;
    object-fit: cover;
    opacity: 0;
    transition: opacity .22s ease-out .18s,
        transform .25s cubic-bezier(0, 0, 0.2, 1) .18s;
}

/* ---- Scrolled (compact) state ---- */
/* Shrinks the utility row. Kept as one variable so the anchor offset can track it. */
.cnc-header.is-scrolled {
    --cnc-utility-h: 40px;
}

.cnc-header.is-scrolled .cnc-topbar-logo a {
    height: 32px;
    width: 32px;
}

.cnc-header.is-scrolled .cnc-logo-full {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scaleX(0.05);
}

.cnc-header.is-scrolled .cnc-logo-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.cnc-header .cnc-utility-store {
    flex: 1;
    min-width: 0;
    font-size: 15px;
}

.cnc-header .cnc-utility-store .store-bar {
    display: block;
    line-height: 20px;
}

.cnc-header .cnc-utility-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding-left: 16px;
}

.cnc-header .cnc-account-link {
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1f2b3b;
    white-space: nowrap;
    transition: color .15s;
}

.cnc-header .cnc-account-link .material-icons {
    font-size: 15px;
}

.cnc-header .cnc-account-link:hover {
    color: #005daa;
}

/* ---- Enquire Now button ---- */
.cnc-header .cnc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2.5px solid transparent;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s, background-color .15s, color .15s;
    cursor: pointer;
}

.cnc-header .cnc-btn:hover {
    transform: translateY(-1px);
}

.cnc-header .cnc-btn-enquiry {
    background-color: #d10000;
    border-color: #d10000;
    color: #fff;
}

.cnc-header .cnc-btn-enquiry:hover {
    background-color: #a80000;
    border-color: #a80000;
    color: #fff;
}

/* ---- Row 2: Blue navigation bar ---- */
.cnc-header .cnc-navbar {
    background: #005daa;
    position: relative;
    padding: 0;
    margin: 0;
    height: 44px;
}

.cnc-header .cnc-navbar .container {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.cnc-header .cnc-navbar .container::before,
.cnc-header .cnc-navbar .container::after {
    display: none;
}

.cnc-header .cnc-menu-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    height: 100%;
    position: relative;
    gap: 0;
}

.cnc-header .cnc-menu-tabs>li {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.cnc-header .cnc-menu-tabs>li>a {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 8px;
    padding: 0 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 0;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cnc-header .cnc-menu-tabs>li>a i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8) !important;
    display: inline-block !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cnc-header .cnc-menu-tabs>li:hover>a,
.cnc-header .cnc-menu-tabs>li.is-active>a {
    color: #ffffff;
    background: #d10000;
}

.cnc-header .cnc-menu-tabs>li:hover>a i {
    color: #ffffff !important;
}

.cnc-header .cnc-menu-tabs>li>a i.cnc-menu-arrow {
    transform: rotate(0deg) !important;
}

.cnc-header .cnc-menu-tabs>li:hover>a i.cnc-menu-arrow {
    transform: rotate(180deg) !important;
}

.cnc-header .cnc-menu-tabs>li.cnc-nav-link>a {
    padding: 0 14px;
}

.cnc-header .cnc-menu-tabs>li.cnc-nav-link:hover>a {
    background: transparent !important;
    color: #ffffff !important;
}

.cnc-header .cnc-menu-tabs>li.cnc-nav-link>a span {
    position: relative;
}

.cnc-header .cnc-menu-tabs>li.cnc-nav-link>a span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cnc-header .cnc-menu-tabs>li.cnc-nav-link:hover>a span::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* ---- Drop-down panels ---- */

/* MENU CSS */
.cnc-header .cnc-mega-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    /* Collapses to the two fixed columns until has-pane widens it for the flyout. */
    width: 430px;
    max-width: calc(100vw - 30px);
    min-height: 300px;
    transition: width 0.18s ease;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .04);
    z-index: 1000;
    overflow: hidden;
    margin-top: 0;
    animation: cncDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cncDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cnc-header .cnc-menu-tabs>li:hover .cnc-mega-panel {
    display: flex;
}

/* Widened only while a flyout is open, so no empty third column shows. */
.cnc-header .cnc-mega-panel.has-pane {
    width: 850px;
}

.cnc-header .cnc-mega-brands-col {
    width: 170px;
    flex-shrink: 0;
    background: #eef1f6;
    border-right: 2px solid #cbd5e1;
    padding: 14px 0;
    overflow-y: auto;
}

.cnc-header .cnc-mega-sidebar-col {
    width: 260px;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    padding: 14px 0;
}

.cnc-header .cnc-mega-col-heading {
    margin: 0 0 6px;
    padding: 0 18px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cnc-header .cnc-mega-brands-col .cnc-mega-col-heading {
    color: #64748b;
    border-bottom: 1px solid #dbe2ea;
}

.cnc-header .cnc-mega-sidebar-col .cnc-mega-col-heading {
    color: #94a3b8;
    border-bottom: 1px solid #e2e8f0;
}

/* Names the open category above its list. Sits flush with the pane's own padding. */
.cnc-header .cnc-mega-pane .cnc-mega-col-heading {
    padding: 0 0 10px;
    color: #94a3b8;
    border-bottom: 1px solid #e2e8f0;
}

.cnc-header .cnc-mega-brands {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cnc-header .cnc-mega-brands>li {
    padding: 2px 8px;
}

.cnc-header .cnc-mega-brands>li>a,
.cnc-header .cnc-mega-brands>li>.cnc-mega-brand-disabled {
    display: block;
    /* 9px matches the sidebar rows so both columns start on the same line. */
    padding: 9px 14px;
    font-size: 14px;
    border-radius: 6px;
}

.cnc-header .cnc-mega-brands>li>a {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s ease;
}

.cnc-header .cnc-mega-brands>li>a:hover {
    background: #ffffff;
    color: #d10000;
}

.cnc-header .cnc-mega-brands>li>.cnc-mega-brand-disabled {
    color: #a3adba;
    cursor: default;
}


.cnc-header .cnc-mega-sidebar {
    width: 100%;
    flex-shrink: 0;
    background: transparent;
    border-right: none;
    margin: 0;
    /* No top padding, so the first row lines up with the brands column. */
    padding: 0;
    list-style: none;
}

.cnc-header .cnc-mega-sidebar>li {
    padding: 2px 8px;
}

.cnc-header .cnc-mega-sidebar>li>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.cnc-header .cnc-mega-sidebar>li>a:hover,
.cnc-header .cnc-mega-sidebar>li.is-active>a {
    background: #eef2f6;
    color: #d10000;
}

/* Cross-highlighting: rows unrelated to the hovered item grey out in both columns. */
.cnc-header .cnc-mega-brands.has-focus>li>a,
.cnc-header .cnc-mega-sidebar.has-focus>li>a {
    background: transparent;
    color: #a3adba;
}

/* Rows the hovered item relates to stay black. */
.cnc-header .cnc-mega-brands.has-focus>li.is-related>a,
.cnc-header .cnc-mega-sidebar.has-focus>li.is-related>a {
    color: #334155;
}

/* The row under the cursor keeps its own hover styling, outranking both states above. */
.cnc-header .cnc-mega-brands.has-focus>li>a:hover,
.cnc-header .cnc-mega-brands>li>a:hover {
    background: #ffffff;
    color: #d10000;
}

.cnc-header .cnc-mega-sidebar.has-focus>li>a:hover,
.cnc-header .cnc-mega-sidebar>li>a:hover {
    background: #eef2f6;
    color: #d10000;
}

.cnc-header .cnc-mega-sidebar>li>a .material-icons {
    font-size: 16px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.15s ease, color 0.15s ease;
}

.cnc-header .cnc-mega-sidebar>li:hover>a .material-icons,
.cnc-header .cnc-mega-sidebar>li.is-active>a .material-icons {
    color: #d10000;
    transform: translateX(2px);
}

.cnc-header .cnc-mega-pane {
    display: none;
    position: absolute;
    left: 430px;
    top: 0;
    right: 0;
    bottom: 0;
    /* Matches the 14px wrapper padding either side, so all three headings sit level. */
    padding: 14px 24px 24px;
    background: #fff;
    overflow-y: auto;
}

/* JS owns which pane is open, via is-active on its row. */
.cnc-header .cnc-mega-sidebar>li.is-active .cnc-mega-pane {
    display: block;
}

.cnc-header .cnc-panel-columns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cnc-header .cnc-panel-col {
    width: 100%;
    padding: 0 0 6px 0;
}

.cnc-header .cnc-panel-col h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #f1f5f9;
    padding: 11px 0 8px 0;
    /* Sidebar rows are sized by their 16px chevron, not the text. Match it. */
    line-height: 16px;
}

/* Sidebar's first row sits 17px below its heading border (6px margin + 2px li + 9px link).
   The pane heading has no margin, so the first column pays the extra 6px. */
.cnc-header .cnc-panel-col:first-child h4 {
    padding-top: 17px;
}

.cnc-header .cnc-panel-col h4 a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Holds the 16px box so the hover arrow can't shift the text. */
    min-height: 16px;
    transition: color .15s;
}

.cnc-header .cnc-panel-col h4 a:hover {
    color: #d10000;
}

.cnc-header .cnc-panel-col h4 a::after {
    content: "→";
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
}

.cnc-header .cnc-panel-col h4 a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Footer / Misc ===== */
/* -- Brand page client stories: single featured story, text + image split -- */
.cnc-client-stories {
    padding: 56px 0;
}

.cnc-client-stories .cnc-container {
    max-width: 1500px;
}

.cnc-client-story-card {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    min-height: 260px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    background: #fff;
}

.cnc-client-story-card+.cnc-client-story-card {
    margin-top: 16px;
}

.cnc-client-story-copy {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.cnc-client-story-copy .cnc-text-eyebrow {
    color: #1a5fa8;
    margin-bottom: 6px;
}

.cnc-client-story-copy h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #1f2b3b;
}

.cnc-client-story-copy>p {
    font-size: 13px;
    line-height: 1.55;
    color: #4d4d4d;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

/* The category templates wrap the rich-text body in .cnc-section-body; match the brand page's plain paragraphs. */
.cnc-client-story-copy .cnc-section-body {
    font-size: 13px;
    line-height: 1.55;
    color: #4d4d4d;
    margin: 0 0 14px;
}

.cnc-client-story-copy .cnc-section-body p {
    margin: 0 0 14px;
}

.cnc-client-story-copy .cnc-section-body> :last-child {
    margin-bottom: 0;
}

.cnc-client-story-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    color: #1a5fa8;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 18px;
}

.cnc-client-story-video:hover {
    text-decoration: underline;
}

.cnc-client-story-video-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.cnc-client-story-video-icon svg {
    width: 100%;
    height: 100%;
}

.cnc-client-story-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #ececec;
    font-size: 13px;
    font-weight: 600;
    color: #1f2b3b;
}

.cnc-client-story-image {
    padding: 10px;
}

.cnc-client-story-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

/* ===== Responsive / Media Queries ===== */
@media (max-width: 1024px) {

    .cnc-feature-grid,
    .cnc-feature-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 340px));
    }
}

@media (max-width: 960px) {

    .cnc-container,
    .cnc-hero,
    .cnc-action-band {
        padding-right: 24px;
        padding-left: 24px;
    }

    .cnc-hero-carousel {
        height: 420px;
    }

    .cnc-hero-image {
        min-height: 420px;
    }

    .cnc-hero-image img {
        max-height: 385px;
    }

    .cnc-hero::before {
        display: none;
    }

    .cnc-hero-video-bg::before,
    .cnc-hero-slideshow-bg::before {
        display: block;
    }

    .cnc-hero-container,
    .why-doosan .cnc-container,
    .cnc-img-text .cnc-container,
    .cnc-action-inner {
        flex-direction: column;
        gap: 36px;
        text-align: center;
    }

    .cnc-service-support .cnc-img-text-content,
    .cnc-service-support .cnc-img-text-image {
        flex: 0 1 auto;
        width: 100%;
    }

    /* Stack image above text on both variants, so image-left doesn't invert the reading order. */
    .cnc-section-split,
    .cnc-section-split--image-left {
        flex-direction: column-reverse;
        gap: 36px;
    }

    /* Stacked heroes lead with the image, which otherwise lands below the buttons. */
    .cnc-hero-container .cnc-hero-image {
        order: -1;
    }

    /* Full-bleed heroes keep their image as an absolute background, so the stacking
       and min-height rules above don't apply to them. */
    .cnc-hero-video-bg .cnc-hero-image,
    .cnc-hero-slideshow-bg .cnc-hero-image {
        order: 0;
        min-height: 0;
    }

    .cnc-img-text--compact .cnc-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cnc-img-text--compact.cnc-img-text--reverse .cnc-img-text-content,
    .cnc-img-text--compact .cnc-img-text-content {
        grid-column: 1;
        grid-row: 2;
    }

    .cnc-img-text--compact.cnc-img-text--reverse .cnc-img-text-image,
    .cnc-img-text--compact .cnc-img-text-image {
        grid-column: 1;
        grid-row: 1;
    }

    .cnc-hero h1 {
        font-size: 38px;
    }

    /* Side padding is a percentage at desktop, which collapses the content column
       to a sliver once the viewport is narrow - swap it for a fixed gutter. */
    .cnc-hero-video-bg {
        min-height: 480px;
        padding: 72px 24px;
    }

    .cnc-hero-video-bg .cnc-hero-content {
        max-width: 100%;
        padding: 32px 28px;
    }

    .cnc-hero-slideshow-bg {
        min-height: 350px;
        padding: 50px 24px;
    }

    .cnc-hero-slideshow-bg .cnc-hero-content {
        max-width: 100%;
    }

    .cnc-hero-body {
        max-width: 100%;
    }

    .cnc-hero-actions,
    .cnc-action-actions,
    .cnc-img-text-actions {
        justify-content: center;
    }

    .cnc-hero-slideshow-bg .cnc-hero-actions {
        justify-content: flex-start;
    }

    .cnc-why .cnc-why-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cnc-pv2-top,
    .cnc-pv2-bottom,
    .cnc-pv2-bottom--with-image {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cnc-pv2-specs {
        position: static;
    }

    .cnc-pv2-main-image h1 {
        font-size: 32px;
    }

    .cnc-pg-header {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .cnc-brand-intro-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cnc-brand-intro-logo {
        max-width: 260px;
    }
}

@media (max-width: 760px) {
    .cnc-pg-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {

    .cnc-hero-carousel {
        height: 320px;
    }

    .cnc-hero-image {
        min-height: 320px;
    }

    .cnc-hero-video-bg .cnc-hero-image,
    .cnc-hero-slideshow-bg .cnc-hero-image {
        min-height: 0;
    }

    .cnc-hero-video-bg {
        min-height: 420px;
        padding: 48px 16px;
    }

    .cnc-hero-slideshow-bg {
        min-height: 300px;
        padding: 40px 16px;
    }

    .cnc-hero-video-bg .cnc-hero-content {
        padding: 24px 18px;
    }

    /* 17px body copy is sized for the wide desktop card; drop it back to the
       shared hero size so the text doesn't run to one or two words a line. */
    .cnc-hero-video-bg .cnc-hero-body,
    .cnc-hero-slideshow-bg .cnc-hero-body {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .cnc-hero-image img {
        max-height: 285px;
    }

    .cnc-why .cnc-why-points {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    /* Rows size to content here, and an image tile has no text to give it height. */
    .cnc-why .cnc-why-point-img-tile {
        min-height: 220px;
    }

    .cnc-cards .cnc-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .cnc-feature-grid {
        grid-template-columns: 1fr;
    }

    .cnc-hero h1 {
        font-size: 30px;
    }

    .cnc-hero-actions,
    .cnc-action-actions,
    .cnc-img-text-actions {
        flex-direction: column;
    }

    .cnc-hero-actions .cnc-btn,
    .cnc-action-actions .cnc-btn,
    .cnc-img-text-actions .cnc-btn {
        width: 100%;
        text-align: center;
    }

    .cnc-pv2-main-image h1 {
        font-size: 26px;
    }

    .cnc-pv2-actions {
        flex-direction: column;
    }

    .cnc-pv2-actions .cnc-btn {
        width: 100%;
        text-align: center;
    }

    .cnc-spec-table th,
    .cnc-spec-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Shadow on the right edge hints at more columns; the local-attached white cover hides it once scrolled to the end. */
    .cnc-spec-compare-wrap {
        background:
            linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%) right / 40px 100% no-repeat local,
            radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, .2), rgba(15, 23, 42, 0)) right / 14px 100% no-repeat scroll,
            #fff;
    }

    /* Drop the desktop min-widths so the label and first model column fit the screen, with the rest scrolling. */
    .cnc-spec-compare,
    .cnc-spec-compare-wrap--wide .cnc-spec-compare {
        min-width: 0;
        background: transparent;
    }

    .cnc-spec-compare th,
    .cnc-spec-compare td {
        padding: 8px 10px;
        font-size: 11.5px;
        line-height: 1.4;
    }

    .cnc-spec-compare thead th {
        padding: 14px 10px 12px;
    }

    .cnc-spec-compare td,
    .cnc-spec-compare thead th:not(.cnc-spec-compare-label) {
        min-width: 104px;
    }

    /* Labels stay pinned while the model columns scroll under them. */
    .cnc-spec-compare .cnc-spec-compare-label {
        position: sticky;
        left: 0;
        z-index: 2;
        max-width: 128px;
        white-space: normal;
        box-shadow: 1px 0 0 #d7dce4;
    }

    .cnc-spec-compare tbody th {
        font-size: 11px;
    }

    .cnc-spec-compare thead .cnc-spec-compare-label {
        font-size: 10px;
    }

    .cnc-spec-compare thead th:not(.cnc-spec-compare-label) {
        font-size: 12.5px;
    }
}

@media (max-width: 600px) {
    .cnc-pg-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .cnc-client-story-card {
        grid-template-columns: 1fr;
        height: auto;
    }

    .cnc-client-story-copy {
        padding: 20px;
    }

    .cnc-client-story-image {
        min-height: 180px;
        padding: 20px;
    }
}

/* ---------------------------------------------------------------------------
   Stocked machines listing: sidebar filters + dense product grid.
   Self-contained classes so the shared .cnc-card / .cnc-filter-* styles used by
   the marketing pages stay untouched.
   --------------------------------------------------------------------------- */
.cnc-stocked-section {
    padding: 40px 0 72px;
}

.cnc-stocked-section * {
    box-sizing: border-box;
}

.cnc-stocked-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 28px;
    padding-bottom: 20px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e2e7ec;
}

.cnc-stocked-head h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    color: #16273a;
}

/* Shown when the listing was reached from a category page's "See What's In Stock" button.
   Takes its own line in the flex head so the heading keeps its baseline alignment. */
.cnc-stocked-deeplink-notice {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 10px;
    font-size: 15px;
    color: #4a5b6d;
}

.cnc-stocked-deeplink-notice strong {
    color: #16273a;
}

.cnc-stocked-deeplink-notice button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #1a5fa8;
    text-decoration: underline;
    cursor: pointer;
}

.cnc-stocked-deeplink-notice button:hover {
    color: #154d8a;
}

.cnc-stocked-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.cnc-stocked-sidebar {
    position: sticky;
    top: 24px;
}

.cnc-stocked-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border: 1.5px solid #d1d9e0;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #16273a;
    cursor: pointer;
}

.cnc-stocked-filter-toggle i {
    font-size: 18px;
}

.cnc-filter-group+.cnc-filter-group {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e6eaee;
}

.cnc-filter-title {
    margin: 0 0 12px;
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a97a4;
    border-bottom: 1px solid #d1d9e0;
}

.cnc-filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cnc-filter-list li+li {
    margin-top: 2px;
}

/* Scoped to the sidebar: unscoped, these override the pill .cnc-filter-btn above and flatten the brand/category filter bars into full-width rows. */
.cnc-stocked-sidebar .cnc-filter-btn {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    color: #3d4c5c;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.cnc-stocked-sidebar .cnc-filter-btn:hover {
    background: #f1f5f9;
    color: #1a5fa8;
}

.cnc-stocked-sidebar .cnc-filter-btn.is-active {
    background: #eaf2fb;
    font-weight: 700;
    color: #1a5fa8;
    box-shadow: inset 2px 0 0 #1a5fa8;
}

.cnc-filter-count {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    color: #9aa7b4;
}

.cnc-stocked-sidebar .cnc-filter-btn.is-active .cnc-filter-count {
    color: #1a5fa8;
}

.cnc-stocked-sidebar .cnc-filter-btn.is-empty {
    color: #b7c0c9;
    cursor: default;
}

.cnc-stocked-sidebar .cnc-filter-btn.is-empty:hover {
    background: transparent;
    color: #b7c0c9;
}

.cnc-stocked-sidebar .cnc-filter-btn.is-empty .cnc-filter-count {
    color: #d3d9de;
}

.cnc-filter-reset {
    margin-top: 22px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 12px;
    font-weight: 600;
    color: #7c8b99;
    text-decoration: underline;
    cursor: pointer;
}

.cnc-filter-reset:hover {
    color: #1a5fa8;
}

/* Results */
.cnc-stocked-count {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e6eaee;
    font-size: 12px;
    font-weight: 500;
    color: #7c8b99;
}

.cnc-stocked-count strong {
    color: #16273a;
}

.cnc-stocked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 20px;
}

.cnc-stocked-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e7ec;
    border-radius: 6px;
    background: #fff;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.cnc-stocked-card:hover {
    transform: translateY(-2px);
    border-color: #c6d2dd;
    box-shadow: 0 8px 22px rgba(22, 39, 58, .10);
}

.cnc-stocked-card-media {
    position: relative;
    display: block;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid #eef1f4;
}

.cnc-stocked-card-media img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.cnc-stocked-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 0;
    text-align: left;
}

.cnc-stocked-card-brand {
    margin: 0 0 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a97a4;
}

.cnc-stocked-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.32;
}

.cnc-stocked-card-title a {
    color: #16273a;
    text-decoration: none;
}

.cnc-stocked-card-title a:hover {
    color: #1a5fa8;
}

.cnc-stocked-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #6a7a8a;
}

.cnc-stocked-card-code {
    margin: auto 0 0;
    padding: 10px 0 0;
    font-size: 11px;
    color: #8a97a4;
}

.cnc-stocked-card-code strong {
    font-weight: 700;
    color: #3d4c5c;
}

.cnc-stocked-card-actions {
    display: flex;
    gap: 8px;
    padding: 14px 16px 16px;
}

.cnc-stocked-btn {
    flex: 1;
    padding: 9px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}

.cnc-stocked-btn--primary {
    border: 1.5px solid #1a5fa8;
    background: #1a5fa8;
    color: #fff;
}

.cnc-stocked-btn--primary:hover,
.cnc-stocked-btn--primary:focus {
    background: #14497f;
    border-color: #14497f;
    color: #fff;
}

.cnc-stocked-btn--ghost {
    flex: 0 0 auto;
    border: 1.5px solid #d10000;
    background: #fff;
    color: #d10000;
}

.cnc-stocked-btn--ghost:hover,
.cnc-stocked-btn--ghost:focus {
    border-color: #d10000;
    background: #d10000;
    color: #fff;
}

@media (max-width: 1024px) {
    .cnc-stocked-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 860px) {
    .cnc-stocked-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cnc-stocked-head h1 {
        font-size: 30px;
    }

    .cnc-stocked-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cnc-stocked-sidebar {
        position: static;
    }

    .cnc-stocked-filter-toggle {
        display: flex;
    }

    .cnc-stocked-filters {
        display: none;
        margin-top: 14px;
        padding: 18px;
        border: 1px solid #e2e7ec;
        border-radius: 6px;
    }

    .cnc-stocked-sidebar.is-open .cnc-stocked-filters {
        display: block;
    }
}

@media (max-width: 480px) {
    .cnc-stocked-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .cnc-stocked-card-media img {
        height: 120px;
    }

    .cnc-stocked-card-actions {
        flex-direction: column;
    }
}

/* CNC landing page: featured brand rows (logo + description + link), one per line. */
/* Grey is the default shade; the editor's white option adds --white. */
.cnc-featured-brands {
    padding: 72px 0;
    background: #f6f7f9;
}

.cnc-featured-brands--white {
    background: #fff;
}

.cnc-featured-brands--grey {
    background: #f6f7f9;
}

.cnc-featured-brand-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

.cnc-featured-brand-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 26px 32px;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(22, 39, 58, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cnc-featured-brand-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 12px 0 0 12px;
    background: #1a5fa8;
    transform: scaleY(0);
    transition: transform .2s ease;
}

.cnc-featured-brand-row:hover {
    transform: translateY(-3px);
    border-color: #d7e0ea;
    box-shadow: 0 14px 32px rgba(22, 39, 58, .10);
}

.cnc-featured-brand-row:hover::before {
    transform: scaleY(1);
}

.cnc-featured-brand-logo {
    display: flex;
    flex: 0 0 220px;
    align-items: center;
    justify-content: center;
    height: 130px;
}

.cnc-featured-brand-logo img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.cnc-featured-brand-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.cnc-featured-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #16273a;
}

.cnc-featured-brand-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: #637085;
}

.cnc-featured-brand-chevron {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid #dde4ec;
    border-radius: 50%;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.cnc-featured-brand-chevron i.material-icons {
    font-size: 22px;
    color: #1a5fa8;
    transition: color .2s ease;
}

.cnc-featured-brand-row:hover .cnc-featured-brand-chevron {
    border-color: #1a5fa8;
    background: #1a5fa8;
    transform: translateX(4px);
}

.cnc-featured-brand-row:hover .cnc-featured-brand-chevron i.material-icons {
    color: #fff;
}

/* ===== Other Brands ===== */

.cnc-other-brands {
    max-width: 1040px;
    margin: 44px auto 0;
    padding-top: 36px;
    border-top: 1px solid #e2e7ee;
}

.cnc-other-brands-head {
    margin-bottom: 24px;
    text-align: center;
}

.cnc-other-brands-head h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7a869a;
}

.cnc-other-brands-grid {
    display: grid;
    grid-template-columns: repeat(var(--other-brands-cols, 4), minmax(0, 195px));
    justify-content: center;
    gap: 14px;
}

.cnc-other-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 12px 16px;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Deliberately capped below .cnc-featured-brand-logo img (200x100) so the featured brands stay visually dominant. */
.cnc-other-brand img {
    max-width: 148px;
    max-height: 62px;
    object-fit: contain;
}

.cnc-other-brand:hover {
    transform: translateY(-3px);
    border-color: #d7e0ea;
    box-shadow: 0 10px 24px rgba(22, 39, 58, .09);
}

@media (max-width: 860px) {
    .cnc-other-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 170px));
        gap: 12px;
    }

    .cnc-other-brand {
        height: 82px;
        padding: 10px 14px;
    }

    .cnc-other-brand img {
        max-width: 136px;
        max-height: 56px;
    }
}

@media (max-width: 560px) {
    .cnc-other-brands {
        margin-top: 32px;
        padding-top: 28px;
    }

    .cnc-other-brands-grid {
        grid-template-columns: repeat(2, minmax(0, 160px));
        gap: 10px;
    }

    .cnc-other-brand {
        height: 74px;
        padding: 10px 12px;
    }

    .cnc-other-brand img {
        max-width: 114px;
        max-height: 50px;
    }
}

@media (max-width: 780px) {
    .cnc-featured-brand-row {
        flex-wrap: wrap;
        gap: 16px;
        padding: 24px;
    }

    .cnc-featured-brand-logo {
        flex: 0 0 150px;
        height: 100px;
    }

    .cnc-featured-brand-logo img {
        max-width: 140px;
        max-height: 72px;
    }
}

@media (max-width: 560px) {
    .cnc-featured-brand-list {
        gap: 12px;
    }

    .cnc-featured-brand-row {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .cnc-featured-brand-row::before {
        border-radius: 12px 0 0 12px;
        transform: scaleY(1);
    }

    .cnc-featured-brand-logo {
        flex: 0 0 92px;
        height: 92px;
        border: 1px solid #e8ecf1;
        border-radius: 10px;
        background: #fbfcfd;
    }

    .cnc-featured-brand-logo img {
        max-width: 74px;
        max-height: 52px;
    }

    .cnc-featured-brand-copy {
        gap: 4px;
        padding-right: 28px;
    }

    .cnc-featured-brand-name {
        font-size: 16px;
    }

    .cnc-featured-brand-desc {
        font-size: 13px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cnc-featured-brand-chevron {
        position: absolute;
        right: 14px;
        bottom: 14px;
        width: 28px;
        height: 28px;
        border: none;
        background: transparent;
    }

    .cnc-featured-brand-chevron i.material-icons {
        font-size: 20px;
    }

    .cnc-featured-brand-row:hover .cnc-featured-brand-chevron,
    .cnc-featured-brand-row:active .cnc-featured-brand-chevron {
        background: transparent;
        transform: none;
    }

    .cnc-featured-brand-row:hover .cnc-featured-brand-chevron i.material-icons,
    .cnc-featured-brand-row:active .cnc-featured-brand-chevron i.material-icons {
        color: #1a5fa8;
    }
}