/* ==========================================================================
   Avada Particles — Overlay & Layout Styles
   ========================================================================== */

/* ── Mode A: Fixed-Height Block ────────────────────────────────────── */
.avada-particles-block {
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ── Particles Overlay (shared by both modes) ─────────────────────── */
.avada-particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;   /* Content behind/in-front stays clickable */
    z-index: 0;             /* Default: behind content                 */
    overflow: hidden;
}

/* Ensure the canvas created by particles.js fills the overlay */
.avada-particles-overlay canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ── Z-index Modes ────────────────────────────────────────────────── */

/* Behind content (default) — overlay behind, content in front */
.avada-particles-overlay.zindex-behind {
    z-index: 0;
}

/* Above content — overlay on top (pointer-events stay none) */
.avada-particles-overlay.zindex-above {
    z-index: 10;
}

/* ── Content Layer (Mode A) ───────────────────────────────────────── */
.avada-particles-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* ── Mode B Anchor ────────────────────────────────────────────────── */
/* The anchor element is invisible; its only purpose is to carry
   data-attributes that the JS scanner reads.                        */
.avada-particles-anchor {
    display: none !important;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ── Avada Live Builder Preview Helpers ────────────────────────────── */
/* In the builder the anchor needs a tiny visible footprint so users
   can select it. The builder adds `fusion-builder-live-element`.    */
.fusion-builder-live .avada-particles-anchor {
    display: block !important;
    width: 100%;
    height: 24px;
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,.03),
        rgba(0,0,0,.03) 10px,
        transparent 10px,
        transparent 20px
    );
    border: 1px dashed rgba(0,0,0,.15);
    border-radius: 3px;
    font-size: 11px;
    line-height: 24px;
    text-align: center;
    color: rgba(0,0,0,.4);
    overflow: visible;
}
.fusion-builder-live .avada-particles-anchor::after {
    content: 'Particles (Background Mode)';
}
