/* Homepage portfolio expansion: isolated from the legacy Visual Composer layout. */
.synergetx-main-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#header-outer.fp-section-2 #logo img {
    filter: brightness(0) saturate(100%);
    opacity: 0.72;
}

body #header-outer.transparent.fp-section-2,
body #header-outer.fp-section-2 {
    background-color: rgba(245, 247, 251, 0.94) !important;
    box-shadow: 0 1px 0 rgba(23, 32, 51, 0.08);
    backdrop-filter: blur(12px);
}

body #header-outer.transparent.dark-slide.fp-section-2 #top nav > ul.synergetx-main-menu > li > a,
body #header-outer.transparent.dark-slide.fp-section-2 #top nav > ul.synergetx-main-menu > li > a:hover,
body #header-outer.transparent.dark-slide.fp-section-2 #top nav > ul.synergetx-main-menu > li > a:focus,
body #header-outer.transparent.dark-slide.fp-section-2 #top nav > ul.synergetx-main-menu > li.current-menu-item > a {
    color: #4f35a5 !important;
    opacity: 1;
}

.portfolio-row .row-bg {
    background: #f5f7fb;
}

.portfolio-section {
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 7.5rem 1.5rem 4rem;
    background: #f5f7fb;
    color: #202633;
}

.portfolio-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.portfolio-heading {
    max-width: 760px;
    margin-bottom: 3rem;
}

.portfolio-eyebrow,
.portfolio-label {
    margin: 0 0 0.5rem;
    color: #4f35a5;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portfolio-heading h1,
.portfolio-archive h2,
.portfolio-featured h2,
.portfolio-archive h3 {
    color: #172033;
}

.portfolio-heading h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.02;
    font-weight: 700;
}

.portfolio-heading p:not(.portfolio-eyebrow) {
    max-width: 690px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.65;
}

.portfolio-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: -1rem 0 2.5rem;
    padding: 0;
    list-style: none;
}

.portfolio-capabilities li {
    padding: 0.55rem 0.8rem;
    border: 1px solid #d6dce8;
    border-radius: 999px;
    background: #fff;
    color: #3f4a60;
    font-size: 0.82rem;
    font-weight: 700;
    list-style: none !important;
}

.portfolio-capabilities li::marker,
.portfolio-capabilities li::before,
.portfolio-capabilities li::after {
    display: none !important;
    content: none !important;
}

.portfolio-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.portfolio-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 305px;
    overflow: hidden;
    border: 1px solid #dbe0ea;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 14px 34px rgba(25, 39, 68, 0.08);
}

.portfolio-featured-image {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
}

.portfolio-featured img {
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: cover;
}

.portfolio-featured-image > img {
    display: block;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid #e3e7ef;
}

.portfolio-card-copy {
    align-self: center;
    padding: clamp(1.5rem, 4vw, 2.8rem);
}

.portfolio-card-copy h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.12;
    font-weight: 700;
}

.portfolio-card-copy p:not(.portfolio-label) {
    margin: 0;
    line-height: 1.55;
}

.portfolio-card-copy .portfolio-metric,
.portfolio-card-copy .portfolio-note {
    margin-top: 1rem;
    color: #4d586e;
    font-size: 0.88rem;
}

.portfolio-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: #4f35a5;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.portfolio-link:hover,
.portfolio-link:focus {
    color: #2e1d6e;
    text-decoration: underline;
}

.portfolio-link-light,
.portfolio-link-light:hover,
.portfolio-link-light:focus {
    color: #d8e3ff;
}

.portfolio-featured-mangamo {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    background: linear-gradient(125deg, #182032, #2d4266);
}

.portfolio-featured-mangamo h2,
.portfolio-featured-mangamo p:not(.portfolio-label) {
    color: #fff;
}

.portfolio-featured-mangamo .portfolio-label {
    color: #b9ccff;
}

.portfolio-featured-mangamo .portfolio-metric {
    color: #e1e9fb;
}

.portfolio-featured-mangamo img {
    align-self: end;
    height: 420px;
    min-height: 0;
    max-height: 420px;
    object-fit: contain;
    object-position: center bottom;
}

.portfolio-featured-ports { background: linear-gradient(135deg, #e5f2f5, #b9d8e0); }
.portfolio-featured-campus { background: linear-gradient(135deg, #f7eee0, #e7c995); }
.portfolio-featured-fieldvest { background: linear-gradient(135deg, #e7f2ec, #bddcc8); }
.portfolio-featured-boutpro { background: linear-gradient(135deg, #f2eafa, #d7c2ef); }
.portfolio-featured-fulfill { background: linear-gradient(135deg, #f4e8e5, #e5c3ba); }

.portfolio-archive {
    margin-top: 4rem;
}

.portfolio-archive > div:first-child {
    max-width: 660px;
    margin-bottom: 1.5rem;
}

.portfolio-archive h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
}

.portfolio-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.portfolio-archive-grid article {
    min-height: 150px;
    padding: 1.35rem;
    border: 1px solid #dbe0ea;
    border-radius: 0.8rem;
    background: #fff;
}

.portfolio-archive-grid h3 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
    line-height: 1.25;
}

.portfolio-archive-grid p {
    margin: 0;
    color: #59657a;
    font-size: 0.91rem;
    line-height: 1.5;
}

.portfolio-archive-grid .portfolio-archive-image {
    padding: 0 0 1.35rem;
    overflow: hidden;
}

.portfolio-archive-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.1rem;
    object-fit: cover;
}

.portfolio-archive-image h3,
.portfolio-archive-image p {
    margin-right: 1.35rem;
    margin-left: 1.35rem;
}

.portfolio-cta {
    max-width: 760px;
    margin: 4rem 0 1rem;
    padding: 2rem;
    border-radius: 1rem;
    background: #172033;
    color: #fff;
}

.portfolio-cta h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
}

.portfolio-cta a {
    color: #d8e3ff;
    font-weight: 700;
}

.portfolio-cta .portfolio-eyebrow {
    color: #b9a5ff;
}

.portfolio-cta a:hover,
.portfolio-cta a:focus {
    color: #fff;
}

@media (max-width: 999px) {
    .portfolio-section {
        min-height: 100%;
        padding-top: 6rem;
    }
}

@media (max-width: 760px) {
    .synergetx-main-menu { display: none; }
    .portfolio-section { padding: 5.5rem 1rem 3rem; }
    .portfolio-featured-grid,
    .portfolio-archive-grid { grid-template-columns: 1fr; }
    .portfolio-featured-mangamo,
    .portfolio-featured-image { grid-template-columns: 1fr; }
    .portfolio-featured-mangamo { grid-column: auto; }
    .portfolio-featured-mangamo img {
        height: 300px;
        min-height: 0;
        max-height: 300px;
    }
}
