/* Prologic redesign - SolarWinds page (page 798, /solarwinds).
   Layout: hero image with the title and the logo beside it, three overlapping fact cards, then
   white cards in pairs (image + text) that switch sides, the product grid and the partnership card.
   Content is English, left-to-right (main[dir="ltr"]). Every rule is scoped under .ph-sw. */

.ph-sw {
    --sw-bg: #F4F4F4;
    --sw-heading: #3E4A49;
    --sw-text: #5F5F5F;
    --sw-card-pad: 40px;
    --sw-gap: 24px;
    background: var(--sw-bg);
    color: var(--sw-text);
    font-family: var(--font-body) !important;
    font-size: 16px;
    line-height: 1.7;
    padding-bottom: 96px;
}

.ph-sw .ph-container {
    max-width: calc(1180px + 2 * 24px);
    padding-inline: 24px;
}

.ph-sw p {
    margin: 0 0 16px;
}

.ph-sw p:last-child {
    margin-bottom: 0;
}

.ph-sw-accent {
    color: var(--color-orange);
}

/* ---------- Hero ---------- */
.ph-sw-hero {
    position: relative;
    display: flex;
    height: 480px;
    background: var(--color-white);
}

.ph-sw-hero__media {
    position: relative;
    flex: 0 0 66%;
    background-color: #1E2A33;
    background-position: center;
    background-size: cover;
}

.ph-sw-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 70%);
}

.ph-sw-hero__media .ph-container {
    position: relative;
    max-width: none;
    padding-inline: max(24px, calc((100vw - 1180px) / 2));
    padding-top: calc(var(--header-offset) + 58px);
}

.ph-sw-hero__title {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-body) !important;
    font-size: 56px;
    line-height: 1.1;
    font-weight: 500;
}

.ph-sw-hero__logo {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: var(--header-offset) 32px 120px;
}

.ph-sw-hero__logo img {
    width: min(277px, 100%);
    height: auto;
    clip-path: inset(4% 0 0 0); /* the logo file has a thin orange line along its top edge */
}

/* ---------- Cards ---------- */
.ph-sw-card {
    position: relative;
    background: var(--color-white);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* Who / What / Advantages: overlap the hero */
.ph-sw-facts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sw-gap);
    align-items: start;
    margin-top: -110px;
}

.ph-sw-fact {
    padding: 32px 32px 36px;
}

.ph-sw-fact:nth-child(2),
.ph-sw-fact:nth-child(3) {
    margin-top: 16px;
}

.ph-sw-fact__title {
    margin: 0 0 20px;
    color: var(--sw-heading);
    font-family: var(--font-body) !important;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
}

.ph-sw-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-sw-list li {
    position: relative;
    margin: 0 0 16px;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.75;
}

.ph-sw-list li:last-child {
    margin-bottom: 0;
}

/* orange chevron */
.ph-sw-list li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-top: 3px solid var(--color-orange);
    border-right: 3px solid var(--color-orange);
    transform: rotate(45deg);
}

/* ---------- Image + text pairs ---------- */
.ph-sw-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sw-gap);
    align-items: stretch;
    margin-top: 64px;
}

.ph-sw-pair .ph-sw-card {
    border-bottom: 4px solid var(--color-orange);
}

.ph-sw-pair--flip .ph-sw-pair__media {
    order: 2;
}

.ph-sw-pair__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 36px;
    overflow: hidden;
}

.ph-sw-pair__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
}

.ph-sw-pair__media--contain img {
    object-fit: contain;
}

.ph-sw-pair__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--sw-card-pad);
}

.ph-sw-h2 {
    margin: 0 0 24px;
    color: var(--sw-heading);
    font-family: var(--font-body) !important;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.ph-sw-h2 .ph-sw-accent {
    display: inline-block;
}

.ph-sw-h3 {
    margin: 8px 0 4px;
    color: var(--sw-heading);
    font-family: var(--font-body) !important;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.ph-sw-pair__text strong {
    color: var(--sw-heading);
    font-weight: 700;
}

.ph-sw-btn {
    margin-top: 12px;
    padding: 12px 24px;
    font-family: var(--font-body) !important;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* two buttons side by side (Read the article + Contact us) */
.ph-sw-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* outline button: white fill, orange border and text; fills orange on hover */
.ph-sw-btn--ghost {
    background: var(--color-white);
    color: var(--color-orange) !important;
}

.ph-sw-btn--ghost:hover,
.ph-sw-btn--ghost:focus-visible {
    background: var(--color-orange);
    color: var(--color-white) !important;
}

/* "SolarWinds" in the #BetterTogether text links to solarwinds.com */
.ph-sw-inline-link {
    color: var(--color-orange) !important;
    text-decoration: underline !important; /* the site's global link rule removes underlines */
    text-underline-offset: 3px;
}

.ph-sw-inline-link:hover {
    text-decoration-thickness: 2px;
}

/* ---------- Products ---------- */
.ph-sw-products {
    margin-top: 96px;
}

.ph-sw-products__title {
    text-align: center;
}

/* flex so a short last row (7 products) sits in the middle */
.ph-sw-products__grid {
    --sw-cols: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sw-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-sw-product {
    flex: 0 0 calc((100% - (var(--sw-cols) - 1) * var(--sw-gap)) / var(--sw-cols));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    border-bottom: 4px solid var(--color-orange);
    transition: box-shadow var(--dur-hover, 0.2s) ease, transform var(--dur-hover, 0.2s) ease;
}

.ph-sw-product:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.ph-sw-product__cat {
    margin: 0 0 8px !important;
    color: var(--color-orange-label);
    font-family: var(--font-label) !important;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* name2 from the CMS: a <p> with the product name and a <ul> of two points */
.ph-sw-product__body {
    flex: 1 1 auto;
}

.ph-sw-product__body > p:first-child {
    margin: 0 0 12px;
    color: var(--sw-heading);
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

.ph-sw-product__body ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-sw-product__body li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 24px;
    font-size: 15px;
    line-height: 1.65;
    text-align: left !important;
}

.ph-sw-product__body li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--color-orange);
    border-right: 2px solid var(--color-orange);
    transform: rotate(45deg);
}

.ph-sw-product__link {
    display: inline-flex;
    align-self: flex-start;
    gap: 8px;
    margin-top: 16px;
    color: var(--color-orange) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none !important;
}

.ph-sw-product__link:hover span:last-child {
    transform: translateX(3px);
}

.ph-sw-product__link span:last-child {
    transition: transform 0.2s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ph-sw-products__grid {
        --sw-cols: 2;
    }
}

@media (max-width: 991px) {
    .ph-sw-hero {
        flex-direction: column;
        height: auto;
    }

    .ph-sw-hero__media {
        flex: none;
        height: 340px;
    }

    .ph-sw-hero__media .ph-container {
        padding-top: calc(var(--header-offset) + 40px);
    }

    .ph-sw-hero__title {
        font-size: 44px;
    }

    .ph-sw-hero__logo {
        padding: 28px 24px 32px;
    }

    .ph-sw-hero__logo img {
        width: 200px;
    }

    .ph-sw-facts {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 24px;
    }

    .ph-sw-fact:nth-child(2),
    .ph-sw-fact:nth-child(3) {
        margin-top: 0;
    }

    .ph-sw-pair {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    /* image first on every pair */
    .ph-sw-pair--flip .ph-sw-pair__media {
        order: 0;
    }

    .ph-sw-pair__media {
        min-height: 0;
        padding: 24px;
    }

    .ph-sw-pair__media img {
        max-height: 320px;
    }
}

@media (max-width: 767px) {
    .ph-sw {
        --sw-card-pad: 24px;
        padding-bottom: 64px;
    }

    .ph-sw-hero__media {
        height: 280px;
    }

    .ph-sw-hero__title {
        font-size: 38px;
    }

    .ph-sw-h2 {
        font-size: 24px;
    }

    .ph-sw-products {
        margin-top: 64px;
    }

    .ph-sw-products__grid {
        --sw-cols: 1;
    }
}
