/*
Theme Name:        BlogHash Child
Theme URI:         https://wp-themes.com/bloghash/
Description:       Child theme for the BlogHash WordPress theme.
Author:            Your Name
Author URI:        https://example.com
Template:          bloghash
Version:           1.0.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       bloghash-child
*/

/* =============================================
   Custom Homepage - WordPress Menu Compatibility
   ============================================= */

/* Primary navigation menu reset */
.custom-homepage .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.custom-homepage .nav-menu .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Primary navigation: map WP menu items to .nav-link styles */
.custom-homepage .navigation .menu-item a {
    display: inline-block;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #07172f;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.custom-homepage .navigation .menu-item a:hover,
.custom-homepage .navigation .menu-item.current-menu-item > a,
.custom-homepage .navigation .menu-item.current_page_item > a {
    color: #1976d2;
}

.custom-homepage .navigation .menu-item.current-menu-item > a::after,
.custom-homepage .navigation .menu-item.current_page_item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #1976d2;
    border-radius: 2px;
}

/* Sidebar navigation menu reset */
.custom-homepage .sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    overflow-y: auto;
}

.custom-homepage .sidebar-menu .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Sidebar navigation: map WP menu items to .sidebar-link styles */
.custom-homepage .sidebar-nav .menu-item a {
    display: block;
    padding: 14px 24px;
    color: #07172f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.custom-homepage .sidebar-nav .menu-item a:hover,
.custom-homepage .sidebar-nav .menu-item.current-menu-item > a,
.custom-homepage .sidebar-nav .menu-item.current_page_item > a {
    background: #f7fbff;
    color: #1976d2;
    border-left-color: #1976d2;
}

/* Sidebar dropdown: WP menu item compatibility */
.custom-homepage .sidebar-nav .sidebar-dropdown > a,
.custom-homepage .sidebar-nav .sidebar-dropdown > .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 20px;
}

.custom-homepage .sidebar-nav .sidebar-dropdown .sidebar-dropdown-content a {
    display: block;
    padding: 6px 0;
    color: #536276;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: none;
}

.custom-homepage .sidebar-nav .sidebar-dropdown .sidebar-dropdown-content a:hover {
    color: #1976d2;
    transform: translateX(5px);
}

/* Desktop nav: exclude .nav-link items from megamenu hover (static HTML only) */
.custom-homepage .navigation .nav-menu > .menu-item > a {
    display: inline-block;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #07172f;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.custom-homepage .navigation .nav-menu > .menu-item > a:hover {
    color: #1976d2;
}

/* Back to top button visibility */
.safikul-back-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.safikul-back-top.visible {
    opacity: 1;
    visibility: visible;
}
