/* External Resource Callout Component - Scoped Styles */
.external-resource-callout-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-white);
    z-index: 2;

    .external-resource-callout-container {
        position: relative;
        width: 100%;
        max-width: 1550px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        min-height: 600px;
    }

    .external-resource-main-image {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-60%);
        width: 990px;
        height: 100%;
        margin: 0;
        z-index: 1;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }

    .external-resource-content-column {
        position: absolute;
        z-index: 2;
        margin-left: auto;
        width: 75%;
        padding: 40px 0 0 40%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .external-resource-copy {
        font-size: var(--font-size-body);
        line-height: var(--font-lh-body);
        color: var(--color-white);
        margin: 0 0 30px;
        font-weight: 600;
        text-align: left;
    }

    .external-resource-button-container {
        margin: 0 0 60px;
    }

    .external-resource-button {
        .wp-block-button__link {
            background-color: var(--color-yellow);
            color: var(--color-nav-gray);
            font-size: var(--font-size-button-primary);
            line-height: var(--font-lh-button-primary);
            font-weight: 600;
            text-decoration: none;
            border: 2px solid var(--color-yellow);
            border-radius: 20px;
            padding: 8px 25px;
            transition: all 0.3s ease;

            &:hover {
                background-color: var(--color-nav-gray);
                color: var(--color-yellow);
            }
        }
    }

    .external-resource-footnote {
        font-size: var(--font-size-external-resource-footnote);
        line-height: var(--font-lh-external-resource-footnote);
        color: var(--color-nav-gray);
        margin: 0;
        text-align: left;
    }

    .external-resource-mobile-image {
        display: none; /* Hidden by default */
    }

    /* Responsive Design */
    @media screen and (max-width: 1366px) {
        .external-resource-content-column {
            width: 82%;
            padding-left: 38%;
        }
    }

    @media screen and (max-width: 1024px) {
        .external-resource-content-column {
            width: 85%;
            padding-left: 35%;
        }
    }

    @media screen and (max-width: 768px) {
        min-height: auto;
        padding: 170px 0 50px;

        .external-resource-callout-container {
            min-height: auto;
            flex-direction: column;
            gap: 30px;
        }

        .external-resource-main-image {
            display: none; /* Hide desktop image */
        }

        .external-resource-mobile-image {
            display: block; /* Show mobile image */
            position: absolute;
            width: 200%;
            max-width: 500px;
            margin: 0 auto;
            z-index: 3;
            top: -220px;
            left: 50%;
            transform: translateX(-42%);

            img {
                width: 100%;
                height: auto;
            }
        }

        .external-resource-content-column {
            position: relative;
            width: 100%;
            padding: 200px 0 30px;
            align-items: center;
            text-align: center;
            background-color: var(--color-nav-gray);
        }

        .external-resource-copy {
            text-align: center;
            max-width: 500px;
            margin: 0 auto 30px;
            padding: 0 40px;
            font-size: 1.8rem;
            line-height: 2.6rem;
        }

        .external-resource-button-container {
            margin: 0 0 30px;
        }

        .external-resource-footnote {
            text-align: center;
            margin: 0 40px;
            padding: 20px 0;
            color: var(--color-white);
            font-size: 1.2rem;
            line-height: 1.6rem;
        }
    }
} 