/* Card Image Left Content Right Black Background - Unique styling to avoid conflicts */
/* Breakpoints: See /Content/css/breakpoints.css for standardized breakpoints */

.card-ilcr-container {
    width: 100%;
    overflow: hidden;
    /* Guardrail: Contain overflow */
}

.card-ilcr-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    overflow: hidden;
    /* Guardrail: Contain overflow */
}

.card-ilcr-left {
    max-width: 693px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
    /* Guardrail: Scroll if content exceeds bounds */
}



.card-ilcr-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.card-ilcr-image {  
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.card-ilcr-right {
    background-color: var(--color-near-black-2);
    padding: 70px 70px 58px 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    align-items: flex-start;
    width: 100%;
}

.card-ilcr-title {
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-family-bold);
    font-size: 34px;
    font-weight: 700;
    font-style: normal;
    margin-bottom: 22px;
    line-height: 44px;
    max-width: 437px;
}

.card-ilcr-description {
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-family-medium);
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    line-height: 26px;
    margin-bottom: 30px;
    width: 100%;
    overflow: auto;
    /* Guardrail: Scroll if content exceeds bounds */
    word-break: break-word;
    /* Guardrail: Prevent long words/URLs from breaking layout */
    overflow-wrap: break-word;
    /* Guardrail: Standard property for text wrapping */
}

.card-ilcr-description p {
    margin-bottom: 1em;
}
.card-ilcr-description > p:first-child{
    margin-bottom: 35px;
}
.card-ilcr-description p:last-child {
    margin-bottom: 0;
}

/* Table styling within description */
.card-ilcr-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.card-ilcr-description table th,
.card-ilcr-description table td {
    color: rgba(255, 255, 255, 1);
    font-family: var(--font-family-bold);
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    padding: 10px;
    text-align: left;
}

.card-ilcr-description table th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.card-ilcr-description table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Colour / type / padding come from .btn-secondary (common.css).
   Markup: class="btn-secondary card-ilcr-button". Invert-on-hover is this
   dark-panel card's deliberate deviation — specificity must beat
   .btn-secondary:hover:not(:disabled):not([disabled]).
   2px border at rest matches hover width so the invert does not layout-shift
   ([class*="btn-"] defaults to border: 0). */
.btn-secondary.card-ilcr-button {
    text-transform: uppercase;
    border: 2px solid var(--color-secondary-blue);
    box-sizing: border-box;
}

.btn-secondary.card-ilcr-button:hover:not(:disabled):not([disabled]) {
    background-color: rgb(0 0 0);
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

.btn-secondary.card-ilcr-button:active:not(:disabled):not([disabled]) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) and (max-width: 1416px) {
    .card-ilcr-content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .card-ilcr-left {
        flex: 0 0 48.906%;
        max-width: 48.906%;
        width: 48.906%;
        overflow: hidden;
    }

    .card-ilcr-right {
        flex: 0 0 51.094%;
        max-width: 51.094%;
        width: 51.094%;
        padding: clamp(50px, calc(50px + ((100vw - 1024px) * 0.0509)), 70px);
    }
}

/* Responsive design - stack columns on tablet and below */
@media (min-width: 878px) and (max-width: 1023px) {
    .card-ilcr-content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .card-ilcr-left {
        flex: 0 0 35.877%;
        max-width: 35.877%;
        min-height: 100%;
        overflow: hidden;
    }

    .card-ilcr-right {
        flex: 0 0 64.123%;
        max-width: 64.123%;
        width: 64.123%;
        padding: 50px;
        gap: 30px;
    }
    .card-ilcr-description {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .card-ilcr-left .card-ilcr-image-wrapper {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .card-ilcr-left .card-ilcr-image {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 877px) {
    .card-ilcr-right {
        padding: 40px 0;
    }
    .card-ilcr-title, .card-ilcr-description {
        width: 100% !important;
        max-width: 332px !important;
        margin: 0 auto !important;
    }

    .card-ilcr-title {
        font-size: 22px;
        max-width: 273px !important;
        width: 100% !important;
        min-height: 68px;
        line-height: 34px;
    }

    .card-ilcr-description {
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-ilcr-left {
        height: 630px;
        overflow: hidden;
    }

    .card-ilcr-left .card-ilcr-image-wrapper {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .card-ilcr-left .card-ilcr-image {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
    }

    .card-ilcr-description table th,
    .card-ilcr-description table td {
        font-size: 14px;
    }

    .card-ilcr-title {
        margin-bottom: 18px !important;
    }

    .card-ilcr-container.reliable-solutions {
        background-color: rgba(13, 13, 13, 1);
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-content {
        display: block !important;
        position: static !important;
        overflow: visible;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-left {
        display: none;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-right {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        max-width: 331px !important;
        padding: 50px 0 !important;
        background: rgba(13, 13, 13, 1) !important;
        align-items: flex-start;
        justify-content: flex-start;
        margin: auto;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-title {
        width: 273px !important;
        max-width: 273px !important;
        min-height: 68px;
        margin: 0 0 18px 0 !important;
        text-align: left !important;
        line-height: 34px !important;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-description {
        width: 100% !important;
        max-width: 331px !important;
        margin: 0 !important;
        font-size: 15px;
        line-height: 1.55;
        text-align: left !important;
        align-items: flex-start;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-description p {
        margin-bottom: 26px;
        line-height: 26px;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-description .icon-feature-grid {
        grid-template-columns: 1fr;
        row-gap: 25px;
        width: 100%;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-description .icon-feature-grid li {
        gap: 15px;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-description .icon-feature-grid img {
        width: 50px;
        height: 31px;
    }

    .card-ilcr-container.reliable-solutions .card-ilcr-button {
        margin-top: 40px;
        width: 168px;
        /* reliable-solutions uses a fixed maroon CTA on this dark panel */
        background-color: rgba(117, 26, 21, 1);
        border-color: rgba(117, 26, 21, 1);
        text-transform: uppercase;
        margin: 48px auto 0;
    }
}

/* Center container with white background on extra-large screens */
@media (min-width: 1418px) {
    .card-ilcr-container {
        background-color: var(--color-near-black-2);
    }

    .card-ilcr-content {
        position: relative;
        display: flex;
        flex-direction: row;
        margin: 0 auto;
    }
}
