/**
 * ABSOLUTE NO BORDER FOR CUSTOM SECTIONS WITHOUT TITLE
 * This must override EVERYTHING
 */

/* NUCLEAR OPTION - Remove ALL possible borders/shadows when no title */
html body .homepage-section.custom-section .stat-box:not(:has(.stat-box-header)),
html body .homepage-section.custom-section .stat-box:not(:has(.stat-box-header)) *,
html body .custom-section .stat-box:not(:has(.stat-box-header)),
html body .custom-section .stat-box:not(:has(.stat-box-header)) * {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    text-shadow: none !important;
}

/* Remove ALL backgrounds when no title */
html body .homepage-section.custom-section .stat-box:not(:has(.stat-box-header)) .posts-list-icon,
html body .homepage-section.custom-section .stat-box:not(:has(.stat-box-header)) .custom-content,
html body .homepage-section.custom-section .stat-box:not(:has(.stat-box-header)) .shortcode-content,
html body .custom-section .stat-box:not(:has(.stat-box-header)) .posts-list-icon,
html body .custom-section .stat-box:not(:has(.stat-box-header)) .custom-content,
html body .custom-section .stat-box:not(:has(.stat-box-header)) .shortcode-content {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Override any possible section-fix.css rules */
html body .homepage-section.custom-section:not(:has(.stat-box-header)) {
    box-shadow: none !important;
    border: none !important;
}

/* Override hide-headers-and-borders.css */
html body .homepage-section.custom-section {
    /* Keep the 2px spacing but no borders */
    margin-bottom: 2px !important;
}

/* When custom section has no header, ensure clean display */
html body .homepage-section.custom-section:not(:has(.stat-box-header)) .stat-box,
html body .custom-section:not(:has(.stat-box-header)) .stat-box {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Override mobile-responsive.css stat-box styles */
@media all {
    html body .custom-section .stat-box:not(:has(.stat-box-header)) {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Force transparent on all inner elements */
html body .custom-section .stat-box:not(:has(.stat-box-header)) .stat-box-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove any ::before or ::after pseudo elements that might add borders */
html body .custom-section .stat-box:not(:has(.stat-box-header))::before,
html body .custom-section .stat-box:not(:has(.stat-box-header))::after,
html body .custom-section .stat-box:not(:has(.stat-box-header)) *::before,
html body .custom-section .stat-box:not(:has(.stat-box-header)) *::after {
    display: none !important;
    content: none !important;
}