﻿/* Custom Commercial page styles */

/* Testimonials */
.testimonial-text-wrapper {
    position: relative;
}

.testimonial-card p,
.review-text {
    color: #4d4d4d;
    line-height: 1.5;
    font-size: 16px;
    margin: 0;
    max-height: 96px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .testimonial-card p.expanded,
    .review-text.expanded {
        max-height: none;
    }

.read-more-btn {
    display: none;
    background: none;
    border: none;
    color: #1C326B;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 0 0 0 !important;
    text-align: left;
    text-decoration: underline;
    margin-top: 5px;
}

    .read-more-btn:hover {
        color: #FF8201;
    }

.testimonials-slider-wrapper {
    position: relative;
    padding: 10px 60px;
}

.testimonials-viewport {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.testimonials-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 0 10px;
}

.testimonial-card {
    min-width: calc(33.333% - 14px);
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .testimonial-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #1C326B 0%, #FF8201 100%);
        border-radius: 12px 12px 0 0;
        z-index: 1;
    }

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0px 4px rgba(0, 0, 0, 0.15), 0 0 4px rgba(0, 0, 0, 0.1);
    }

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1C326B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-name {
    font-weight: 700;
    color: #1C326B;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-title {
    color: #4d4d4d;
    font-size: 16px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-card p {
    color: #4d4d4d;
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #FF8201;
    color: #FF8201;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .testimonial-arrow:hover {
        background: white;
        color: #FF8201;
    }

    .testimonial-arrow.left {
        z-index: 1;
        width: 33px;
        height: 33px;
        font-size: 0;
        line-height: 0;
        -webkit-transform: translate(0, -50%);
        -o-transform: translate(0, -50%);
        transform: translate(0, -50%);
        position: absolute;
        cursor: pointer;
        margin: 0;
        bottom: -65px;
        background-color: white;
        color: #FF8201;
        border-radius: 50%;
        left: 0;
    }

        .testimonial-arrow.left:before {
            content: "";
            position: absolute;
            border: solid #FF8201;
            border-width: 0 4px 4px 0;
            display: inline-block;
            padding: 4px;
            right: 6px;
            top: 9px;
            -webkit-transform: rotate(-224deg);
            -o-transform: rotate(-224deg);
            transform: rotate(-224deg);
            height: 11px;
            width: 11px;
            opacity: 1;
        }

    .testimonial-arrow.right {
        z-index: 1;
        right: 2%;
        width: 33px;
        height: 33px;
        font-size: 0;
        line-height: 0;
        position: absolute;
        cursor: pointer;
        margin: 0;
        -webkit-transform: translate(0, -50%);
        -o-transform: translate(0, -50%);
        transform: translate(0, -50%);
        background-color: white;
        border-radius: 50%;
        bottom: -65px;
    }

        .testimonial-arrow.right:before {
            content: "";
            position: absolute;
            border: solid #FF8201;
            border-width: 0 4px 4px 0;
            display: inline-block;
            height: 11px;
            width: 11px;
            top: 9px;
            right: 10px;
            -webkit-transform: rotate(-45deg);
            -o-transform: rotate(-45deg);
            transform: rotate(-45deg);
            opacity: 1;
        }

@media (max-width: 991px) {
    .testimonial-card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        min-width: 100%;
    }

    .testimonials-slider-wrapper {
        padding: 10px 50px;
    }

    .testimonial-arrow {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .testimonials-slider-container {
        padding: 0 10px;
    }

    .testimonials h2 {
        font-size: 32px;
    }

    .testimonials-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

@media (min-width: 768px) {
    .stars {
        margin-bottom: 10px;
    }

    .star_img {
        width: 24px;
        height: 24px;
        fill: #EE6A1F;
    }
}

@media (max-width: 767px) {
    .stars {
        margin-bottom: 10px;
        text-align: left;
    }

    .star_img {
        width: 24px;
        height: 24px;
        fill: #EE6A1F;
    }
}

.star_img {
    width: 24px;
    height: 24px;
}

.review_content_star {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
}

/* Comparison table: desktop rules from product-page.css, scoped to .cms-compare-table */
.cms-compare-table {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

    .cms-compare-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .cms-compare-table th {
        background-color: #1C326B;
        color: white;
        padding: 22px 25px;
        text-align: left;
        font-weight: 600;
        font-size: 18px;
    }

    .cms-compare-table tbody th {
        background-color: white !important;
        color: #1C326B;
        font-weight: 600;
        border-bottom: 1px solid #e0e0e0;
    }

    .cms-compare-table td {
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
        color: #4d4d4d;
        font-size: 18px;
        line-height: 1.5;
    }

    .cms-compare-table tbody tr {
        background-color: white;
    }

        .cms-compare-table tbody tr:last-child td,
        .cms-compare-table tbody tr:last-child th {
            border-bottom: none;
        }

@media (max-width: 767px) {
    .cms-compare-table {
        box-shadow: none;
        background-color: transparent;
    }

        .cms-compare-table table,
        .cms-compare-table tbody,
        .cms-compare-table tr {
            display: block;
        }

        .cms-compare-table thead {
            display: none;
        }

        .cms-compare-table tbody tr {
            background-color: white;
            margin-bottom: 20px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        }

        .cms-compare-table tbody th {
            display: block;
            background-color: #1C326B !important;
            color: white;
            padding: 15px 20px;
        }

        .cms-compare-table tbody td {
            display: block;
            padding: 15px 20px;
        }

            .cms-compare-table tbody td::before {
                content: attr(data-label);
                display: block;
                font-weight: 700;
                color: #1C326B;
            }
}

/* Process cards reuse the page's .amc-card boxes */
@media (max-width: 767px) {
    .cms-two-card-area .amc-bottom-row {
        flex-direction: column;
    }

        .cms-two-card-area .amc-bottom-row .amc-card {
            border-right: none !important;
        }

            .cms-two-card-area .amc-bottom-row .amc-card:not(:last-child) {
                border-bottom: 4px solid #1C326B !important;
            }
}

.cms-cert-list {
    list-style: disc;
    padding-left: 20px;
}

    .cms-cert-list li {
        margin-bottom: 8px;
    }

@media (max-width: 1024px) {
    .cms-amc-standalone .amc-bottom-row {
        border-top: 4px solid #1C326B !important;
    }
}

/* Benefits list */
.cms-benefit-list {
    list-style: disc;
    max-width: 900px;
    margin: 0 auto 30px;
    padding-left: 20px;
}

    .cms-benefit-list li {
        margin-bottom: 10px;
    }

/* Keep title case after the H4/H5 to H3 heading-level fix */
h3.cms-h5-style,
.card-with-img h3.card-h4 {
    text-transform: none !important;
}
/* ============================================================
   Custom Modular Construction landing page additions
   ============================================================ */
/* Landing page: page layout (scoped so it doesn't affect other pages) */
body .redesign-2020 .content-with-image-commercial.custom-solutions .column-wrap .col-two.text-box .text-wrapper p {
    text-align: left;
}

body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper ul li {
    margin: 20px 0px 0px;
}

body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper ul {
    -webkit-column-count: 1;
    column-count: 1;
    padding: 15px 0px;
}

    body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper ul::before {
        border: none;
    }

#_pb_webBanner_overlay {
    position: relative;
}

.cms_video_p {
    font-size: 20px;
    line-height: 1.5;
    margin-top: 20px;
    color: #1C326B;
}

@media (min-width: 1201px) {
    body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper.right-text {
        padding: 30px 0px 30px 50px;
    }

    body .redesign-2020 .content-with-image-commercial.content-with-image-landing .col-two .text-wrapper {
        padding: 0 30px 0 60px;
    }
}

@media (min-width: 991px) and (max-width: 1200px) {
    body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper.right-text {
        padding: 30px 0px 30px 50px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper.right-text {
        padding: 30px 0px 30px 40px;
    }

    body .redesign-2020 .content-with-image-commercial .col-two.text-box .text-wrapper h2 {
        padding-bottom: 22px !important;
    }
}

@media (max-width: 767px) {
    body .redesign-2020 .banner-slider .slider-dots li {
        margin: 0 10px 0 10px !important;
    }

    body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper ul {
        -webkit-column-count: 1;
        column-count: 1;
        padding: 15px;
    }

        body .redesign-2020 .col-two-content.bg-blue.cms-services-blade .column-wrap .col-two .text-wrapper ul li {
            margin: 0px 0px 10px;
        }

    body .redesign-2020 .content-with-image-commercial .col-two.text-box .text-wrapper h2 {
        padding-bottom: 22px !important;
    }
}
/* ============================================================
   Custom Medical + Custom Education pages: building-types blade
   ============================================================ */
body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper ul,
body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper ul {
    padding: 30px 0px 0px;
}

    body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper ul::before,
    body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper ul::before {
        border: none;
    }

    body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper ul li,
    body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper ul li {
        margin-bottom: 10px;
    }

@media (min-width: 1201px) {
    body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper.right-text,
    body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper.right-text {
        padding: 25px 0px 25px 50px;
        display: block;
    }
}

@media (min-width: 991px) and (max-width: 1200px) {
    body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper.right-text,
    body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper.right-text {
        padding: 25px 0px 25px 50px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper.right-text,
    body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper.right-text {
        padding: 30px;
    }

    body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper ul,
    body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper ul {
        padding: 20px 20px 0px;
        -webkit-column-count: 1;
        column-count: 1;
    }
}

@media (max-width: 767px) {
    body .redesign-2020 .col-two-content.bg-blue.cms-medical-types .column-wrap .col-two .text-wrapper ul,
    body .redesign-2020 .col-two-content.bg-blue.cms-education-types .column-wrap .col-two .text-wrapper ul {
        padding: 10px 20px 0px;
    }
}
/* Case study slider */
.cs-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.cs-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.cs-slider-container {
    display: flex;
    gap: 0;
    transition: transform 0.6s ease-in-out;
    align-items: center;
}

.cs-slide {
    min-width: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
}

.cs-slide-image {
    flex: 0 0 40%;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.cs-slide-content {
    flex: 0 0 65%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: white;
    min-height: 450px;
    position: relative;
    overflow-y: auto;
    margin-left: -5%;
    margin-top: 30px;
    margin-bottom: 30px;
    z-index: 2;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.cs-slide-title {
    color: #1e3a5f;
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.cs-challenge,
.cs-solution {
    margin-bottom: 15px;
}

    .cs-challenge p:first-child,
    .cs-solution p:first-child {
        color: #4d4d4d;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .cs-challenge p:last-child,
    .cs-solution p:last-child {
        color: #4d4d4d;
        font-size: 16px;
    }

.cs-callouts {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.cs-callout-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cs-callout-number {
    color: #ff6b35;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.cs-callout-label {
    color: #4d4d4d;
    font-size: 12px;
    margin-top: 5px;
    max-width: 100px;
    line-height: 1.2;
}

.cs-quote {
    color: #1C326B !important;
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
    margin: 10px 0 0 0;
    padding-left: 15px;
    border-left: 4px solid #ff6b35;
}

.cs-cta-button {
    background-color: #2c4b7f;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .cs-cta-button:hover {
        background-color: #1e3a5f;
    }

.cs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FF8201;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.cs-left {
    z-index: 1;
    width: 33px;
    height: 33px;
    font-size: 0;
    line-height: 0;
    -webkit-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    transform: translate(0, -50%);
    margin: 0;
    bottom: -65px;
    background: #ff8201;
    border-radius: 50%;
}

    .cs-left:before {
        content: "";
        position: absolute;
        border: solid #FFFFFF;
        border-width: 0 4px 4px 0;
        display: inline-block;
        padding: 4px;
        right: 9px;
        top: 11px;
        -webkit-transform: rotate(-224deg);
        -o-transform: rotate(-224deg);
        transform: rotate(-224deg);
        height: 11px;
        width: 11px;
        opacity: 1;
    }

.cs-right {
    z-index: 1;
    width: 33px;
    height: 33px;
    font-size: 0;
    line-height: 0;
    margin: 0;
    -webkit-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    transform: translate(0, -50%);
    background: #ff8201;
    border-radius: 50%;
    bottom: -65px;
}

    .cs-right:before {
        content: "";
        position: absolute;
        border: solid #FFFFFF;
        border-width: 0 4px 4px 0;
        display: inline-block;
        height: 11px;
        width: 11px;
        right: 12px;
        top: 11px;
        -webkit-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
        opacity: 1;
    }

.cs-arrow:hover {
    background-color: #ff8555;
    transform: translateY(-50%) scale(1.1);
}

.cs-arrow.cs-left {
    left: -20px;
}

.cs-arrow.cs-right {
    right: -20px;
}

@media (max-width: 1200px) {
    .cs-slide {
        min-width: 100%;
    }

    .cs-slide-image {
        width: 100%;
        height: 550px;
        min-height: 550px;
    }

    .cs-slide-content {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .cs-slide {
        min-width: 100%;
        flex-direction: column !important;
    }

    .cs-main-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .cs-slide-image {
        height: 300px;
        min-height: 300px;
    }

    .cs-slide-content {
        padding: 20px;
        min-height: auto;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        margin-left: 0px !important;
    }

    .cs-slide-title {
        font-size: 1.2rem;
    }

    .cs-callouts {
        gap: 15px;
    }

    .cs-callout-number {
        font-size: 1.6rem;
    }

    .cs-callout-label {
        font-size: 0.7rem;
    }

    .cs-quote {
        font-size: 0.85rem;
    }

    .cs-arrow.cs-right {
        right: 10px;
    }

    .cs-arrow.cs-left {
        left: 10px;
    }

    .cs-slider-wrapper {
        padding: 0 30px;
    }
}