.before-after-page-body {
    background: #f6f9fb;
    color: #243746;
}

.before-after-page-body .navbar-brand {
    width: 250px;
}

.before-after-page-body .nav-link.active {
    color: #C62828;
}

.ba-hero {
    background: #0B2D4D;
    color: #fff;
    padding: 58px 0;
}

.ba-hero-grid {
    align-items: center;
    display: grid;
    gap: clamp(32px, 7vw, 96px);
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
}

.ba-eyebrow {
    color: #C62828;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.ba-eyebrow i {
    margin-right: 7px;
}

.ba-hero .ba-eyebrow {
    color: #efb2b2;
}

.ba-hero h1 {
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0;
    max-width: 720px;
}

.ba-hero-copy {
    max-width: 700px;
}

.ba-hero-grid > div:first-child > p:last-child {
    color: #d6e1e8;
    font-size: 17px;
    line-height: 1.75;
    margin: 22px 0 0;
    max-width: 650px;
}

.ba-hero-note {
    align-items: flex-start;
    background: rgba(255, 255, 255, .08);
    border-left: 4px solid #C62828;
    display: flex;
    gap: 14px;
    padding: 22px;
}

.ba-hero-note > i {
    color: #efb2b2;
    font-size: 20px;
    margin-top: 3px;
}

.ba-hero-note strong,
.ba-hero-note span {
    display: block;
}

.ba-hero-note strong {
    color: #fff;
    font-size: 15px;
    margin-bottom: 7px;
}

.ba-hero-note span {
    color: #d6e1e8;
    font-size: 13px;
    line-height: 1.65;
}

.ba-gallery-section {
    padding: 68px 0 78px;
}

.ba-section-heading {
    align-items: end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.ba-section-heading h2,
.ba-cta-grid h2 {
    color: #0B2D4D;
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.ba-section-heading > p {
    color: #667986;
    font-size: 14px;
    margin: 0;
}

.ba-case-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ba-case-card {
    background: #fff;
    border: 1px solid #dce5eb;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ba-case-card:hover {
    border-color: #b6c8d5;
    box-shadow: 0 12px 28px rgba(11, 45, 77, .11);
    transform: translateY(-3px);
}

.ba-case-figure {
    aspect-ratio: 16 / 11;
    background: #0b6b9c;
    margin: 0;
    overflow: hidden;
}

.ba-case-figure a,
.ba-case-figure img {
    display: block;
    height: 100%;
    width: 100%;
}

.ba-case-open {
    background: #0b6b9c;
    border: 0;
    cursor: zoom-in;
    display: block;
    height: 100%;
    padding: 0;
    position: relative;
    width: 100%;
}

.ba-case-figure img {
    object-fit: contain;
    transition: transform .25s ease;
}

.ba-case-card:hover .ba-case-figure img {
    transform: scale(1.015);
}

.ba-case-open-icon {
    align-items: center;
    background: #C62828;
    bottom: 14px;
    color: #fff;
    display: flex;
    height: 34px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: 14px;
    transition: opacity .2s ease;
    width: 34px;
}

.ba-case-card:hover .ba-case-open-icon,
.ba-case-open:focus-visible .ba-case-open-icon {
    opacity: 1;
}

.ba-viewer .modal-content {
    background: #f6f9fb;
    border: 0;
    border-radius: 0;
}

.ba-viewer .modal-header {
    align-items: flex-start;
    border-bottom: 1px solid #dce5eb;
    padding: 22px 26px 18px;
}

.ba-viewer-label {
    color: #C62828;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.ba-viewer .modal-title {
    color: #0B2D4D;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.ba-viewer-description {
    color: #667986;
    font-size: 13px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.ba-viewer .modal-body {
    padding: 0;
}

.ba-viewer .carousel-item {
    aspect-ratio: 16 / 10;
    background: #0b6b9c;
}

.ba-viewer .carousel-item img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ba-viewer .carousel-control-prev,
.ba-viewer .carousel-control-next {
    background: #0B2D4D;
    height: 46px;
    opacity: .95;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
}

.ba-viewer .carousel-control-prev {
    left: 14px;
}

.ba-viewer .carousel-control-next {
    right: 14px;
}

.ba-case-copy {
    padding: 20px 22px 24px;
}

.ba-case-label {
    color: #C62828;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.ba-case-label span {
    color: #778896;
    font-weight: 700;
    margin-left: 10px;
}

.ba-case-copy h3 {
    color: #0B2D4D;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 8px;
}

.ba-case-copy > p:last-child {
    color: #667986;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.ba-cta-section {
    background: #eef3f6;
    border-top: 1px solid #dce5eb;
    padding: 44px 0;
}

.ba-cta-grid {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.ba-cta-grid .ba-eyebrow {
    margin-bottom: 9px;
}

.ba-cta-grid h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.ba-cta-grid > div > p:last-child {
    color: #667986;
    font-size: 14px;
    line-height: 1.65;
    margin: 10px 0 0;
    max-width: 680px;
}

.ba-primary-action {
    align-items: center;
    background: #C62828;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    gap: 9px;
    padding: 13px 18px;
    text-decoration: none;
}

.ba-primary-action:hover,
.ba-primary-action:focus-visible {
    background: #0B2D4D;
    color: #fff;
}

.before-after-page-body .footer-social-icons {
    gap: 8px;
}

.before-after-page-body .footer-social-icons a {
    align-items: center;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #0B2D4D;
    display: flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    width: 40px;
}

.before-after-page-body .footer-social-icons a:hover,
.before-after-page-body .footer-social-icons a:focus-visible {
    border-color: #C62828;
    color: #C62828;
}

@media (max-width: 767.98px) {
    .ba-hero {
        padding: 44px 0;
    }

    .ba-hero-grid,
    .ba-case-grid {
        grid-template-columns: 1fr;
    }

    .ba-hero-note {
        max-width: 520px;
    }

    .ba-gallery-section {
        padding: 50px 0 58px;
    }

    .ba-section-heading,
    .ba-cta-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .ba-cta-grid .ba-primary-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 530px) {
    .before-after-page-body .navbar-brand {
        width: 220px;
    }

    .ba-hero h1 {
        font-size: 2.35rem;
    }

    .ba-case-copy {
        padding: 18px 18px 22px;
    }

    .ba-viewer .modal-header {
        padding: 18px;
    }

    .ba-viewer .modal-title {
        font-size: 20px;
    }

    .ba-viewer .carousel-item {
        aspect-ratio: 4 / 3;
    }

    .ba-viewer .carousel-control-prev,
    .ba-viewer .carousel-control-next {
        height: 38px;
        width: 38px;
    }
}
