/* Wrapper to handle editor vs frontend smoothly */
.ocm-de97ae37-trigger {
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.3s;
}
.ocm-de97ae37-trigger:hover {
    opacity: 0.8;
}

/* Fixed Overlay - Glassmorphism style */
.ocm-de97ae37-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background-color: rgba(26, 26, 26, 0.4); /* High transparency for blur effect */
    color: #fff;
    opacity: 0;
    visibility: hidden;
    /* Reduced initial blur so the transition is noticeable */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.6s,
                backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Show state */
.ocm-de97ae37-overlay.is-open {
    opacity: 1;
    visibility: visible;
    /* Heavy blur when open */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Admin bar handling */
body.admin-bar .ocm-de97ae37-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar .ocm-de97ae37-overlay {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.ocm-de97ae37-overlay-inner {
    position: relative;
    width: 95%;
    max-width: 1200px;
    background-color: transparent; /* Changed from solid color to transparent */
    border-radius: 12px;
    padding: 60px 40px;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.ocm-de97ae37-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, color 0.3s;
    z-index: 10;
}
.ocm-de97ae37-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: #fff;
    color: #1a1a1a;
}
.ocm-de97ae37-close-btn:hover svg {
    fill: #1a1a1a !important;
}

.ocm-de97ae37-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    align-items: flex-start;
}

.ocm-de97ae37-left {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.ocm-de97ae37-right {
    flex: 1;
    min-width: 300px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    
    /* Animation for right side */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-right {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .ocm-de97ae37-container {
        flex-direction: column;
    }
    .ocm-de97ae37-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    .ocm-de97ae37-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-left: 0;
        padding-top: 40px;
    }
    .ocm-de97ae37-overlay-inner {
        padding: 50px 20px 30px;
        width: 90%;
    }
}

/* Menu */
.ocm-de97ae37-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ocm-de97ae37-menu-item {
    margin-bottom: 15px;
    overflow: hidden;
}

/* Base style for main links and toggle buttons */
.ocm-de97ae37-menu-link {
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 5px;
    line-height: 1.2;
    padding-top: 10px;
    background: transparent;
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.3s ease;
}

.ocm-de97ae37-toggle-icon {
    font-size: 1.5rem;
    margin-left: 15px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.ocm-de97ae37-submenu-toggle[aria-expanded="true"] .ocm-de97ae37-toggle-icon {
    transform: rotate(45deg);
}

/* Remove default background when button is active to prevent white box */
.ocm-de97ae37-menu-link:focus,
.ocm-de97ae37-menu-link:active,
.ocm-de97ae37-submenu-toggle[aria-expanded="true"] {
    outline: none;
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .ocm-de97ae37-menu-link {
        font-size: 1.8rem;
    }
}

/* Staggered delays */
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-menu-item:nth-child(1) > .ocm-de97ae37-menu-link { transition-delay: 0.1s; }
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-menu-item:nth-child(2) > .ocm-de97ae37-menu-link { transition-delay: 0.15s; }
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-menu-item:nth-child(3) > .ocm-de97ae37-menu-link { transition-delay: 0.2s; }
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-menu-item:nth-child(4) > .ocm-de97ae37-menu-link { transition-delay: 0.25s; }
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-menu-item:nth-child(5) > .ocm-de97ae37-menu-link { transition-delay: 0.3s; }
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-menu-item:nth-child(6) > .ocm-de97ae37-menu-link { transition-delay: 0.35s; }

.ocm-de97ae37-overlay.is-open .ocm-de97ae37-menu-link {
    opacity: 1;
    transform: translateY(0);
}

/* Submenu Styles */
.ocm-de97ae37-submenu {
    list-style: none;
    padding: 0 0 0 20px;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
}

.ocm-de97ae37-submenu.is-open {
    max-height: 500px; /* Arbitrary large height to allow CSS transition */
    opacity: 1;
    padding-top: 15px;
    padding-bottom: 10px;
}

.ocm-de97ae37-submenu li {
    margin-bottom: 12px;
}

.ocm-de97ae37-submenu-link {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    color: inherit;
    opacity: 0.9; /* Increased opacity to be more visible */
    transition: opacity 0.3s, transform 0.3s, color 0.3s;
    display: inline-block;
}

.ocm-de97ae37-submenu-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Modern Hover Effects - Underline Reveal */
.ocm-de97ae37-menu-item > a.ocm-de97ae37-menu-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1), background-color 0.3s;
}
.ocm-de97ae37-menu-item > a.ocm-de97ae37-menu-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Magnetic Hover simulation for links only */
.ocm-de97ae37-menu-item > a.ocm-de97ae37-menu-link:hover {
    transform: translateX(15px);
}

/* Right Content */
.ocm-de97ae37-right-title {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-top: 10px;
}

.ocm-de97ae37-image-wrap {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 4px;
}
.ocm-de97ae37-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ocm-de97ae37-image-wrap:hover img {
    transform: scale(1.05);
}

.ocm-de97ae37-bottom-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.ocm-de97ae37-address {
    font-size: 0.9rem;
    line-height: 1.8;
}

.ocm-de97ae37-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

@media (max-width: 991px) {
    .ocm-de97ae37-social-list {
        text-align: left;
    }
}

.ocm-de97ae37-social-list li {
    margin-bottom: 8px;
    overflow: hidden;
}

.ocm-de97ae37-social-link {
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    
    /* Initial state */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ocm-de97ae37-overlay.is-open .ocm-de97ae37-social-list li:nth-child(1) .ocm-de97ae37-social-link { transition-delay: 0.5s; }
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-social-list li:nth-child(2) .ocm-de97ae37-social-link { transition-delay: 0.55s; }
.ocm-de97ae37-overlay.is-open .ocm-de97ae37-social-list li:nth-child(3) .ocm-de97ae37-social-link { transition-delay: 0.6s; }

.ocm-de97ae37-overlay.is-open .ocm-de97ae37-social-link {
    opacity: 1;
    transform: translateY(0);
}

.ocm-de97ae37-social-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
.ocm-de97ae37-social-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
