/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* Custom margins for category and single post pages */
body.category .content_wrapper,
body.single .content_wrapper {
    padding-left: 12% !important;
    padding-right: 12% !important;
    box-sizing: border-box;
}

/* Smart Sticky Header */
.smart-header-target {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 201; /* Ensure it's above other elements */
    transition: transform 0.3s ease-in-out !important; /* Force transition */
    background-color: #fff; /* Ensure background is solid */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: add shadow */
}

/* Adjust for Admin Bar */
body.admin-bar .smart-header-target {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .smart-header-target {
        top: 46px !important;
    }
}

.smart-header-target.nav-up {
    transform: translateY(-100%) !important;
}

.smart-header-target.nav-down {
    transform: translateY(0) !important;
}

/* Placeholder for fixed header */
.header_placeholder {
    display: block;
    width: 100%;
    /* Ensure placeholder takes up space but is invisible */
    visibility: hidden; 
}
