:root {
    --pvs-primary: #008744;
    --pvs-secondary: #50f050;
    --pvs-text: #ffffff;
    --pvs-sidebar-width: 70px;
    --pvs-transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    --pvs-dark-green: #007138;
}

#pvs-sidebar-container {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 0; /* Let content overflow or expand */
    z-index: 9999999; /* Very high to be above everything */
    font-family: 'Cairo', sans-serif;
}

/* Sidebar Position */
#pvs-sidebar-container.pvs-rtl { right: 0; }
#pvs-sidebar-container.pvs-ltr { left: 0; }

/* ── Vertical Sidebar Bar ────────────────────────────── */
.pvs-sidebar-bar {
    position: fixed;
    top: 0;
    width: var(--pvs-sidebar-width);
    height: 100%;
    background-color: var(--pvs-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
}
#pvs-sidebar-container.pvs-rtl .pvs-sidebar-bar { right: 0; }
#pvs-sidebar-container.pvs-ltr .pvs-sidebar-bar { left: 0; }

/* Perfect Centering for sections */
.pvs-bar-top, .pvs-bar-middle, .pvs-bar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.pvs-bar-middle {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This ensures elements are centered in the middle of the screen height */
    gap: 30px;
}

.pvs-sidebar-bar button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pvs-sidebar-bar button:hover { opacity: 0.7; }

/* GO Circle */
.pvs-go-circle {
    width: 44px;
    height: 44px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    transition: all 0.3s;
}

.pvs-go-circle:hover { background: #fff; color: var(--pvs-primary); }

/* Hamburger Customization */
.pvs-hamburger-box {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvs-hamburger-inner, .pvs-hamburger-inner::before, .pvs-hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    border-radius: 2px;
    transition: all 0.3s;
}

.pvs-hamburger-inner { top: 50%; transform: translateY(-50%); }
.pvs-hamburger-inner::before { content: ""; top: -7px; left: 0; }
.pvs-hamburger-inner::after  { content: ""; bottom: -7px; left: 0; }

.pvs-menu-trigger.active .pvs-hamburger-inner { background-color: transparent; }
.pvs-menu-trigger.active .pvs-hamburger-inner::before { transform: translateY(7px) rotate(45deg); }
.pvs-menu-trigger.active .pvs-hamburger-inner::after { transform: translateY(-7px) rotate(-45deg); }

/* ── Overlays Base ──────────────────────────────────── */
.pvs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--pvs-transition);
    overflow: hidden;
}

.pvs-overlay.active {
    visibility: visible;
    pointer-events: auto;
}

.pvs-overlay-content {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    transition: transform var(--pvs-transition);
}

.pvs-ltr .pvs-overlay-content { transform: translateX(-100%); }
.pvs-rtl .pvs-overlay-content { transform: translateX(100%); }

.pvs-overlay.active .pvs-overlay-content { transform: translateX(0) !important; }

/* ── Menu Overlay Specifics ─────────────────────────── */
.pvs-menu-left {
    width: 450px;
    background: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}

.pvs-overlay-logo { margin-bottom: 60px; }

.pvs-main-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pvs-main-links li { margin-bottom: 15px; }

.pvs-main-links a {
    font-size: 42px;
    font-weight: 700;
    color: var(--pvs-primary);
    text-decoration: none;
    line-height: 1.1;
    transition: all 0.3s ease;
    display: inline-block;
}

.pvs-main-links a.is-dimmed { opacity: 0.2; }
.pvs-main-links a.is-active { color: var(--pvs-secondary); }

.pvs-menu-bottom-area { margin-top: auto; }

.pvs-search-bar {
    display: flex;
    align-items: center;
    border-bottom: 1.5px solid #e0e0e0;
    padding: 10px 0;
    margin-bottom: 40px;
}

.pvs-search-bar input {
    border: none;
    background: none;
    flex: 1;
    font-size: 16px;
    outline: none;
    color: #333;
}

.pvs-search-submit-btn {
    background: none;
    border: none;
    color: var(--pvs-primary);
    cursor: pointer;
}

.pvs-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pvs-footer-grid { display: flex; flex-direction: column; gap: 8px; }
.pvs-footer-link {
    color: var(--pvs-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.pvs-lang-switcher { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.pvs-lang-link {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.pvs-lang-link.active { color: var(--pvs-primary); }

/* Submenu Panel (Dark Green) */
.pvs-menu-right-panel {
    width: 0;
    background-color: var(--pvs-dark-green);
    height: 100%;
    transition: width var(--pvs-transition), opacity 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    opacity: 0;
}

.has-submenu .pvs-menu-right-panel {
    width: 350px;
    padding: 100px 50px;
    opacity: 1;
}

.pvs-submenu-content ul { list-style: none; padding: 0; }
.pvs-submenu-content li { margin-bottom: 20px; }
.pvs-submenu-content a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: opacity 0.3s;
}
.pvs-submenu-content a:hover { opacity: 0.7; }

/* Close Panel (Light Green) */
.pvs-close-panel {
    width: 80px;
    background-color: var(--pvs-secondary);
    display: flex;
    justify-content: center;
    padding-top: 30px;
    z-index: 5;
    flex-shrink: 0;
}

.pvs-close-overlay {
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
}

/* ── Login Overlay (Image 5 Style) ──────────────────── */
.pvs-login-overlay .pvs-overlay-content {
    justify-content: flex-end; /* Align to the side as per Image 5 */
}

.pvs-login-content {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: flex-start; /* Align to the right in RTL */
}

.pvs-login-form-area {
    width: 500px;
    background-color: var(--pvs-secondary);
    height: 100%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    color: #fff;
    position: relative;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

.pvs-login-form-area .pvs-close-panel {
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    width: auto;
    padding: 0;
}

.pvs-login-form-area .pvs-close-overlay {
    color: #fff;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.pvs-login-form-area .pvs-close-overlay:hover { opacity: 1; }

.pvs-login-form-area h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #fff;
}

.pvs-input-group { margin-bottom: 15px; }
.pvs-input-group input {
    width: 100%;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    background: #fff;
    color: #333;
    outline: none;
}

.pvs-login-submit {
    background: var(--pvs-primary);
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 20px;
    transition: opacity 0.3s;
}

.pvs-login-links { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.pvs-login-links a {
    color: #fff; /* Changed to white */
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}
.pvs-login-links a:hover { opacity: 1; text-decoration: underline; }

.pvs-login-social { margin-top: auto; }
.pvs-login-social h3 { font-size: 18px; margin-bottom: 25px; color: #fff; }

.pvs-social-icons { display: flex; gap: 20px; }
.pvs-social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* Brand Colors for Social Icons */
.pvs-social-icon.website .pvs-social-svg { background: #555; }
.pvs-social-icon.facebook .pvs-social-svg { background: #1877F2; }
.pvs-social-icon.linkedin .pvs-social-svg { background: #0077B5; }
.pvs-social-icon.instagram .pvs-social-svg { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }

.pvs-social-svg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, filter 0.3s;
    color: #fff;
}
.pvs-social-icon:hover .pvs-social-svg { transform: scale(1.1); filter: brightness(1.1); }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .pvs-menu-left, .pvs-login-form-area { width: 80%; }
    .pvs-menu-right-panel { display: none; } /* Simplified mobile menu */
}

/* ── Submenu Logic (JS Dependent) ───────────────────── */
.pvs-main-links .sub-menu { display: none; } /* Hide default WP submenus */