/**
 * Background Boxes Widget Styles
 */

.wml-background-boxes {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #0f172a;
}

/* Overlay with radial gradient mask */
.wml-bb-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    z-index: 20;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, transparent 0%, white 100%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 0%, white 100%);
}

/* Boxes container */
.wml-bb-boxes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Individual box */
.wml-bb-box {
    position: absolute;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
}

/* Content */
.wml-bb-content {
    position: relative;
    z-index: 30;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.wml-bb-heading {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.wml-bb-description {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: #d4d4d8;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .wml-background-boxes {
        min-height: 300px;
    }

    .wml-bb-content {
        padding: 1.5rem;
    }
}

/* Hover animation for boxes */
@keyframes wml-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}