/*
Theme Name: CHACHA
Author: CHACHA Communications
Description: CHACHA Full Site Editing and Gutenberg Theme
Version: 1.0.0
Requires at least: 5.9.3
Tested up to: 5.9.3
Requires PHP: 7.4.29
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: full-site-editing
Text Domain: fse
*/

.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(4), .wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(5), .wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(6), .wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(7){
    padding: 10px 15px;
    margin-left: 24px;
}
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(4) a{
    margin-left: 0;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item:nth-of-type(4), .wp-block-navigation__submenu-container .wp-block-navigation-item:nth-of-type(5), .wp-block-navigation__submenu-container .wp-block-navigation-item:nth-of-type(6), .wp-block-navigation__submenu-container .wp-block-navigation-item:nth-of-type(7){
    padding: 0 0!important;
    margin-left: 0!important;
    background: transparent!important;
}

/* Reset margin-left on last nav item's content and all submenu items' content */
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:last-child>.wp-block-navigation-item__content,
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    margin-left: 0 !important;
}

/* ── Reset button style from items 4-6, keep only last item as button ── */
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(4):not(:last-child),
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(5):not(:last-child),
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(6):not(:last-child) {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
}

.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation>.wp-block-navigation__container>.wp-block-navigation-item:nth-of-type(4):not(:last-child)>.wp-block-navigation-item__content,
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation>.wp-block-navigation__container>.wp-block-navigation-item:nth-of-type(5):not(:last-child)>.wp-block-navigation-item__content,
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation>.wp-block-navigation__container>.wp-block-navigation-item:nth-of-type(6):not(:last-child)>.wp-block-navigation-item__content {
    margin-left: 24px !important;
}

.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(4):not(:last-child) .wp-block-navigation-item__content span,
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(5):not(:last-child) .wp-block-navigation-item__content span,
.wp-block-chacha-gutenberg-header .container-header>.wp-block-navigation .wp-block-navigation-item:nth-of-type(6):not(:last-child) .wp-block-navigation-item__content span {
    color: inherit !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* ── menu-large submenu overrides ───────────────────────── */

/* Align submenu to the right so it never overflows the viewport */
nav.menu-large .wp-block-navigation__submenu-container {
    left: auto !important;
    right: 0 !important;
    min-width: 220px;
    background: #172C40 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 8px 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
}

nav.menu-large .wp-block-navigation__submenu-container .wp-block-navigation-item {
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

nav.menu-large .wp-block-navigation__submenu-container .wp-block-navigation-item:last-child {
    border-bottom: none !important;
}

nav.menu-large .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    color: #fff !important;
    padding: 10px 20px !important;
    display: block !important;
    white-space: nowrap !important;
    text-align: left !important;
    transition: color 0.15s, background 0.15s !important;
    border-left: 3px solid transparent !important;
}

nav.menu-large .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    color: #D6A32B !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-left-color: #D6A32B !important;
}

/* Make the parent item row flex so button sits inline with the label */
nav.menu-large .wp-block-navigation-submenu {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

/* Style the chevron toggle button to look like part of the link */
nav.menu-large .wp-block-navigation__submenu-icon {
    background: none !important;
    border: none !important;
    padding: 2px 0 0 4px !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
}

nav.menu-large .wp-block-navigation__submenu-icon svg {
    display: block;
}

nav.menu-large .wp-block-navigation__container > .wp-block-navigation-submenu:last-child .wp-block-navigation__submenu-icon svg path {
    stroke: #fff !important;
}


.menu-item-red{
    color: #E10805 !important;
}
.menu-item-red:hover{
    color: #E10805 !important;
    opacity: 0.75;
}