/* ==========================================================================
   COMPONENTS - Service Boxes, Cards, Features, Forms, etc
   ========================================================================== */

.service-box {
    padding: 36px 25px;
    border-radius: 10px;
    background-color: #ffffff;
    position: relative;
    transition: all 0.5s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Equal height service boxes in grid layout */
.row:has(.service-box) > [class*="col-"] {
    display: flex;
}

/* Equal height product cards */
#products .row > [class*="col-"] {
    display: flex;
    margin-bottom: 20px;
}

#products .service-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix: Align titles horizontally across cards */
#products .service-box h4 {
    min-height: 2.5em;
}

/* Fix: Make button sticky to bottom */
#products .service-box .btn-outline-primary {
    margin-top: auto !important;
}

    .service-box .service-border {
        width: 3px;
        height: 15px;
        border: 1px solid rgba(128, 142, 177, 0.4);
    }

    .service-box .service-icon {
        width: 66px;
        height: 66px;
        line-height: 56px;
        text-align: center;
        border-radius: 5px;
    }

        .service-box .service-icon .uim-svg {
            fill: #808eb1;
        }

    .service-box .read-more {
        position: relative;
    }

        .service-box .read-more .arrow {
            position: relative;
            margin-left: 0px;
            font-size: 40px;
            transition: all 0.5s;
        }

        .service-box .read-more:before {
            content: "";
            border-radius: 50%;
            position: absolute;
            width: 40px;
            height: 40px;
            background: rgba(30, 87, 199, 0.1);
            left: 0;
            right: 0;
            margin: 0 auto;
            top: 12px;
        }

    .service-box:hover {
    }

        .service-box:hover .service-border {
        }

        .service-box:hover .service-icon {
        }

            .service-box:hover .service-icon .uim-svg {
                fill: #1e57c7;
            }

        .service-box:hover .arrow {
            position: relative;
            margin-left: 40px;
        }

    .service-box.active {
        box-shadow: 0px 30px 30px 0px rgba(64, 75, 103, 0.06);
    }

        .service-box.active .service-border {
            background-color: #1e57c7;
            border: 1px solid rgba(30, 87, 199, 0.4);
        }

        .service-box.active .service-icon {
        }

            .service-box.active .service-icon .uim-svg {
                fill: #1e57c7;
            }

        .service-box.active .arrow {
            margin-left: 40px;
        }

.read-more {
    position: relative;
}

    .read-more:before {
        content: "";
        border-radius: 50%;
        position: absolute;
        width: 40px;
        height: 40px;
        background: rgba(30, 87, 199, 0.1);
        left: 0;
        top: 12px;
    }

    .read-more .arrow {
        position: relative;
        margin-left: 0px;
        font-size: 40px;
        transition: all 0.5s;
    }

    .read-more:hover .arrow {
        position: relative;
        margin-left: 20px;
    }

/* Feature rows - unified layout */
.feature-row {
    padding: 20px 0;
}

/* Alternating backgrounds for visual rhythm */
.feature-row:nth-child(even) {
    background: rgba(30, 87, 199, 0.03);
    border-radius: 12px;
    padding: 30px 20px;
    margin-left: -15px;
    margin-right: -15px;
}

/* Consistent image treatment */
.feature-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile feature adjustments */
@media (max-width: 991.98px) {
    .feature-row {
        padding: 28px 16px;
        margin-left: -8px;
        margin-right: -8px;
        border-radius: 12px;
        background: #fafbfd;
        border: 1px solid rgba(30, 87, 199, 0.06);
    }

    .feature-row:nth-child(even) {
        background: rgba(30, 87, 199, 0.04);
        margin-left: -8px;
        margin-right: -8px;
    }

    .feature-row .features-box {
        text-align: center;
    }

    .feature-row .features-box h3 {
        text-align: center;
        font-size: 1.35rem;
        margin-bottom: 12px;
    }

    .feature-row .features-box .text-muted {
        text-align: left;
        font-size: 0.925rem;
        line-height: 1.7;
    }

    .feature-row .features-box .mt-4 {
        margin-top: 1rem !important;
    }

    .feature-img {
        max-width: 75%;
        margin: 0 auto;
        padding: 8px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    .feature-img img {
        border-radius: 8px;
    }
}

/* Small mobile feature adjustments */
@media (max-width: 575.98px) {
    .feature-row {
        padding: 24px 12px;
    }

    .feature-img {
        max-width: 90%;
    }

    .feature-row .features-box h3 {
        font-size: 1.2rem;
    }
}
.faviconCrm {
    margin-left: auto;
    margin-right: auto;
    width: 25%;
    margin-bottom: 12px;
}

/* Feature takeaway - emphasized last sentence */
.feature-takeaway {
    color: #1e57c7;
    font-weight: 600;
}

.challenge-block {
    background: rgba(246, 203, 66, 0.08);
    border-left: 3px solid #f6cb42;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 48px;
}

.challenge-block h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.four h1 {
    text-align: center;
    padding-bottom: 0;
}

    .four h1 span {
        font-weight: 300;
        word-spacing: 3px;
        line-height: 2em;
        padding-bottom: 0.35em;
        color: rgba(0, 0, 0, 0.5);
    }

    .four h1:before {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 60px;
        height: 1px;
        content: "";
        left: 50%;
        margin-left: -30px;
        background-color: #777;
    }


.features-icon {
    width: 60px;
    height: 60px;
    line-height: 52px;
    text-align: center;
    border-radius: 5px;
    border: 2px solid rgba(30, 87, 199, 0.3);
    background: rgba(30, 87, 199, 0.1);
}

    .features-icon .uim-svg {
        fill: #808eb1;
    }

.client-title-main {
    font-size: 160px;
    color: rgba(30, 87, 199, 0.03);
    position: absolute;
    left: 0px;
    right: 0;
    margin-top: 70px;
}

.testi-box {
    max-width: 850px;
    margin: 0 auto;
}

.carousel-control-prev,
.carousel-control-next {
    background: transparent;
    border: none;
    width: 5%;
}

.carousel-indicators {
    margin-right: 0%;
    margin-left: 0%;
    position: relative;
}

    .carousel-indicators button {
        width: 280px;
        height: 110px;
        margin-right: 10px;
        margin-left: 10px;
        cursor: pointer;
        overflow: hidden;
        border: none;
        background: transparent;
        opacity: 0.3;
    }

    .carousel-indicators .testi-img {
        width: 50px;
        height: 50px;
        display: inline-block;
    }

    .carousel-indicators .active {
        opacity: 1;
        border-top: 3px solid #1e57c7;
        z-index: 3;
        opacity: 1 !important;
        box-shadow: 0px 30px 30px 0px rgba(64, 75, 103, 0.06);
    }

.client-title {
    max-width: 650px;
    margin: 0 auto;
    font-size: 18px;
}

.client-icon i {
    font-size: 50px;
    color: #1e57c7;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #1e57c7;
    background-size: 100% 40%;
    border-radius: 50%;
}

.carousel-control-next,
.carousel-control-prev {
    opacity: 1;
}

.pricing-box {
    position: relative;
    padding: 30px 40px;
    box-shadow: 0px 30px 30px 0px rgba(64, 75, 103, 0.06);
}

    .pricing-box .pricing-title {
        font-size: 36px;
    }

    .pricing-box .pricing-img img {
        height: 110px;
    }

    .pricing-box .pricing-badge {
        position: absolute;
        top: 0;
        z-index: 999;
        right: 0;
        width: 100%;
        display: block;
        font-size: 15px;
        padding: 0;
        overflow: hidden;
        height: 100px;
    }

        .pricing-box .pricing-badge .badge {
            float: right;
            transform: rotate(45deg);
            right: -60px;
            top: 28px;
            position: relative;
            text-align: center;
            width: 200px;
            font-size: 13px;
            margin: 0;
            padding: 7px 10px;
            font-weight: 500;
            color: #ffffff;
            background: #1e57c7;
        }

    .pricing-box.active {
        transform: scale(1.08);
        z-index: 2;
    }

.pricing-badge {
    position: absolute;
    top: 0;
    z-index: 999;
    right: 0;
    width: 100%;
    display: block;
    font-size: 15px;
    padding: 0;
    overflow: hidden;
    height: 100px;
}

    .pricing-badge .badge {
        float: right;
        transform: rotate(45deg);
        right: -67px;
        top: 17px;
        position: relative;
        text-align: center;
        width: 200px;
        font-size: 13px;
        margin: 0;
        padding: 7px 10px;
        font-weight: 500;
        color: #ffffff;
        background: #1e57c7;
    }

.nav-tabs > li > a, .nav-pills > li > a {
    color: #404b67;
}

.nav-pills > a {
    color: #404b67;
}

.pricing-tab-border {
    border: 1px solid #e6effe;
    background: #ffffff;
}

.nav-link.active,
.show > .nav-link {
    background-color: #1e57c7 !important;
}

.nav-tabs-custom {
    border-bottom: 2px solid #e6effe;
}

    .nav-tabs-custom .nav-item {
        position: relative;
        color: #404b67;
    }

        .nav-tabs-custom .nav-item .nav-link {
            border: none;
        }

            .nav-tabs-custom .nav-item .nav-link::after {
                content: "";
                background: #1e57c7;
                height: 2px;
                position: absolute;
                width: 100%;
                left: 0;
                bottom: -1px;
                transition: all 250ms ease 0s;
                transform: scale(0);
            }

            .nav-tabs-custom .nav-item .nav-link.active {
                color: #1e57c7;
            }

                .nav-tabs-custom .nav-item .nav-link.active:after {
                    transform: scale(1);
                }

.bg-contact {
    background-image: url(../images/overlay-3.png);
}

.custom-form .alert-warning {
    padding: 10px;
}

textarea.form-control {
    height: auto !important;
}

.form-control {
    box-shadow: none !important;
    height: 42px;
    padding-left: 20px;
    border: 1px solid #dfe9f1;
    font-size: 16px;
    border-radius: 5px;
}

    .form-control:focus {
        border-color: #e4eef7;
    }

textarea.form-control {
    height: auto;
    padding-top: 14px;
}

.client-logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.client-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.client-logo-item img {
    max-width: 100px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo-item.has-bg {
    border-radius: 5px;
    padding: 8px 12px;
    background-color: #999;
    transition: background-color 0.3s ease-in-out;
}

.client-logo-item.has-bg img {
    filter: grayscale(0%);
    opacity: 0.7;
}

.client-logo-item.has-bg:hover {
    background-color: rgba(2, 119, 189, 0.9);
}

.client-logo-item.has-bg:hover img {
    opacity: 1;
}

.client-logo-item.has-bg-light {
    border-radius: 5px;
    padding: 8px 12px;
    background-color: #999;
    transition: background-color 0.3s ease-in-out;
}

.client-logo-item.has-bg-light img {
    filter: grayscale(0%);
    opacity: 0.7;
}

.client-logo-item.has-bg-light:hover {
    background-color: #d0d0d0;
}

.client-logo-item.has-bg-light:hover img {
    opacity: 1;
}

/* Legacy support */
.client-images img {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.bg-footer {
    padding-top: 90px;
    padding-bottom: 70px;
}

.footer-link a {
    color: #808eb1;
    line-height: 38px;
    font-size: 17px;
    -webkit-transition: all 0.5s;
    background-color: transparent;
    transition: all 0.5s;
}

    .footer-link a:hover {
        color: #1e57c7;
    }

.footer-social i {
    width: 36px;
    height: 36px;
    display: inline-block;
    line-height: 36px;
    border-radius: 50%;
    text-align: center;
    background: #1e57c7;
    font-size: 15px;
    color: #ffffff;
}

/* ==========================================================================
   V3 FOOTER - Modern 4-column footer layout
   ========================================================================== */

.footer {
    background: #164E63; /* Dark cyan from v3 */
    color: #FFFFFF;
    padding: 4rem 0 2rem 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.15s ease;
    text-decoration: none;
}

.footer a:hover {
    color: #FFFFFF;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-title {
    font-family: 'Sono', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.footer-brand .footer-title {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Grid-4 for footer columns - using Bootstrap's grid system */
@media (min-width: 768px) {
    .footer .grid-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer .grid-4 {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Mobile: stack columns */
@media (max-width: 767px) {
    .footer .grid-4 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer {
        padding: 3rem 0 2rem 0;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }
}
