/* ===== INSIGHT BANNER SECTION (SCOPED STYLES ONLY) ===== */
.insight-banner-section {
    padding: 18rem 1.5rem 0rem;
    text-align: center;
}

.insight-banner-wrapper {
    max-width: 90rem;
    margin: 0 auto;
}

.insight-banner-eyebrow {
    font-size: 5rem;
    font-weight: 700;
    /* letter-spacing: 0.1em; */
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: #000;
}

.insight-banner-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 2.5rem;
    color: #000;
}

.insight-banner-text {
    font-size: 2rem;
    line-height: 1.8;
    margin: 0 0 1.2rem;
    color: #4b5563;
}

.insight-banner-text-strong {
    font-weight: 600;
}

/* ============================
           UNIQUE BLUE BACKGROUND SECTION
        =============================== */

.insight-blue-section {
    position: relative;
    height: auto;
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    padding: 17rem 0 3rem;
}

.insight-blue-section .container {
    width: 85%;
}

.insight-blue-section::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 130px;
    background: #fff;
    border-bottom-left-radius: 100% 100%;
    border-bottom-right-radius: 100% 100%;
}

.insight-blue-container {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 5rem 7rem;
}

.insight-blue-section h2 {
    font-size: 3.2rem;
    color: #000000;
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.3;
    width: 80%;
    margin: 1rem auto 4rem;
}

.insight-blue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    padding: 2rem 3rem;
    margin-bottom: 1rem;
}

.insight-blue-heading {
    font-size: 3rem;
    color: #004188;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.insight-blue-heading::after {
    content: "";
    display: block;
    width: 35px;
    height: 4px;
    margin-top: .5rem;
    background-color: #cc5500;
}

.insight-blue-text {
    font-size: 2rem;
    color: #333333b8;
    margin-bottom: 2rem;
}

.insight-blue-text-bold {
    font-size: 2rem;
    color: #333333b8;
    font-weight: 600;
}

.insight-blue-image-reverse {
    display: grid;
    justify-content: center;
}

.insight-blue-image-reverse img {
    border-radius: 20px;
}

/* TEXT BLOCK */
.insight-blue-info-data {
    max-width: 90%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 0.1rem solid #e5e7eb;
    border-bottom: 0.1rem solid #e5e7eb;
}

.insight-blue-info-data p {
    margin: 0;
    font-size: 3rem;
    line-height: 1.4;
    font-weight: 500;
    color: #111827;
}

/* BUTTON WRAPPER */
.insight-blue-info-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* BASE BUTTON STYLE */
.insight-blue-btn {
    background: linear-gradient(135deg, #0279d3 0%, #61adf4 100%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 12px 28px;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.insight-blue-btn:hover {
    background-color: #166e7b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 137, 153, 0.3);
}

/* MAIN WRAPPER */
.kx-cta-container {
    text-align: center;
    margin-bottom: 8rem;
}

.kx-cta-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    white-space: nowrap;
    opacity: 0;
    color: #cc5500;
    margin-top: 2rem;
}

.kx-cta-animate .kx-cta-wrapper {
    opacity: 1;
}

/* PHONE WITH | */
.kx-cta-phone {
    opacity: 0;
    transform: translateY(6px);
}

/* REVEAL BOX */
.kx-cta-reveal-box {
    display: inline-block;
    overflow: hidden;
    max-width: 0;
    --kx-width: 500px;
}

/* TEXT */
.kx-cta-text {
    display: inline-block;
    transform: translateX(100%);
    text-align: left;
}

/* ANIMATIONS (ONLY APPLIED WHEN CLASS ADDED) */
.kx-cta-animate .kx-cta-phone {
    animation: kxFadeInPhone 0.7s ease forwards;
}

.kx-cta-animate .kx-cta-reveal-box {
    animation: kxExpandBox 0.9s ease forwards;
    animation-delay: 0.9s;
}

.kx-cta-animate .kx-cta-text {
    animation: kxSlideIn 2s ease forwards;
    animation-delay: 0.9s;
}

@keyframes kxFadeInPhone {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kxExpandBox {
    from {
        max-width: 0;
    }

    to {
        max-width: var(--kx-width);
    }
}

@keyframes kxSlideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

:root {
    --slide-distance: 40px;
    --slide-duration: 1500ms;
    /* â¬… slowed down */
    --slide-ease: cubic-bezier(.2, .9, .2, 1);
}

/* common styles for items that will animate */
.animate-on-scroll {
    opacity: 0;
    transform: translateX(0) translateY(0);
    transition-property: opacity, transform;
    transition-duration: var(--slide-duration);
    transition-timing-function: var(--slide-ease);
    will-change: transform, opacity;
}

/* initial offsets based on direction */
.animate-on-scroll[data-direction="left"] {
    transform: translateX(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="right"] {
    transform: translateX(var(--slide-distance));
}

.animate-on-scroll[data-direction="up"] {
    transform: translateY(calc(-1 * var(--slide-distance)));
}

.animate-on-scroll[data-direction="down"] {
    transform: translateY(var(--slide-distance));
}

/* when element becomes visible */
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* FADE SECTION */

.kx-fade-testimonials {
    padding: 6rem 1.5rem 4rem;
    background: #ffffff;
}

.kx-fade-wrapper {
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* Each review item */
.kx-fade-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.kx-fade-item.active {
    opacity: 1;
    position: relative;
}

/* Avatar */
.kx-fade-avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
}

/* Quote box */
.kx-fade-quote-box {
    background: #f9f5f4;
    padding: 3rem 4rem;
    margin-bottom: 2rem;
}

.kx-fade-text {
    font-size: 2.2rem;
    line-height: 1.8;
    color: #4b5563;
}

/* Name */
.kx-fade-author {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #111827;
}

.kx-fade-author span {
    color: #6b7280;
}

.kx-divider {
    border-top: .1rem solid #e5e7eb;
    max-width: 85%;
    margin: 0 auto;
}

.tearing-down {
    margin-top: 1rem;
}

.tearing-down p {
    text-align: center;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #004188;
}

/* Responsive */

/* Desktop and up */
@media (min-width: 1200px) {
    .insight-banner-title {
        font-size: 4.4rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {

    .insight-blue-section::before {
        top: -80px;
        height: 160px;
    }

    .container {
        width: 90%;
    }

    .insight-blue-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 3rem;
    }

    .insight-blue-container {
        padding: 5rem 3rem;
    }

    .kx-cta-wrapper {
        font-size: 3rem;
    }


    .kx-cta-wrapper {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {

    .tearing-down p {
        font-size: 2.2rem;
    }

    .kx-cta-wrapper {
        flex-direction: column;
        font-size: 2.8rem;
        white-space: normal;
    }

    .kx-cta-text {
        text-align: center;
    }

    .kx-fade-wrapper {
        width: 90%;
    }

    .kx-fade-quote-box {
        padding: 2.2rem 1.5rem;
    }

    .kx-fade-text {
        font-size: 1.8rem;
        line-height: 1.6;
    }

    .kx-fade-author {
        font-size: 1.6rem;
    }

    .kx-fade-avatar {
        width: 8rem;
        height: 8rem;
    }

    .insight-blue-container {
        padding: 5rem 0rem;
    }

    .insight-blue-section::before {
        top: -60px;
        height: 130px;
    }

    .insight-blue-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0rem 2rem 4rem;
    }

    .insight-blue-info-data p {
        font-size: 2.5rem;
    }

    .insight-banner-section {
        padding: 12.5rem 1.5rem 7rem;
    }

    .insight-banner-eyebrow {
        font-size: 3.8rem;
    }

    .insight-banner-title {
        font-size: 3.1rem;
    }

    .insight-banner-title {
        font-size: 4rem;
    }

    .insight-banner-text {
        font-size: 1.8rem;
    }

    .insight-blue-info-data {
        padding: 3rem 0rem;
    }

    .insight-blue-info-buttons {
        grid-template-columns: 1fr;
        padding: 1rem 2rem;
    }

    .kx-cta-container {
        margin-bottom: 5rem;
    }

}