/* Cptify — Skin: Portfolio Studio */

/* ── Root & Common ── */
.itsmfp-pfs {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-family: inherit;
    background: #fff;
    overflow-x: hidden;
}

.itsmfp-pfs__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.itsmfp-pfs__heading {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 32px 0;
    line-height: 1.25;
}

/* ── HERO Section ── */
.itsmfp-pfs__hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.itsmfp-pfs__hero--no-img {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.itsmfp-pfs__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.35) 100%);
    z-index: 1;
}

.itsmfp-pfs__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    max-width: 800px;
}

.itsmfp-pfs__hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.itsmfp-pfs__hero-badge + .itsmfp-pfs__hero-badge {
    margin-left: 8px;
}

.itsmfp-pfs__hero-badge--featured {
    background: #F59E0B;
    border-color: rgba(255, 255, 255, 0.4);
}

.itsmfp-pfs__hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.itsmfp-pfs__hero-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.itsmfp-pfs__hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.itsmfp-pfs__hero-meta-item::before {
    font-size: 14px;
}

.itsmfp-pfs__hero-meta-item--location::before {
    content: "📍";
}

.itsmfp-pfs__hero-meta-item--year::before {
    content: "📅";
}

.itsmfp-pfs__hero-meta-item--client::before {
    content: "👤";
}

/* ── BODY Wrap ── */
.itsmfp-pfs__body {
    width: 100%;
}

.itsmfp-pfs__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    margin-bottom: 28px;
    transition: color .15s ease;
}
.itsmfp-pfs__back:hover {
    color: #3B82F6;
}

/* ── GALLERY Section ── */
.itsmfp-pfs__gallery {
    background: linear-gradient(135deg, #FEF9E7 0%, #E8F5E9 40%, #E3F2FD 100%);
    padding: 64px 0;
}

.itsmfp-pfs__gallery-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.itsmfp-pfs__gallery-stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 10;
    background: #000;
}

.itsmfp-pfs__gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.itsmfp-pfs__gallery-img.is-active {
    opacity: 1;
    z-index: 2;
}


.itsmfp-pfs__gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

.itsmfp-pfs__gallery-arrow:hover {
    background: #f8fafc;
    transform: translateY(-50%) scale(1.05);
}

.itsmfp-pfs__gallery-arrow--prev {
    left: 16px;
}

.itsmfp-pfs__gallery-arrow--next {
    right: 16px;
}

.itsmfp-pfs__gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.itsmfp-pfs__gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.itsmfp-pfs__gallery-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

.itsmfp-pfs__gallery-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.itsmfp-pfs__gallery-thumb {
    width: 96px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.itsmfp-pfs__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itsmfp-pfs__gallery-thumb:hover {
    opacity: 0.85;
}

.itsmfp-pfs__gallery-thumb.is-active {
    opacity: 1;
    border-color: #3B82F6;
    transform: scale(1.03);
}

/* ── OVERVIEW Section ── */
.itsmfp-pfs__overview {
    background: #FAFAFA;
    padding: 64px 0;
}

.itsmfp-pfs__overview-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

.itsmfp-pfs__overview-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.itsmfp-pfs__overview-content {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}

.itsmfp-pfs__overview-content p {
    margin: 0 0 16px 0;
}

.itsmfp-pfs__overview-content p:last-child {
    margin-bottom: 0;
}

/* Prose typography inside Project Overview (the_content) — modeled on classic __content, Studio tokens */
.itsmfp-pfs__overview-content h1,
.itsmfp-pfs__overview-content h2,
.itsmfp-pfs__overview-content h3,
.itsmfp-pfs__overview-content h4,
.itsmfp-pfs__overview-content h5,
.itsmfp-pfs__overview-content h6 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 1.6em 0 0.6em;
}

.itsmfp-pfs__overview-content h1 { font-size: 1.65rem; }
.itsmfp-pfs__overview-content h2 { font-size: 1.5rem; }
.itsmfp-pfs__overview-content h3 { font-size: 1.25rem; }
.itsmfp-pfs__overview-content h4 { font-size: 1.1rem; }
.itsmfp-pfs__overview-content h5,
.itsmfp-pfs__overview-content h6 { font-size: 1rem; }

.itsmfp-pfs__overview-content > :is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

.itsmfp-pfs__overview-content a {
    color: #3B82F6;
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.itsmfp-pfs__overview-content a:hover {
    color: #2563EB;
    text-decoration-color: #3B82F6;
}

.itsmfp-pfs__overview-content strong,
.itsmfp-pfs__overview-content b {
    color: #0f172a;
    font-weight: 700;
}

.itsmfp-pfs__overview-content em,
.itsmfp-pfs__overview-content i {
    font-style: italic;
}

.itsmfp-pfs__overview-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border: none;
    border-left: 4px solid #3B82F6;
    border-radius: 0 8px 8px 0;
    background: rgba(59, 130, 246, 0.04);
    color: #475569;
    font-style: italic;
    line-height: 1.85;
}

.itsmfp-pfs__overview-content blockquote p:last-child {
    margin-bottom: 0;
}

.itsmfp-pfs__overview-content ul,
.itsmfp-pfs__overview-content ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
}

.itsmfp-pfs__overview-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.itsmfp-pfs__overview-content li::marker {
    color: #3B82F6;
}

.itsmfp-pfs__overview-content li > ul,
.itsmfp-pfs__overview-content li > ol {
    margin: 6px 0 0;
}

.itsmfp-pfs__overview-content li > ul li,
.itsmfp-pfs__overview-content li > ol li {
    margin-bottom: 4px;
}

.itsmfp-pfs__overview-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 14px; /* match zigzag / gallery / details card */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); /* soft — same as details card */
    margin: 24px 0;
}

.itsmfp-pfs__overview-content figure {
    margin: 24px 0;
}

.itsmfp-pfs__overview-content figure img {
    margin: 0;
}

.itsmfp-pfs__overview-content figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #94A3B8;
    text-align: center;
    line-height: 1.45;
}

.itsmfp-pfs__overview-content code {
    font-family: ui-monospace, 'SF Mono', Consolas, monospace;
    font-size: 0.9em;
    color: #1e293b;
    background: #F1F5F9;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 2px 6px;
}

.itsmfp-pfs__overview-content pre {
    margin: 24px 0;
    padding: 16px;
    border-radius: 14px;
    background: #F1F5F9; /* light — matches page aesthetic */
    border: 1px solid #E5E7EB;
    overflow-x: auto;
    line-height: 1.6;
}

.itsmfp-pfs__overview-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.88em;
    color: #0f172a;
}

.itsmfp-pfs__overview-content .wp-block-table {
    margin: 0 0 16px;
    overflow-x: auto;
}

.itsmfp-pfs__overview-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}

.itsmfp-pfs__overview-content table:not(.wp-block-table table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.itsmfp-pfs__overview-content th {
    background: #F8FAFC;
    font-weight: 700;
    color: #0f172a;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.itsmfp-pfs__overview-content td {
    padding: 10px 14px;
    border-bottom: 1px solid #E5E7EB;
    color: #475569;
}

.itsmfp-pfs__details-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 20px; /* mid: original 24 / tight 18 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.itsmfp-pfs__details-title {
    font-size: 13px; /* mid of 14 / 13 — keep slightly smaller than original */
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0; /* mid: original 20 / tight 12 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 7px; /* mid: original 8 / tight 6 */
}

.itsmfp-pfs__details-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 3px;
    background: #3B82F6;
    border-radius: 99px;
}

.itsmfp-pfs__details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itsmfp-pfs__details-item {
    display: flex;
    flex-direction: column;
    gap: 3px; /* mid: original 4 / tight 2 */
    padding: 10px 0; /* mid: original 12 / tight 8 */
    border-bottom: 1px solid rgba(15, 23, 42, 0.06); /* keep lighter divider */
}

.itsmfp-pfs__details-item:first-child {
    padding-top: 0;
}

.itsmfp-pfs__details-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.itsmfp-pfs__details-label {
    font-size: 11px; /* restore original — mid of 11 / 10 rounds up for legibility */
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.itsmfp-pfs__details-value {
    font-size: 14px; /* mid of 15 / 14 */
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

/* Chip rows (Technologies / Software Used / Output Formats) */
.itsmfp-pfs__tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px; /* mid: original 8 / tight 5 */
    margin-top: 3px; /* more label→chips separation than both prior passes */
}

.itsmfp-pfs__tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px; /* mid: original 4×10 / tight 2×8 */
    border-radius: 999px;
    font-size: 11px; /* mid of 12 / 11 */
    font-weight: 600;
    color: #1e40af;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    line-height: 1.4;
}


/* ── TRANSFORMATION Section ── */
.itsmfp-pfs__transform-section {
    background: linear-gradient(135deg, #BFDBFE 0%, #DBEAFE 50%, #E0F2FE 100%);
    padding: 64px 0;
}

.itsmfp-pfs__transform {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16 / 10;
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
}

.itsmfp-pfs__ba-after {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.itsmfp-pfs__ba-before {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    z-index: 2;
}

.itsmfp-pfs__ba-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--pfs-ba-w, 840px);
    height: 100%;
}

.itsmfp-pfs__transform-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itsmfp-pfs__transform-label--before,
.itsmfp-pfs__transform-label--after {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.itsmfp-pfs__transform-label--before {
    right: 16px;
    background: #0f172a;
}

.itsmfp-pfs__transform-label--after {
    left: 16px;
    background: #3B82F6;
}

.itsmfp-pfs__ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 4;
}

.itsmfp-pfs__ba-handle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #3B82F6;
    border: 1px solid #E5E7EB;
}

/* ── EDITORIAL SECTION — Challenge / Deliverables zigzag ── */
.itsmfp-pfs__editorial {
    background: linear-gradient(180deg, #FAF6EF 0%, #F3ECDF 100%);
    padding: 80px 0;
}

.itsmfp-pfs__zigzag {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 56px;
    align-items: center;
}

.itsmfp-pfs__zigzag + .itsmfp-pfs__zigzag {
    margin-top: 72px;
    padding-top: 72px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Deliverables: text left, image right */
.itsmfp-pfs__zigzag--deliverables {
    grid-template-columns: 3fr 2fr;
}

.itsmfp-pfs__zigzag--no-img,
.itsmfp-pfs__zigzag--no-text {
    grid-template-columns: 1fr;
}

.itsmfp-pfs__zigzag-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 5; /* locked crop box — matches gallery/related wrapper pattern */
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.25s ease;
}

.itsmfp-pfs__zigzag-img-wrap:hover {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.itsmfp-pfs__zigzag-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.itsmfp-pfs__zigzag-img-wrap:hover .itsmfp-pfs__zigzag-img {
    transform: scale(1.03);
}

.itsmfp-pfs__zigzag-img-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.itsmfp-pfs__cd-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px 0;
    position: relative;
    padding-bottom: 8px;
}

.itsmfp-pfs__cd-eyebrow::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 20px;
    height: 2px;
    background: #3B82F6;
    border-radius: 99px;
}

.itsmfp-pfs__cd-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.itsmfp-pfs__cd-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.itsmfp-pfs__cd-item,
.itsmfp-pfs__feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    margin: 0 -12px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    border-left: 3px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.75;
    color: #475569;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.itsmfp-pfs__cd-item:first-child {
    padding-top: 14px;
}

.itsmfp-pfs__cd-item:last-child {
    border-bottom: none;
}

.itsmfp-pfs__cd-item:hover,
.itsmfp-pfs__feature:hover {
    background: rgba(59, 130, 246, 0.06);
    border-left-color: #3B82F6;
}

.itsmfp-pfs__cd-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #3B82F6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
    letter-spacing: 0;
}

/* ── KEY FEATURES Section ── */
.itsmfp-pfs__features {
    background: linear-gradient(135deg, #FEF3E2 0%, #FDE8D8 100%);
    padding: 64px 0 80px;
}

.itsmfp-pfs__features .itsmfp-pfs__cd-eyebrow {
    color: #B45309;
}

.itsmfp-pfs__features .itsmfp-pfs__cd-eyebrow::after {
    background: #B45309;
}

.itsmfp-pfs__features-head {
    max-width: 760px;
    margin: 0 auto 8px;
}

.itsmfp-pfs__features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 0;
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.itsmfp-pfs__feature-text {
    min-width: 0;
}

/* ── RELATED Section ── */
.itsmfp-pfs__related {
    background: #FAFAFA;
    padding: 64px 0 80px;
}

.itsmfp-pfs__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.itsmfp-pfs__related-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.itsmfp-pfs__related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.itsmfp-pfs__related-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.itsmfp-pfs__related-card-img-wrap {
    width: 100%;
    height: 100%;
}

.itsmfp-pfs__related-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.itsmfp-pfs__related-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.itsmfp-pfs__related-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    z-index: 2;
    text-align: left;
}

.itsmfp-pfs__related-card-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    border: 1px solid rgba(255,255,255,0.15);
}

.itsmfp-pfs__related-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── RESPONSIVE Media Queries ── */
@media (max-width: 900px) {
    .itsmfp-pfs__overview-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .itsmfp-pfs__related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .itsmfp-pfs__zigzag,
    .itsmfp-pfs__zigzag--deliverables {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Image always above text on narrow screens (content-priority). */
    .itsmfp-pfs__zigzag--deliverables .itsmfp-pfs__zigzag-media {
        order: -1;
    }

    .itsmfp-pfs__zigzag + .itsmfp-pfs__zigzag {
        margin-top: 48px;
        padding-top: 48px;
    }

    .itsmfp-pfs__zigzag-img-wrap {
        aspect-ratio: 16 / 9; /* both blocks stay matched on narrow screens */
        max-height: 360px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    }
}

@media (max-width: 768px) {
    .itsmfp-pfs__hero {
        min-height: 360px;
    }
    
    .itsmfp-pfs__features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .itsmfp-pfs__transform-slider {
        flex-direction: column;
        aspect-ratio: auto;
    }
    
    .itsmfp-pfs__transform-item {
        width: 100%;
        height: 240px;
    }
    
    .itsmfp-pfs__transform-handle {
        display: none;
    }
    
    .itsmfp-pfs__gallery-stage {
        aspect-ratio: 4 / 3;
    }
    
    .itsmfp-pfs__gallery-thumb {
        width: 80px;
        height: 54px;
    }
}

@media (max-width: 560px) {
    .itsmfp-pfs__features-grid {
        grid-template-columns: 1fr;
    }

    .itsmfp-pfs__related-grid {
        grid-template-columns: 1fr;
    }

    .itsmfp-pfs__hero-meta {
        gap: 16px;
    }
}
