.allInsights-parent {
    border: 1px solid transparent;
    background: #F6F6F6;
    max-width: 1920px;
    margin: 0 auto;
}

.allInsights-parent .allInsights-titleContainer {
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    padding: 2.875rem 4rem 0rem 4.5rem;
}

.allInsights-parent .allInsights-primaryTitle {
    font-family: Effra-Bold;
    font-weight: normal;
    font-style: normal;
    font-size: 2rem;
    line-height: 100%;
    letter-spacing: 0;
    color: #1A2142;
}

.allInsights-parent .allInsightsCard-contentType {
    font-family: Effra-Bold;
    font-weight: normal;
    font-style: normal;
    font-size: 0.75rem;
    color: #515151;
    line-height: 100%;
    letter-spacing: 0.96px; /* Rem value not working as expected */
    text-transform: uppercase;
    margin: 0rem 0rem 1rem 0rem;
}

.allInsights-parent .allInsights-secondaryBtn {
    font-family: Effra-Regular;
    font-weight: normal;
    font-style: normal;
    font-size: 0.938rem;
    line-height: 2.094rem;
    letter-spacing: 0;
    color: #1A2142;
    text-decoration: none;
}

.allInsights-parent .allInsights-container {
    display: flex;
    gap: 1rem;
    margin: 0 auto;
    border: 1px solid transparent;
    padding: 2.231rem 3.936rem 6.599rem 4.5rem;
    scroll-behavior: smooth;
}

.allInsights-parent .allInsightsCard {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F6F6F6;
    overflow: hidden;
    border: 1px solid transparent;
}

.allInsights-parent .allInsightsCard img {
    width: 100%;
    height: auto;
    max-height: 276px; /* Rem values not working as expected */
    object-fit: cover;
    min-height: 146px;    /* Rem values not working as expected */
}

.allInsights-parent .allInsightsCard-content {
    padding: 0rem 0rem 1.25rem 0rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border: 1px solid transparent;
    position: relative;
}

.allInsights-parent .allInsightsCard-title {
    font-family: Effra-Bold;
    font-weight: normal;
    letter-spacing: 0;
    margin: 1.13rem 0rem 0.875rem 0rem;
    color: #1A2142;
    border: 1px solid transparent;
    font-size: 1.13rem;
    font-style: normal;
    line-height: 1.5rem;
}

.allInsights-parent .allInsightsCard-teaser {
    font-family: Effra-Regular;
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    letter-spacing: 0;
    margin: 0rem 0rem 3.3rem 0rem;
    flex-grow: 1;
    border: 1px solid transparent;
    display: -webkit-box;  /* CSS to add 3 dots and make it ellipsis start */
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;   /* CSS to add 3 dots and make it ellipsis end */
    color: #000000;
    line-height: normal;
    max-height: fit-content;
}

.allInsights-parent .allInsightsCard-button {
    font-family: Effra-Regular;
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    letter-spacing: 0;
    width: fit-content;
    background-color: #006DE3;
    color: #ffffff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 1;
    gap: 10px;    /* Rem values not working as expected */
    padding: 0.76rem 2rem;
    border-radius: 24px;
    text-align: center;
    line-height: 1.5rem;
    position: absolute;
    bottom: 0;
}

.allInsights-parent .allInsightsCard-button:hover {
    box-shadow: 0 4px 160px 0 rgba(0, 0, 0, 0.10) inset;
}

.allInsights-parent .allInsights-scndryIcn {
    display: inline-block;
    content: '';
    background-image: url("images/allInsightsCarat_icon.svg");
    background-repeat: no-repeat;
    width: 20px;    /* Rem value not working as expected */
    height: 18px;   /* Rem value not working as expected */
    margin-left: 1rem;
    vertical-align: middle;
}
/* Accessibility Fix - WCAG Focus Visible */
.allInsights-parent .allInsightsCard-button:focus-visible {
    outline-offset: -3px;
    outline-color: #171717;
}

/* Mobile styles */
@media only screen and (max-width: 767px) {
    .allInsights-parent .allInsights-container {
        flex-direction: column;
        overflow-x: visible;
    }

    .allInsights-parent .allInsightsCard {
        min-width: auto;
    }

    .allInsights-parent .allInsights-container .insightsThree, .allInsights-parent .allInsights-container .insightsFour {
        display: none;
    }

    .allInsights-parent .allInsights-titleContainer {
        padding: 36px 20px 0px 20px;
    }

    .allInsights-parent .allInsights-container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .allInsights-parent .allInsightsCard-content {
        padding-bottom: 42px;
    }

    .allInsights-parent .allInsights-container {
        gap: 0px;
    }

    .allInsights-parent .allInsights-container {
        padding-bottom: 44px;
    }

    .allInsights-parent .allInsights-primaryTitle {
        width: 50%;
        font-size: 28px;
    }

    .allInsights-parent .allInsights-titleContainer {
        align-items: center;
    }

    .allInsights-parent .allInsights-secondaryBtn {
        font-size: 16px;
        line-height: 33.5px;
    }

    .allInsights-parent .allInsightsCard-contentType {
        font-size: 14px;
        letter-spacing: 1.12px;
    }

    .allInsights-parent .allInsightsCard-title {
        font-size: 18px;
        line-height: 100%;
    }

    .allInsights-parent .allInsightsCard-teaser {
        font-size: 14px;
        line-height: 100%;
    }

    .allInsights-parent .allInsightsCard-button {
        font-size: 16px;
        line-height: 24px;
        padding: 4px 16px 4.69px 16px;
        position: relative;
    }

    .allInsights-parent .allInsightsCard img {
        min-height: 218px;
    }
}

/* iPad specific styles (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .allInsights-parent .allInsights-container {
        overflow-x: auto;
        overflow-y: hidden;
        max-width: none;
        padding: 25px;
        width: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        scrollbar-color: transparent;
        -webkit-overflow-scrolling: touch;   /* Smooth scrolling on iOS */
    }

    /* Custom scrollbar for webkit browsers */
    .allInsights-parent .allInsights-container::-webkit-scrollbar {
        height: 0px;
    }

    .allInsights-parent .allInsights-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .allInsights-parent .allInsights-container::-webkit-scrollbar-thumb {
        background: transparent;
    }

    .allInsights-parent .allInsights-container::-webkit-scrollbar-thumb:hover {
        background: transparent;
    }

    .allInsights-parent .allInsightsCard {
        min-width: calc(40% - 10px);
    }

    /* Ensure the last allInsightsCard creates the partial visibility and proper spacing */
    .allInsights-parent .allInsightsCard:last-child {
        margin-right: 20px;
    }

    .allInsights-parent .allInsightsCard img {
        max-height: 146px;
    }

    .allInsights-parent .allInsights-secondaryBtn {
        font-size: 15px;
        line-height: 33.5px;
    }

    .allInsights-parent .allInsightsCard-contentType {
        font-size: 12px;
        letter-spacing: 0.96px;
    }

    .allInsights-parent .allInsightsCard-title {
        font-size: 18px;
        line-height: 24px;
    }

    .allInsights-parent .allInsightsCard-teaser {
        font-size: 14px;
        line-height: 100%;
    }

    .allInsights-parent .allInsightsCard-button {
        font-size: 16px;
        line-height: 24px;
        padding: 4px 16px 4px 16px;
    }

    .allInsights-parent .allInsights-primaryTitle {
        width: 50%;
        font-size: 32px;
    }

    .allInsights-parent .allInsights-titleContainer {
        padding-left: 25px;
        padding-right: 24px;
    }

    .allInsights-parent .allInsights-wrapper {
        position: relative;
    }

    .allInsights-parent .allInsights-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
        pointer-events: none;
        z-index: 1;
    }
}

@media only screen and (min-width: 810px) and (max-width: 1110px) and (orientation: portrait) {
    .allInsights-parent .allInsightsCard-teaser {
        max-height: 4.5rem;
    }
}

/* Desktop styles */
@media only screen and (min-width: 1200px) {

    .allInsights-parent .allInsights-container {
        padding: 2.231rem 3.936rem 2.875rem 4.5rem;
    }
}

@media only screen and (min-width: 1500px) {
    .allInsights-parent .allInsightsCard-button {
        border-radius: 50px;
    }
}

@media only screen and (min-width: 1920px) {
    .allInsights-parent .allInsights-primaryTitle {
        font-size: 3rem;
    }

    .allInsights-parent .allInsightsCard-contentType {
        font-size: 0.83rem;
        letter-spacing: 1.12px; /* Rem values not working as expected */
    }

    .allInsights-parent .allInsightsCard-title {
        font-size: 1.56rem;
        line-height: normal;
    }

    .allInsights-parent .allInsightsCard-teaser {
        font-size: 1.15rem;
        line-height: 1.5rem;
        margin: 0rem 0rem 4.5rem 0rem;
    }

    .allInsights-parent .allInsightsCard-button {
        font-size: 1.12rem;
        line-height: 1.45rem;
        padding: 1.29rem 2.473rem;
    }

    .allInsights-parent .allInsights-container {
        padding-bottom: 4.061rem;
    }

    .allInsights-parent .allInsights-titleContainer {
        padding-top: 4.061rem;
    }

}

@media only screen and (min-width: 3840px) {
    .allInsights-parent .allInsights-primaryTitle {
        font-size: 4.5rem;
    }

    .allInsights-parent .allInsightsCard-contentType {
        font-size: 1.3125rem;
    }

    .allInsights-parent .allInsightsCard-title {
        font-size: 2.25rem;
        line-height: 100%;
    }

    .allInsights-parent .allInsightsCard-teaser {
        font-size: 1.5rem;
        line-height: 100%;
    }

    .allInsights-parent .allInsightsCard-button {
        font-size: 1rem;
        line-height: 1.31rem;
        padding: 1.152rem 2.225rem;
    }

}