/*
Theme Name: Monika Memorial
Theme URI: https://soaringnature.com/
Description: Custom Divi 5 child theme created for the life, poetry and memory of Monika Rana.
Author: OrreryHIM
Author URI: https://orreryhim.com/
Template: Divi
Version: 1.0.0
Text Domain: monika-memorial
*/

/*
Add website-wide custom CSS below this line.
*/
/* =========================================================
   SOARING NATURE — FORCE GLOBAL HEADER ABOVE PAGE BODY
========================================================= */

html,
body {
    overflow-x: clip;
}

/* =========================================================
   SOARING NATURE GLOBAL HEADER — ADMIN BAR SAFE
========================================================= */

body .et-l--header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;

    /* High enough for page content, but below WP admin bar */
    z-index: 99990 !important;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

/* When logged in, move header below WordPress toolbar */
body.admin-bar .et-l--header {
    top: 32px !important;
}

/* WordPress mobile admin bar height */
@media screen and (max-width: 782px) {
    body.admin-bar .et-l--header {
        top: 46px !important;
    }
}

/* Keep Divi header wrappers visible */
body .et-l--header,
body .et-l--header .et_builder_inner_content,
body .et-l--header .et_pb_section,
body .et-l--header .et_pb_row,
body .et-l--header .et_pb_column,
body .et-l--header .et_pb_code,
body .et-l--header .et_pb_code_inner {
    overflow: visible !important;
    transform: none !important;
    filter: none !important;
    isolation: auto !important;
}

/* Floating custom navigation inside the fixed Divi header */
body .et-l--header .sn-global-header {
    position: relative !important;
    top: 18px !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Keep page content below the global header */
body .et-l--body,
body #et-main-area,
body #main-content,
body .sn-home {
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure WordPress admin toolbar remains above everything */
body #wpadminbar {
    position: fixed !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
}