/* Top Header Bar */
.top-header-bar {
    background: #000;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
    border-bottom: 1px solid #333;
}

.top-header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-left {
    display: flex;
    gap: 1.5rem;
}

.top-header-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.top-header-link:hover {
    opacity: 0.8;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: #fff;
    text-decoration: none;
}

/* Mobile responsive for top header */
@media (max-width: 768px) {
    .top-header-left {
        display: flex; /* Show email and phone on mobile */
        gap: 1rem;
    }
    
    .top-header-left .top-header-text {
        display: none; /* Hide text labels, keep only icons */
    }
    
    .social-links {
        display: flex; /* Show social icons on mobile */
        gap: 0.5rem;
    }
    
    .top-header-content {
        justify-content: space-between; /* Distribute between left and right */
        padding: 8px 15px;
        align-items: center;
    }
    
    .top-header-right {
        gap: 0.75rem;
        align-items: center;
    }
    
    .top-header-link {
        padding: 5px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .top-header-bar {
        min-height: auto;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .top-header-content {
        padding: 6px 10px;
    }
    
    .top-header-left {
        gap: 0.5rem;
    }
    
    .top-header-right {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 24px;
        height: 24px;
    }
    
    .top-header-link {
        padding: 3px;
    }
}

.social-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.account-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.account-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.account-link:hover {
    background: rgba(255,255,255,0.1);
}

.register-link {
    background: #3498db;
    color: #fff;
}

.register-link:hover {
    background: #2980b9;
}

.logout-link {
    color: #2980b9;
}

/* Main Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Cairo', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 50px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #333;
}

.site-logo {
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-title-text {
    font-family: 'Cairo', sans-serif;
    font-style: normal;
    font-weight: 900;
    color: rgb(0, 0, 0);
    font-size: 28px;
    line-height: 49px;
}

/* Navigation */
.primary-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.menu-item {
    position: relative;
}

.primary-menu > .menu-item > a {
    color: #7d7d7d;
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.primary-menu > .menu-item > a:hover {
    color: #3498db;
}

.primary-menu > .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.primary-menu > .menu-item > a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.6em;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item a {
    padding: 0.5rem 1.5rem;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-menu .menu-item a:hover {
    background: #f8f9fa;
    color: #3498db;
    padding-left: 1.75rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
}

/* Mobile Menu */
.bwbg-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bwbg-mobile-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.bwbg-mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.bwbg-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.bwbg-mobile-menu[aria-hidden="false"] .bwbg-mobile-menu__panel {
    transform: translateX(0);
}

.bwbg-mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bwbg-mobile-menu__close span {
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.bwbg-mobile-menu__close span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.bwbg-mobile-menu__close span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.bwbg-mobile-menu__nav {
    padding: 80px 20px 20px;
}

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

.bwbg-mobile-menu__list .menu-item {
    margin: 0.5rem 0;
}

.bwbg-mobile-menu__list .menu-item a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #7d7d7d;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    transition: all 0.3s ease;
}

.bwbg-mobile-menu__list .menu-item a:hover,
.bwbg-mobile-menu__list .current-menu-item a,
.bwbg-mobile-menu__list .current-menu-ancestor a {
    background: #f8f9fa;
    color: #333;
}

.primary-menu > .menu-item > a {
    color: #7d7d7d;
}

.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a {
    color: #333;
    position: relative;
}

.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .primary-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .top-header-left {
        display: flex; /* Show email and phone on tablet */
        gap: 0.75rem;
    }
    
    .top-header-left .top-header-text {
        display: none; /* Hide text labels on tablet */
    }
    
    .social-links {
        display: flex; /* Show social icons on tablet */
        gap: 0.5rem;
    }
    
    .top-header-content {
        justify-content: space-between;
        align-items: center;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0.75rem 15px;
    }
    
    .site-title-text {
        font-family: 'Cairo', sans-serif;
        font-style: normal;
        font-weight: 900;
        color: rgb(0, 0, 0);
        font-size: 24px;
        line-height: 29px;
    }
    
    .site-logo {
        height: 50px !important;
    }
    
    .bwbg-mobile-menu__panel {
        width: 250px;
    }
}
