/* =========================================================
   SOLUTION – PRESSURE TESTING
   Loaded AFTER page-well-schematics.css, page-resources.css and
   page-equipment-health-monitoring.css. Only the parts that are new
   on this page are styled here.
   ========================================================= */

.pt-challenge,
.pt-capability,
.pt-lifecycle,
.pt-why {
    --pt-border: #E0E0E0;
    --pt-accent: #F36E3A;
    --pt-ink: #222431;
    --pt-chip: #EFEEF0;
}

/* =========================================================
   HERO – keep the two columns at 50% each
   ========================================================= */
.pt-banner-section .ws-banner-content .col-one {
    flex: 1 1 50%;
    min-width: 0;
}

.pt-banner-section .ws-banner-content .col-one:last-child {
    display: flex;
    justify-content: flex-end;
}

.pt-banner-section .ws-banner-text { max-width: 520px; }

@media (max-width: 901px) {
    .pt-banner-section .ws-banner-content .col-one { flex: none; width: 100%; }
    .pt-banner-section .ws-banner-content .col-one:last-child { display: block; }
}

/* =========================================================
   THE CHALLENGE – Well Schematics boxes, 4 per row
   ========================================================= */
.pt-challenge .ws-section-one-header .home-tabs-title {
    width: 100%;
    margin: 12px 0 0;
    font-weight: 600;
}

.pt-challenge-grid {
    grid-template-columns: repeat(4, 1fr);
    background-image: repeating-linear-gradient(
        -45deg,
        transparent 0,
        transparent 6px,
        #E3E1E3 6px,
        #E3E1E3 7px
    );
    background-size: auto;
    border-top: 1px solid var(--pt-border);
}

.pt-challenge .ws-box { padding: 32px 32px 30px; }

.pt-challenge .ws-box-tag { text-transform: uppercase; }

.pt-challenge .ws-box-text { margin-top: 12px; }

/* =========================================================
   OUR APPROACH – content vertically centered next to the photo
   ========================================================= */
.pt-approach .ehm-approach-content { align-self: center; }

/* =========================================================
   ADVANCED CAPABILITY – contained diagram on the left
   ========================================================= */
.pt-capability { border-top: 1px solid #D9D9D9; }

.pt-capability .ws-feature { grid-template-columns: 582fr 768fr; }

.pt-capability .ws-feature.no-image { grid-template-columns: 1fr; }

.pt-capability-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    box-sizing: border-box;
}

.pt-capability .pt-capability-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 730px;
    object-fit: contain;
}

.pt-capability .ehm-approach-content { padding: 80px 45px 80px 45px; }

.pt-capability .ehm-includes-badge { margin-top: 24px; }

.pt-includes-3col { grid-template-columns: repeat(3, 1fr); }

/* =========================================================
   LIFECYCLE PHASES – tabs with an image under the name
   ========================================================= */
.pt-phases-nav { align-items: stretch; }

.pt-phase-tab {
    padding: 0;
    gap: 0;
    background: #F7F5F5;
    border-right: 1px solid var(--pt-border);
}

.pt-phase-tab:last-child { border-right: none; }

.pt-phase-tab-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-bottom: 1px solid var(--pt-border);
    transition: background-color .25s ease, color .25s ease;
}

.pt-phase-tab .ehm-stage-number { text-transform: uppercase; letter-spacing: .02em; }

.pt-phase-tab-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 340px;
    padding: 18px 12px;
    box-sizing: border-box;
    transition: background-color .25s ease;
}

.pt-phase-tab-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
      mix-blend-mode: multiply;
}

/* Only the head turns orange; the image area turns white */
.pt-phase-tab.is-active,
.pt-phase-tab.is-active:hover {
    background: #fff;
    color: var(--pt-ink);
}

.pt-phase-tab.is-active .pt-phase-tab-head {
    background: var(--pt-accent);
    color: #fff;
    border-bottom-color: var(--pt-accent);
}

.pt-phase-tab:not(.is-active):hover .pt-phase-tab-head { color: var(--pt-accent); }

.pt-lifecycle .ehm-stage-title { margin-bottom: 24px; }

.pt-phase-lead { margin: 0 0 24px; }

.pt-lifecycle .ehm-includes-badge { margin-top: 0; }

/* Supported tests */
.pt-tests {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.pt-test {
    padding: 9px 10px;
    background: var(--pt-chip);
    border-radius: 2px;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    color: var(--pt-ink);
}

/* =========================================================
   WHY IPT GLOBAL – Well Schematics dark items, 3 per row
   ========================================================= */
.pt-why {
    background-size: cover;
    background-position: left center;
}

.pt-why .grid { padding: 50px 45px 60px; }

.pt-why .ws-section-six-header {
    flex: 0 0 300px;
    width: 300px;
}

.pt-why .ws-section-six-header .home-tabs-title {
    width: 100%;
    margin-top: 12px;
    font-weight: 500;
}

.pt-why .ws-section-six-items {
    flex: 1;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 50px 40px;
    padding-left: 35px;
    padding-top: 22px;
}

.pt-why .ws-section-six-item-title span { width: auto; }

.pt-why .ws-section-six-item-text { color: #F7F5F5; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .pt-why .ws-section-six-items { grid-template-columns: repeat(2, 1fr); }
    .pt-tests { grid-template-columns: repeat(2, 1fr); }
    .pt-includes-3col { grid-template-columns: repeat(2, 1fr); }
    .pt-phase-tab { flex: 0 0 200px; }
    .pt-phase-tab-image { height: 260px; }
}

@media (max-width: 900px) {
    .pt-challenge-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }

    .pt-capability .ws-feature { grid-template-columns: 1fr; }
    .pt-capability-image { border-bottom: 1px solid #E0E0E0; }
    .pt-capability .pt-capability-image img { max-height: 420px; }
    .pt-capability .ehm-approach-content { padding: 40px 16px 50px; }

    .pt-phase-tab { flex: 0 0 170px; }
    .pt-phase-tab-image { height: 200px; }

    .pt-why .grid {
        flex-direction: column;
        padding: 50px 16px;
    }
    .pt-why .ws-section-six-header {
        flex: none;
        width: 100%;
        padding: 0;
    }
    .pt-why .ws-section-six-items {
        padding: 32px 0 0;
        gap: 32px;
    }
}
.ws-page-nav-list a {
    padding: 0 25px!important;
}
@media (max-width: 560px) {
    .pt-challenge-grid,
    .pt-tests,
    .pt-includes-3col,
    .pt-why .ws-section-six-items { grid-template-columns: 1fr; }
}

.pt-why {
    background-image: var(--why-bg);
}

@media (max-width: 767px) {
    .pt-why {
        /* uses the mobile image; if there isn't one, falls back to the desktop image */
        background-image: var(--why-bg-mobile, var(--why-bg));
            background-position: top
    }
    .ws-section-six {
    background-position: top
}
}
/* Pressure Testing – Our Approach image */
@media (min-width: 902px) {
    .pt-approach .ehm-approach-image {
        height: 550px;
        overflow: hidden;
    }

    .pt-approach .ehm-approach-image img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center 35%;
    }
}
/* Pressure Testing – Hide The Challenge */
#pt-challenge {
    display: none !important;
}
/* Pressure Testing – Fix navigation scroll offset */
section[id^="pt-"] {
    scroll-margin-top: calc(
        var(--ws-header-h, 80px) +
        var(--ws-nav-h, 48px) +
        16px
    );
}
/* Pressure Testing – Fix section anchor positioning */
@media (min-width: 902px) {
    section[id^="pt-"] {
        scroll-margin-top: 130px;
    }
}

/* Pressure Testing – Mobile Hero background positioning */
@media (max-width: 767px) {
    .ws-banner-section {
        background-position: center 445px !important;
        background-repeat: no-repeat !important;
        background-color: #222431 !important;
    }
}

/* Pressure Testing – Mobile Hero */
@media (max-width: 767px) {
    .ws-banner-section {
        background-image:
            linear-gradient(
                to right,
                rgba(255, 255, 255, 0.045) 1px,
                transparent 1px
            ),
            linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0.045) 1px,
                transparent 1px
            ),
            url("/wp-content/uploads/2026/10/hero-section-EHM-scaled.png") !important;

        background-size:
            48px 48px,
            48px 48px,
            cover !important;

        background-position:
            0 0,
            0 0,
            center 230px !important;

        background-repeat:
            repeat,
            repeat,
            no-repeat !important;

        background-color: #222431 !important;
    }
}


/* Pressure Testing – Mobile Hero video padding */
@media (max-width: 767px) {
    .ws-banner-section .ws-banner-image.has-video {
        padding: 8px 5px 0 !important;
    }
}

/* Pressure Testing – Mobile tab arrows */
.pt-mobile-arrows {
    display: none;
}

@media (max-width: 767px) {
    #pt-modules .pt-mobile-arrows {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px 0;
    }

    #pt-modules .pt-mobile-arrows button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid #dedede;
        border-radius: 50%;
        background: transparent;
        color: #f45132;
        cursor: pointer;
        font-size: 28px;
        line-height: 1;
    }

    #pt-modules .pt-mobile-arrows button:focus-visible {
        outline: 2px solid #f45132;
        outline-offset: 3px;
    }
}
