.cnc-service-master-wrapper,
.cnc-service-master-wrapper *:not(.cnc-service-tech-heading):not(.cnc-service-tech-title):not(.cnc-service-btn-learn-more):not(.cnc-service-btn-portal) {
    font-family: 'Sarabun', sans-serif;
    font-size: 17px;
}

.cnc-service-master-wrapper {
    font-family: 'Sarabun', sans-serif;
    font-size: 17px;
    color: #333;
    line-height: 1.7;
    background-color: #fff;
}

.cnc-service-master-wrapper p,
.cnc-service-master-wrapper li,
.cnc-service-master-wrapper td,
.cnc-service-master-wrapper th,
.cnc-service-master-wrapper label,
.cnc-service-master-wrapper input,
.cnc-service-master-wrapper button,
.cnc-service-master-wrapper a:not(.cnc-service-btn-learn-more):not(.cnc-service-btn-portal) {
    font-family: 'Sarabun', sans-serif;
    font-size: 17px;
}

.cnc-service-master-wrapper p {
    font-family: 'Sarabun', sans-serif;
    font-size: 17px;
    color: #7a7a7a;
    margin: 17px 0 30px;
}

.cnc-service-master-wrapper .cnc-service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.cnc-service-master-wrapper .cnc-service-bg-gray {
    background-color: #f9f9f9;
    padding: 100px 0;
}

.cnc-service-master-wrapper .cnc-service-bg-white {
    background-color: #ffffff;
    padding: 100px 0;
}

.cnc-service-master-wrapper .cnc-service-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cnc-service-master-wrapper .cnc-service-hero-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cnc-service-master-wrapper .cnc-service-main-image-frame {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fcfcfc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    position: relative;
}

.cnc-service-master-wrapper .cnc-service-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
    box-shadow: none;
}

.cnc-service-master-wrapper .cnc-service-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    background: #000;
}

.cnc-service-master-wrapper .cnc-service-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cnc-service-master-wrapper .cnc-service-thumbnail-box {
    aspect-ratio: 4 / 3;
    border: 1px solid #eee;
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.cnc-service-master-wrapper .cnc-service-thumbnail-box:hover,
.cnc-service-master-wrapper .cnc-service-thumbnail-box.active {
    opacity: 1;
    border-color: #f37021;
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.1);
}

.cnc-service-master-wrapper .cnc-service-thumbnail-box img,
.cnc-service-master-wrapper .cnc-service-thumbnail-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cnc-service-master-wrapper .cnc-service-thumbnail-video {
    position: relative;
}

.cnc-service-master-wrapper .cnc-service-thumbnail-video .cnc-service-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    transition: background 0.2s ease;
}

.cnc-service-master-wrapper .cnc-service-thumbnail-video:hover .cnc-service-play-icon,
.cnc-service-master-wrapper .cnc-service-thumbnail-video.active .cnc-service-play-icon {
    background: rgba(0, 0, 0, 0.15);
}

.cnc-service-master-wrapper .cnc-service-thumbnail-video .cnc-service-play-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.cnc-service-master-wrapper .cnc-service-hero-kicker {
    font-size: 17px;
    font-weight: 500;
    color: #f37021;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.cnc-service-master-wrapper .cnc-service-hero-content h1 {
    margin-bottom: 25px !important;
}

.cnc-service-master-wrapper .cnc-service-hero-subtitle {
    max-width: 90%;
}

.cnc-service-master-wrapper .cnc-service-hero-action {
    margin-top: 40px;
    display: block;
}

.cnc-service-master-wrapper .cnc-service-hero-action .cnc-service-btn-learn-more {
    width: 380px;
    max-width: 100%;
}

.cnc-service-master-wrapper .cnc-service-benefit-row {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 17px;
    display: flex;
    align-items: center;
}

.cnc-service-master-wrapper .cnc-service-benefit-row span {
    color: #f37021;
    margin-right: 15px;
    font-size: 1.3rem;
}

.cnc-service-master-wrapper .cnc-service-portal-banner {
    background: #1a1a1a;
    color: #fff;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cnc-service-master-wrapper .cnc-service-portal-text h3 {
    color: #fff;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    font-size: 1.8rem;
}

.cnc-service-master-wrapper .cnc-service-btn-portal {
    display: inline-flex;
    align-items: center;
    background-color: #f37021 !important;
    color: #fff !important;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 17px;
    border: none;
    cursor: pointer;
    height: 55px;
    box-sizing: border-box;
}

.cnc-service-master-wrapper .cnc-service-portal-form {
    display: flex;
    gap: 0;
}

.cnc-service-master-wrapper .cnc-service-portal-email {
    background-color: #f4f4f4 !important;
    border: 1px solid #f4f4f4 !important;
    padding: 18px 25px !important;
    font-size: 17px !important;
    color: #333 !important;
    height: 55px !important;
    box-sizing: border-box !important;
    flex-grow: 1;
    min-width: 260px;
    outline: none;
}

.cnc-service-master-wrapper .cnc-service-tech-section {
    padding: 100px 0;
    background: #f3f3f3;
}

.cnc-service-master-wrapper .cnc-service-tech-heading {
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    font-size: 45px;
    line-height: 1.0667em;
    margin: 25px 0 60px 0;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

.cnc-service-master-wrapper .cnc-service-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.cnc-service-master-wrapper .cnc-service-story-copy > :last-child {
    margin-bottom: 0;
}

.cnc-service-master-wrapper .cnc-service-story-copy p:last-child {
    margin-bottom: 0;
}

.cnc-service-master-wrapper .cnc-service-benefit-list {
    margin-top: 40px;
}

.cnc-service-master-wrapper .cnc-service-story-media {
    align-self: start;
}

.cnc-service-master-wrapper .cnc-service-media-panel {
    border: 1px solid #eee;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.cnc-service-master-wrapper .cnc-service-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.cnc-service-master-wrapper .cnc-service-video-embed iframe,
.cnc-service-master-wrapper .cnc-service-video-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
    object-fit: cover;
}

.cnc-service-master-wrapper .cnc-service-scale-image {
    width: 100%;
    display: block;
    background: #eee;
}

.cnc-service-master-wrapper .cnc-service-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cnc-service-master-wrapper .cnc-service-tech-grid--two-up {
    grid-template-columns: repeat(2, 1fr);
}

.cnc-service-master-wrapper .cnc-service-tech-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.cnc-service-master-wrapper .cnc-service-tech-image {
    width: 100%;
    aspect-ratio: 1.22 / 1;
    object-fit: cover;
    margin: 0;
}

.cnc-service-master-wrapper .cnc-service-tech-card-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cnc-service-master-wrapper .cnc-service-tech-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    margin: 15px 0;
    line-height: 1.2;
    letter-spacing: .015em;
}

.cnc-service-master-wrapper .cnc-service-tech-desc {
    font-size: 17px;
    color: #7a7a7a;
    line-height: 1.6;
    margin: 17px 0 30px;
    flex-grow: 1;
}

.cnc-service-master-wrapper .cnc-service-btn-learn-more {
    font-family: 'Oxanium', cursive;
    background-color: #f4f4f4;
    border-left: 6px solid #f37021;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
}

.cnc-service-master-wrapper .cnc-service-btn-learn-more:hover {
    background-color: #ededed;
}

.cnc-service-master-wrapper .cnc-service-btn-learn-more span {
    margin-right: 12px;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .cnc-service-master-wrapper .cnc-service-hero-container,
    .cnc-service-master-wrapper .cnc-service-story-layout,
    .cnc-service-master-wrapper .cnc-service-tech-grid,
    .cnc-service-master-wrapper .cnc-service-tech-grid--two-up {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .cnc-service-master-wrapper .cnc-service-tech-heading {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .cnc-service-master-wrapper .cnc-service-hero-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .cnc-service-master-wrapper .cnc-service-hero-content {
        display: contents;
    }

    .cnc-service-master-wrapper .cnc-service-hero-content .cnc-service-hero-kicker {
        order: 1;
        margin-bottom: 5px;
    }

    .cnc-service-master-wrapper .cnc-service-hero-content h1 {
        order: 2;
        margin-bottom: 30px !important;
    }

    .cnc-service-master-wrapper .cnc-service-hero-gallery {
        order: 3;
        margin-bottom: 40px;
    }

    .cnc-service-master-wrapper .cnc-service-hero-subtitle {
        order: 4;
        margin-bottom: 20px;
    }

    .cnc-service-master-wrapper .cnc-service-hero-action {
        order: 5;
        margin-bottom: 40px;
        width: 100% !important;
        box-sizing: border-box;
    }

    .cnc-service-master-wrapper .cnc-service-btn-learn-more,
    .cnc-service-master-wrapper .cnc-service-hero-action .cnc-service-btn-learn-more {
        width: 100% !important;
        box-sizing: border-box;
        display: flex !important;
        justify-content: center;
    }

    .cnc-service-master-wrapper .cnc-service-portal-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .cnc-service-master-wrapper .cnc-service-portal-form {
        flex-direction: column;
        width: 100%;
    }

    .cnc-service-master-wrapper .cnc-service-portal-email {
        min-width: 0 !important;
        width: 100% !important;
        height: 55px;
        margin-bottom: 0;
        box-sizing: border-box !important;
    }

    .cnc-service-master-wrapper .cnc-service-btn-portal {
        width: 100% !important;
        justify-content: center;
        height: 55px;
        box-sizing: border-box !important;
        padding: 0 40px !important;
    }

    .cnc-service-master-wrapper .cnc-service-container {
        padding: 0 20px !important;
    }
}

@media (max-width: 600px) {
    .cnc-service-master-wrapper .cnc-service-hero-container {
        gap: 0 !important;
    }
}
