/* ========================================
   TEXT WITH LIST SIDEBAR COMPONENT
   Two-column layout with text content on left and checklist on right
   ======================================== */

.text-with-list-sidebar {
    padding: var(--spacing-lg) 0;
}

/* Inner Container - Two Column Grid */
.text-with-list-sidebar__inner {
    display: grid;
    grid-template-columns: 2fr auto 1fr;
    gap: var(--spacing-md);
    align-items: start;

    @media screen and (max-width: 991px) {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Left Column - Text Content */
.text-with-list-sidebar__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.text-with-list-sidebar__heading {
    color: var(--color-white);
    margin: 0;
}

.text-with-list-sidebar__text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.text-with-list-sidebar__paragraph {
    color: var(--color-white);
    font-size: var(--text-lg);
    line-height: 1.33;

    p {
        margin: 0 0 var(--spacing-xs) 0;

        &:last-child {
            margin-bottom: 0;
        }
    }

    /* Bold text styling */
    strong, b {
        font-weight: 800;
    }
}

/* Red Callout Banner */
.text-with-list-sidebar__callout {
    background-color: var(--color-red);
    padding: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    p {
        color: var(--color-white);
        font-family: var(--sans);
        font-size: var(--text-xl);
        font-weight: 850;
        font-style: italic;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        line-height: 1;
        margin: 0;
        white-space: nowrap;
    }
}

/* Vertical Divider */
.text-with-list-sidebar__divider {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-white) 0%, var(--color-blue) 100%);
    opacity: 0.3;
    align-self: stretch;

    @media screen and (max-width: 991px) {
        display: none;
    }
}

/* Right Column - List Sidebar */
.text-with-list-sidebar__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.text-with-list-sidebar__list-heading {
    color: var(--color-white);
    margin: 0;
}

.text-with-list-sidebar__list {
    margin: 0;
    padding: 0;
    list-style: none;
    @media(max-width: 991px){
       margin-left:2rem;
    }

    li {
        color: var(--color-white);
        font-size: var(--text-lg);
        line-height: 1.33;
        padding-left: 30px;
        position: relative;
        margin-bottom: var(--spacing-xs);

        &:last-child {
            margin-bottom: 0;
        }

        /* Green checkmark icon */
        &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 2px;
            width: 20px;
            height: 20px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231AA288'%3E%3Cpath d='M13.5 2.5L6 10l-3.5-3.5L1 8l5 5 9-9z'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
        }
    }

    /* Hide checkbox for items with images and center the image */
    li.has-image {
        padding-left: 0 !important;
        text-align: center;

        img {
            display: block;
            margin: 20px auto 0;
            max-width: 100%;
            height: auto;
        }
    }

    li.has-image::before {
        display: none !important;
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 991px) {
    .text-with-list-sidebar {
        padding: var(--spacing-md) 0;
    }

    .text-with-list-sidebar__callout {
        padding: var(--spacing-sm);

        p {
            font-size: var(--text-lg);
        }
    }
}

@media screen and (max-width: 576px) {
    .text-with-list-sidebar__heading,
    .text-with-list-sidebar__list-heading {
        font-size: 2rem;
    }

    .text-with-list-sidebar__paragraph,
    .text-with-list-sidebar__list li {
        font-size: var(--text-base);
    }
}
