.jonathan-mcb-grid {
    --columns: 3;
    --box-border-width: 1px;
    --box-border-color: #dddddd;
    --box-border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 32px;
    padding: 0;
}

.jonathan-mcb-grid.no-border {
    --box-border-width: 0;
    --box-border-color: transparent;
}

.jonathan-mcb-box {
    background: #ffffff;
    border: var(--box-border-width, 1px) solid var(--box-border-color, #dddddd);
    border-radius: var(--box-border-radius, 10px);
    padding: 24px;
    box-shadow: 0 12px 24px rgba(0, 24, 64, 0.06);
    color: #333333;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jonathan-mcb-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 24, 64, 0.1);
}

.jonathan-mcb-box-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.jonathan-mcb-box-title {
    margin: 0;
    font-size: 1.35rem;
    color: #003366;
}

.jonathan-mcb-box-icon {
    font-size: 2.5rem;
    color: #003366;
    line-height: 1;
    margin-bottom: 8px;
}

.jonathan-mcb-box-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

.jonathan-mcb-box-cta {
    margin-top: auto;
}

.jonathan-mcb-button {
    display: inline-block;
    background-color: #0991d4;
    color: #ffffff;
    padding: 12px 25px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.jonathan-mcb-button:hover,
.jonathan-mcb-button:focus {
    background-color: #077db5;
    color: #ffffff;
    text-decoration: none;
}

.template-minimal .jonathan-mcb-box {
    --box-border-width: 0;
    --box-border-color: transparent;
    box-shadow: none;
    background: #f6f8fb;
}

.template-minimal .jonathan-mcb-box:hover {
    transform: none;
    box-shadow: none;
}

.template-minimal .jonathan-mcb-box-image {
    display: none;
}

.template-contrast .jonathan-mcb-box {
    --box-border-width: 2px;
    --box-border-color: #003366;
    background: #f0f7ff;
}

.template-contrast .jonathan-mcb-box-title {
    color: #003366;
}

.template-contrast .jonathan-mcb-button {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .jonathan-mcb-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 640px) {
    .jonathan-mcb-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;
    }

    .jonathan-mcb-box {
        padding: 20px;
    }
}
