.egypt-navbar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}
/* Ensure widget wrapper itself doesn't add empty space */
.elementor-widget-egypt_times_navbar_7f71e5fc {
    margin: 0 !important;
    padding: 0 !important;
}

.egypt-navbar-wrapper.is-sticky-enabled.is-scrolled {
    position: fixed;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.egypt-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px;
    padding: 15px 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.egypt-navbar-wrapper.is-scrolled .egypt-nav-container {
    padding: 10px 25px; /* Shrinks slightly */
}
.egypt-nav-left .egypt-logo-img { max-height: 40px; transition: max-height 0.3s; }
.egypt-navbar-wrapper.is-scrolled .egypt-logo-img { max-height: 35px; }

.egypt-desktop-menu {
    display: flex;
    gap: 30px;
}
.egypt-menu-item {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
}
.egypt-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #FF5E3A 0%, #F2295B 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.egypt-menu-item:hover::after, 
.egypt-menu-item.is-active::after, 
.egypt-menu-item.current-menu-item::after, 
.egypt-menu-item.current_page_item::after,
.egypt-menu-item.current-menu-parent::after,
.egypt-menu-item.current-menu-ancestor::after {
    width: 100%;
}
.egypt-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.egypt-search-toggle, .egypt-mobile-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
}
.egypt-search-toggle:hover, .egypt-mobile-toggle:hover {
    color: #FF5E3A;
}
.egypt-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FF5E3A 0%, #F2295B 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}
.egypt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 94, 58, 0.4);
    color: #fff;
}
.egypt-mobile-toggle { display: none; }

/* Side Menu Redesign & Layout Fixes */
.egypt-side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: clamp(300px, 85vw, 420px);
    height: 100vh;
    height: 100dvh; /* For mobile browser compatibility */
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: clamp(28px, 6vw, 40px);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto; /* Added so it scrolls naturally if content too long */
}
.egypt-side-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,94,58,0.15), transparent 35%),
                radial-gradient(circle at bottom left, rgba(242,41,91,0.1), transparent 40%);
    z-index: -1;
    pointer-events: none;
}
.egypt-side-menu.is-open { right: 0; }
.egypt-side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.egypt-side-menu-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.egypt-side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(25px, 6vw, 40px);
    flex-shrink: 0;
}
.egypt-sidebar-logo {
    max-height: 35px;
}
.egypt-close-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s, transform 0.3s;
}
.egypt-close-menu:hover {
    color: #FF5E3A;
    transform: rotate(90deg);
}

.egypt-side-menu-content {
    flex-grow: 1; /* Pushes footer down naturally */
    display: flex;
    flex-direction: column;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.egypt-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 4vh, 20px);
}
.egypt-mobile-item {
    color: #fff;
    font-size: clamp(24px, 6vw, 28px);
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s;
}
.egypt-side-menu.is-open .egypt-mobile-item {
    opacity: 1;
    transform: translateX(0);
}
.egypt-mobile-item:hover, .egypt-mobile-item.is-active, .egypt-mobile-item.current-menu-item {
    color: #FF5E3A;
}

.egypt-sidebar-cta-wrap {
    margin-top: clamp(25px, 6vh, 40px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.egypt-side-menu.is-open .egypt-sidebar-cta-wrap {
    opacity: 1;
    transform: translateY(0);
}
.egypt-btn-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 25px;
}

/* Sidebar Footer & Socials */
.egypt-sidebar-footer {
    flex-shrink: 0;
    margin-top: auto; 
    padding-top: clamp(20px, 4vh, 25px);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.egypt-sidebar-follow {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: clamp(12px, 3vw, 15px);
}
.egypt-sidebar-social {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 12px);
}
.egypt-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 10vw, 40px);
    height: clamp(38px, 10vw, 40px);
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.egypt-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.egypt-social-icon i {
    font-size: 18px;
}
.egypt-social-icon:hover {
    background: #FF5E3A;
    color: #fff;
    transform: translateY(-3px);
}

/* Search Overlay */
.egypt-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.egypt-search-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
.egypt-search-form {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.egypt-search-overlay.is-active .egypt-search-form {
    transform: translateY(0);
}
.egypt-search-input {
    background: none;
    border: none;
    border-bottom: 2px solid #FF5E3A;
    color: #fff;
    font-size: 48px;
    outline: none;
    padding: 10px 0;
    width: 80vw;
    max-width: 800px;
    font-weight: 300;
}
.egypt-search-input::placeholder {
    color: rgba(255,255,255,0.3);
}
.egypt-close-search {
    position: absolute;
    top: 40px;
    right: 50px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 50px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.egypt-close-search:hover {
    color: #FF5E3A;
    transform: rotate(90deg);
}

@media (max-width: 1024px) {
    .egypt-desktop-menu { display: none; }
    .egypt-btn { display: none; }
    .egypt-mobile-toggle { display: block; }
}
@media (max-width: 768px) {
    .egypt-side-menu { border-left: none; }
    .egypt-nav-container { padding: 15px 20px; }
    .egypt-search-input { font-size: 32px; }
    .egypt-close-search { top: 20px; right: 20px; }
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
