/* Hamburger Menu Block Styles */

.hamburger-menu-block {
    position: relative;
}

/* Hamburger Button */
.hamburger-button {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 5px;
    position: relative;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    margin: 0 auto;
}

.hamburger-line {
    display: block;
    width: 100%;
    height:2px;
    background-color: #fff;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
    border-radius: 3px;
}

.hamburger-line:nth-child(1) {
    top: 0;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 0;
}

/* Active state animations - X icon */
.hamburger-button[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-button[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-button[aria-expanded="true"] .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Content Area */
.hamburger-content {
    display: block; /* Always visible on desktop */
}

.hamburger-content > * {
    margin-bottom: 0.5rem;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Styles */
@media (max-width: 991px) {
    
    .hamburger-menu-block {
        top: 0;
        left: 0;
        width: 100vw;
    }
    
    .penske-nav{
     flex-direction: column !important;   
     padding: 0 !important;
     left: 40px !important;
     gap: 10px !important;
     padding-bottom: 10px !important;
    }
    
    .penske-nav p{
        text-align: left !important;
        width: auto;
        width: 100%;
        padding: 10px;
        border: none !important;
    }
    
    .penske-nav p a{
        text-decoration: none;
    }
    
    .penske-nav p a:hover{
        text-decoration: underline;
    }
    
    .hamburger-button {
        display: block;
        position: fixed;
        top: 32px;
        right: 10px;
    }
    
    .hamburger-content {
        display: none;
        position: absolute;
        top: 100%;
        width: 100%;
        right: 0;
        background: #002496;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding: 0;
        z-index: 1000;
        margin-top: 10px;
    }
    
    .hamburger-content.open {
        display: block;
    }
    
    .hamburger-content > * {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .hamburger-content > *:last-child {
        border-bottom: none;
    }
}

/* Editor Preview Styles */
.editor-styles-wrapper .hamburger-button {
    display: block; /* Show in editor for preview */
}

.editor-styles-wrapper .hamburger-content {
    background: #f5f5f5;
    padding: 1rem;
    margin-top: 10px;
    border: 1px dashed #ccc;
}