/* Mobile Navigation Styles */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999999;
}

.mobile-nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100%;
    background: #fff;
    transition: right 0.3s ease;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.mobile-nav-wrapper.is-active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    padding: 15px 16px;
}

.mobile-nav-left {
    flex: 1;
}

.mobile-nav-right {
    width: 40px;
    display: flex;
    justify-content: flex-end;
}

.mobile-back-button,
.mobile-close-button {
    background: none !important;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cc-dark-blue);
}

.mobile-back-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mobile-close-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.mobile-back-button:hover, .mobile-back-button:focus, .mobile-back-button:active {
    background: none !important;
}
.mobile-nav-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-wrapper .mobile-nav-container .mobile-nav > li > a,
.mobile-nav-wrapper .mobile-nav > li > a {
    color: var(--cc-dark-blue) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    line-height: 1.2 !important;
}
.mobile-nav-wrapper .mobile-nav-container .mobile-nav > li > a > span,
.mobile-nav-wrapper .mobile-nav > li > a > span {
    color: var(--cc-dark-blue) !important;
    font-size: 24px !important;
}

.mobile-nav-wrapper .mobile-submenu-panel .mobile-submenu a,
.mobile-nav-wrapper .mobile-submenu a {
    color: var(--cc-dark-blue) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 17px !important;
    line-height: 1.4 !important;
}

.mobile-nav-wrapper .mobile-submenu-panel .mobile-submenu a > span,
.mobile-nav-wrapper .mobile-submenu a > span {
    font-size: 17px !important;
}


.mobile-nav .menu-item-text {
    flex: 1;
}

.mobile-nav > li.purple-squiggle > a {
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
    align-items: flex-start !important;
}

.mobile-nav > li.purple-squiggle > a > span {
    text-align: left !important;
}

.mobile-nav > li.purple-squiggle > a::after {
    content: '';
    display: block;
    margin-top: 10px;
    width: 100%;
    height: 16px;
    background-image: url(../images/purple-squiggle-line.svg);
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
}

.mobile-nav .submenu-arrow {
    margin-left: 10px;
    fill: currentColor;
    flex-shrink: 0;
}

.mobile-menu-trigger {
    background: none !important;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cc-dark-blue);
    margin: 0 0 0 auto;
}

.mobile-menu-trigger:hover,
.mobile-menu-trigger:focus,
.mobile-menu-trigger:active {
    background: none !important;
    border: none !important;
}

.mobile-menu-trigger svg {
    fill: currentColor;
}

/* Submenu styles */
.mobile-nav-wrapper {
    display: flex;
    flex-direction: column;
}

.mobile-nav-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.mobile-submenu-panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: transform 0.3s ease, visibility 0s 0.3s;
    transform: translateX(0);
    visibility: hidden;
    padding: 20px 28px;
    overflow-y: auto;
}

.mobile-submenu-panel.is-active {
    transform: translateX(-100%);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
}

.mobile-submenu-panel.is-leaving {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s 0.3s;
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: 20px 28px;
    text-align: left;
}

.mobile-nav-footer-content {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--cc-dark-blue);
}

.mobile-nav-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--cc-dark-blue);
    color: #fff !important;
    text-decoration: none;
    border-radius: 18px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.mobile-nav-button:hover {
    opacity: 0.9;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}
