/* ==========================================================================
   NCQ GLOBAL PORTAL UNIFIED DESIGN SYSTEM
   ========================================================================== */

/* Apply premium dark canvas background & default crisp type site-wide */
body, html, .wp-site-blocks {
    background-color: #0b0e14 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 47, 108, 0.2) 0px, transparent 60%),
        radial-gradient(at 100% 0%, rgba(239, 43, 45, 0.12) 0px, transparent 50%) !important;
    color: #f8fafc !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Force standard inner page headers, paragraph blocks, and containers to follow suit */
p, li, label, figcaption {
    color: #cbd5e1 !important;
    line-height: 1.75 !important;
}

h1, h2, h3, h4, h5, h6, .wp-block-site-title a {
    color: #ffffff !important;
    letter-spacing: -0.02em;
}

/* Fix default theme pages from forcing blinding white backgrounds on sections */
.wp-block-group, .entry-content, .type-page, .post-template-default {
    background-color: transparent !important;
}

/* Clean up hyperlink accents globally */
a {
    color: #ef2b2d;
    transition: color 0.15s ease;
}
a:hover {
    color: #ffffff;
}

/* Global button styles to unify standard Gutenberg blocks */
.wp-block-button__link {
    background-color: #ef2b2d !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border: none !important;
}
/* ==========================================================================
   SLIMLINE NAVIGATION & GAP MITIGATION
   ========================================================================== */

/* Force eliminate empty spacer heights and grouping dead zones at header root */
.wp-block-group-is-layout-constrained > .wp-block-spacer,
.wp-block-spacer[style*="--wp--preset--spacing--50"],
.wp-block-spacer[style*="--wp--preset--spacing--30"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
}

/* Redesign Header Bar into a Premium Slim Translucent Bar */
.wp-block-group.alignwide.has-base-background-color {
    background: rgba(11, 14, 20, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Site Title Typography Styling */
.wp-block-site-title a {
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    text-decoration: none !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(120deg, #ffffff 60%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Horizontal Link Menu Styling */
.wp-block-navigation__container .wp-block-navigation-item__content {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 6px 14px !important;
    transition: all 0.2s ease !important;
}

.wp-block-navigation__container .wp-block-navigation-item__content:hover {
    color: #ef2b2d !important;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

/* Ensure mobile navigation slide-outs match dark color scheme format */
.wp-block-navigation__responsive-container-content {
    background-color: #0b0e14 !important;
}
.wp-block-navigation__responsive-container-open svg {
    fill: #ffffff !important;
}
