/*
Theme Name: farwild-little-hannah
Theme URI: https://farwild.co/themes
Description: A child theme of Twenty Twenty-Four.
Author: Farwild
Author URI: https://farwild.co
Template: twentytwentyfour
Version: 1.0.0
Text Domain: twentytwentyfour-child
*/

/* Import parent theme styles */
@import url('https://littlehannah.net/wp-content/themes/twentytwentyfour/style.css');

/* _________________________________________________________________*/

/* PRIMARY MENU - MAIN NAVIGATION */

.main-navigation .menu {
    /* Menu list styling */
    list-style: none;
    display: flex;
    gap: 20px; /* Space between menu items */
    margin: 0;
    padding: 0;
}

.main-navigation .menu li {
    /* Individual menu item styling */
    display: inline-block;
    position: relative; /* For dropdown positioning */
}

.main-navigation .menu a {
    /* Menu link styling */
    text-decoration: none;
    color: #333; /* Default text color */
    font-weight: bold;
    font-size: 20px; /* Base font size */
    padding: 10px 15px; /* Add padding for clickable area */
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth hover effect */
}

.main-navigation .menu a:hover {
    /* Hover effect */
    color: #0073e6; /* Highlight color on hover */
    background-color: #f0f0f0; /* Optional: Add a background on hover */
    border-radius: 5px; /* Optional: Rounded edges on hover */
}

/* Responsive Menu Adjustments */
.main-navigation .menu {
    flex-wrap: wrap; /* Allow items to wrap on small screens */
}

.main-navigation .menu li {
    /* Adjust menu items for smaller screens */
    flex-grow: 1; /* Spread items evenly if needed */
}

/* Dropdown Menu Styling */
.main-navigation .menu li ul {
    /* Dropdown container */
    display: none; /* Hide dropdown by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for dropdown */
    z-index: 1000;
    border-radius: 5px; /* Optional: Rounded corners */
}

.main-navigation .menu li:hover ul {
    /* Show dropdown on hover */
    display: block;
}

.main-navigation .menu li ul li {
    /* Dropdown menu item */
    padding: 5px 15px;
}

.main-navigation .menu li ul li a {
    /* Dropdown link */
    color: #333;
    padding: 5px 10px;
    white-space: nowrap; /* Prevent text from wrapping */
}

.main-navigation .menu li ul li a:hover {
    /* Dropdown hover effect */
    color: #0073e6;
    background-color: #f9f9f9;
}

/* Mobile Menu Button (if needed) */
.main-navigation .menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-navigation {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation .menu {
        display: none; /* Hide menu on smaller screens */
        flex-direction: column;
        width: 100%; /* Full width menu */
    }

    .main-navigation .menu li {
        width: 100%;
    }

    .main-navigation .menu a {
        display: block;
        padding: 15px;
    }

    .main-navigation .menu-toggle {
        display: block; /* Show toggle button */
    }

    .main-navigation.menu-open .menu {
        display: flex; /* Show menu when toggle is active */
    }
}

/* _________________________________________________________________*/