/* Home */
.home-container {
    max-width: 1440px;

    a {
        text-decoration: none;
    }

    margin: 67px auto 0 !important;
    padding: 0 20px;

    .home-row {
        justify-content: space-between;
        align-items: center;
        gap: 138px;

        h1 {
            flex: 3;
            position: relative;
            color: var(--black);

            &::before {
                content: '';
                display: inline-block;
                margin: 10px 11px 0 0 !important;
                width: 16px;
                height: 14px;
                vertical-align: top;
                background-color: currentColor;
                -webkit-mask-image: url("/wp-content/uploads/2025/12/1.svg");
                mask-image: url("/wp-content/uploads/2025/12/1.svg");
                -webkit-mask-size: contain;
                mask-size: contain;
                -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
                -webkit-mask-position: center;
                mask-position: center;
            }
        }

        .home-body {
            gap: 22.4px;
            flex: 1;
        }
    }

    .modules-grid {
        margin: 40px 0 18px;
        gap: 20px;
        grid-template-columns: repeat(4, 1fr);
        width: 100% !important;
        max-width: 100% !important;
        justify-content: stretch !important;

        .module {
            position: relative;
            height: 380px;
            width: 100%;
            max-width: 100%;
            padding: 16px 46px 16px 16px;
            gap: 8px;

            &::after {
                content: "";
                position: absolute;
                right: 18px;
                bottom: 24px;
                width: 32px;
                height: 32px;
                background: url("/wp-content/uploads/2026/02/arrow.svg") center no-repeat;
                background-size: contain;
                opacity: 0;
                transition: opacity 0.2s ease;
            }

            &:hover::after {
                opacity: 1;
            }

            &:hover p.xxsmall {
                background-color: #FFFFFF;
            }

            p.xxsmall {
                background-color: rgba(255, 255, 255, 0.5);
                color: var(--black) !important;
                padding: 3px 8px;
                border-radius: 30px;
                font-weight: 300;
                transition: background-color 0.2s ease;
            }

            h5 a {
                text-decoration: none;
            }

            p.small {
                color: var(--black) !important;
                margin-top: auto;
                max-width: 90%;
            }
        }
    }
}

.wp-block-group.module {
    background-size: 150% !important;
}

.border-top {
    border-top: 1px solid #d1d1d1 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .home-container {
        margin-top: 32px !important;
        padding: 0 15px;

        .modules-grid {
            grid-template-columns: 1fr 1fr !important;
        }
    }
}

@media (max-width: 650px) {
    .home-container {
        margin-top: 32px !important;
        padding: 0 16px;

        .home-row {
            flex-direction: column;
            gap: 24px;
        }

        .home-row h1::before {
            content: '' !important;
            display: inline-block !important;
            vertical-align: top;
            margin: 10px 11px 0 0 !important;
            width: 16px;
            height: 14px;
            min-width: 16px;
            min-height: 14px;
            background-color: currentColor;
            -webkit-mask-image: url("/wp-content/uploads/2025/12/1.svg");
            mask-image: url("/wp-content/uploads/2025/12/1.svg");
            -webkit-mask-size: contain;
            mask-size: contain;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
            -webkit-mask-position: center;
            mask-position: center;
        }

        .modules-grid {
            grid-template-columns: 1fr !important;
            justify-items: center;
            margin: 40px 0 32px;

            .module {
                width: 100% !important;
                height: 410px;
                padding: 16px 73px 16px 16px;
            }
        }
    }
}