/* Nexlotech Page Builder - Global Utilities */

/* --- Padding Overrides (Important to beat theme resets) --- */
.nexlotech-pt-none {
    padding-top: 0 !important;
}

.nexlotech-pt-sm {
    padding-top: 2rem !important;
}

.nexlotech-pt-md {
    padding-top: 4rem !important;
}

.nexlotech-pt-lg {
    padding-top: 6rem !important;
}

.nexlotech-pt-xl {
    padding-top: 8rem !important;
}

.nexlotech-pt-xxl {
    padding-top: 10rem !important;
}

.nexlotech-pb-none {
    padding-bottom: 0 !important;
}

.nexlotech-pb-sm {
    padding-bottom: 2rem !important;
}

.nexlotech-pb-md {
    padding-bottom: 4rem !important;
}

.nexlotech-pb-lg {
    padding-bottom: 6rem !important;
}

.nexlotech-pb-xl {
    padding-bottom: 8rem !important;
}

.nexlotech-pb-xxl {
    padding-bottom: 10rem !important;
}

/* --- Background Utilities --- */
/* Usage: Set --section-bg-color on the element */
.nexlotech-bg-color {
    background-color: var(--section-bg-color, transparent) !important;
}

.nexlotech-bg-gradient {
    background: var(--section-bg-gradient, none) !important;
}

.nexlotech-bg-image {
    background-image: var(--section-bg-image) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Overlay Utilities --- */
/* Usage: Set --overlay-color and --overlay-opacity on the parent element */
/* And add class .nexlotech-has-overlay */
.nexlotech-has-overlay {
    position: relative;
    z-index: 1;
    /* Establish stacking context */
}

.nexlotech-has-overlay::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* Fallback */
    background-color: var(--overlay-color, #000) !important;
    opacity: var(--overlay-opacity, 0.5) !important;
    z-index: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
    display: block !important;
}

/* Ensure content is above overlay */
.nexlotech-has-overlay>.container,
.nexlotech-has-overlay>.container-fluid,
.nexlotech-has-overlay>.section__inner {
    position: relative;
    z-index: 2;
}

/* --- Image Utilities --- */
.nexlotech-img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.nexlotech-pointer-none {
    pointer-events: none;
}

.nexlotech-z-0 {
    z-index: 0;
}