.why-maestra-item
{
    --bg-light: var(--ncs-container-weak);
    --bg-dark: var(--ncs-container-strong);
    --text-dark: var(--text);
    --text-light: var(--text);
    --icon-dark: var(--bg-dark);
    border-radius: var(--border-radius-small);
    align-self: stretch;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: translateY(3rem);
    opacity: 0;
    will-change: transform, opacity;

    .why.why-maestra.scroll-intersecting &
    {
        transform: translateY(0);
        opacity: 1;
    }

    &:nth-child(2)
    {
        transition-delay: 0.2s;
    }

    &:nth-child(3)
    {
        transition-delay: 0.4s;
    }

    &:nth-child(4)
    {
        transition-delay: 0.6s;
    }

    @media (prefers-reduced-motion: reduce) {
        transition: transform 0.1s ease-out, opacity 0.1s ease-out;
        transform: translateY(0);
        
        .why.why-maestra.scroll-intersecting & {
            transform: translateY(0);
            opacity: 1;
        }
        
        &:nth-child(n) {
            transition-delay: 0s;
        }
    }

    .why-maestra-item-inner
    {
        display: flex;
        flex-direction: column;
        border-radius: inherit;
        overflow: hidden;
        background-color: var(--bg-dark);
        border: none;
        box-shadow: 0px 0px 0px 0px var(--bg-dark);
        transition: 0.25s ease-in-out;
        width: 100%;
        height: 100%;

        :hover > &
        {
            box-shadow: 0px 6px 0px 0px var(--bg-dark);
            transform: translateY(-6px);
        }

        .why-maestra-item-title
        {
            color: var(--text-dark);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1em;

            .why-title {
                font-size: var(--font-md);
            }

            h3
            {
                color: var(--text-dark);
                text-wrap: nowrap;

                @media (max-width: 1360px)
                {
                    text-wrap: unset;
                }
            }

            .why-maestra-item-icon
            {
                width: 2em;
                height: 2em;
                border-radius: 0.5rem;
                background-color: none;
                display: flex;
                align-items: center;
                justify-content: center;
                order: 1;

                & > img
                {
                    display: none;
                }

                &::before
                {
                    content: '';
                    display: block;
                    mask-image: var(--icon);
                    background-color: var(--text-dark);
                    mask-size: 100%;
                    mask-repeat: no-repeat;
                    mask-position: center;
                    width: 100%;
                    height: 100%;
                }

                &.svg-icon
                {
                    width: auto;
                    height: auto;
                    
                    &::before
                    {
                        display: none;
                    }
                    
                    svg
                    {
                        width: 36px;
                        height: 36px;
                        display: block;
                    }
                }
            }
        }

        .why-maestra-item-description
        {
            background-color: var(--bg-light);
            color: var(--text-faded);
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            font-size: var(--font-sm);
            
            .cta-button {
                margin-top: 1.5rem;
                width: fit-content;
                align-self: center;
                text-decoration: none;
                font-family: "Plus Jakarta Sans", sans-serif;
                font-weight: 700;
                font-size: var(--font-md);
                border: none;
                padding: 0.5rem 1.5rem;
                height: 2.5em;
                cursor: pointer;
                border-radius: var(--button-border-radius);
                display: flex;
                align-items: center;
                position: relative;
            }
            
        }
    }
    
    .cta-button {
        background: var(--maestra-blue);
        color: var(--background);
    }
    
    /* Hover effects for CTA buttons */
    .cta-button:hover {
        box-shadow: 0 0 0 8px color-mix(in srgb, var(--maestra-blue) 25%, transparent);
    }
}
