:root {
    --primary-color: #18188B;
    --text-color: #18188B;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-panel {
    border-bottom: 1px solid #e9ecef;
}

.header-panel-1 {
    background: #f8f9fa;
}

.header-panel-2 {
    background: #F2F2F0;
}

.header-panel-1 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    height: 50px;
    width: auto;
}

.login-link.btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.login-link.btn:hover {
    background: #0f0f5c;
    color: #fff;
}

.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid #e9ecef;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--primary-color);
    border-left: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    background: #0f0f5c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(24, 24, 139, 0.3);
}

#postAddButton.btn {
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 1.2rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: center;
}

#postAddButton.btn:hover {
    background: #0f0f5c;
    color: #fff;
}

.main-nav .nav-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: #fff;
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(24, 24, 139, 0.3);
}

.header-panel-1 .col-4,
.header-panel-2 .col-4 {
    min-height: 48px;
}

.header-panel-1 .col-4,
.header-panel-2 .col-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (max-width: 991.98px) {
    .header-panel-1 .col-4,
    .header-panel-2 .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        justify-content: center !important;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .login-link.btn,
    #postAddButton.btn {
        width: 100%;
        padding: 0.5rem 0;
        max-width: 100%;
    }

    .logo {
        margin-bottom: 0.5rem;
    }
}

.profile-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .profile-nav {
        justify-content: center !important;
    }
    
    .profile-nav .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .header-panel-1 .row>div,
    .header-panel-2 .row>div {
        margin-bottom: 0.5rem;
    }

    .search-form {
        margin-bottom: 0.5rem;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .main-nav {
        display: none;
    }

    .main-nav .nav-link {
        padding: 0.5rem;
        font-size: 1rem;
    }

    .super-menu-dropdown {
        display: none;
    }

    .super-menu-content {
        display: none;
    }

    .super-menu-left,
    .super-menu-right {
        display: none;
    }
}

@media (max-width: 576px) {
    .site-header {
        margin-bottom: 1rem;
    }

    .main-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem;
    }

    .logo {
        height: 40px;
    }

    .user-menu-dropdown {
        min-width: 200px;
    }

    .header-panel-1 {
        padding: 0.5rem 0;
    }
    
    .header-panel-2 {
        padding: 0.5rem 0;
    }
    
    .mobile-menu-content {
        width: 90%;
    }
    
    .mobile-menu-header {
        padding: 1rem;
    }
    
    .mobile-menu-body {
        padding: 1rem;
    }
    
    .mobile-menu-item {
        padding: 0.75rem 1rem;
    }
    
    .super-menu-dropdown {
        display: none;
    }
    
    .super-menu-content {
        display: none;
    }
}

.user-avatar-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

.user-avatar-btn:hover {
    background: #0f0f5c;
}

.profile-nav .d-flex {
    position: relative;
}

#userMenuToggle {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

#userMenuToggle:hover {
    background-color: rgba(24, 24, 139, 0.1);
}

#userMenuToggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(24, 24, 139, 0.25);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.user-menu-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.user-menu-dropdown .dropdown-item i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.user-menu-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

.super-menu-nav {
    display: flex;
    align-items: center;
}

.super-menu-item {
    position: relative;
}

.super-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    min-width: 600px;
    max-width: 800px;
}

.super-menu-item:hover .super-menu-dropdown,
.super-menu-dropdown:hover {
    opacity: 1;
    visibility: visible;
}

.site-header {
    z-index: 1000;
}

.super-menu-dropdown {
    z-index: 1001;
}

.super-menu-content {
    display: flex;
    padding: 1.5rem;
}

.super-menu-left,
.super-menu-right {
    flex: 1;
    padding: 0 1rem;
}

.super-menu-left h5,
.super-menu-right h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.super-menu-left ul,
.super-menu-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.super-menu-left li,
.super-menu-right li {
    margin-bottom: 0.5rem;
}

.super-menu-left a,
.super-menu-right a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.2s;
    font-weight: 500;
}

.super-menu-left a:hover,
.super-menu-right a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle:hover {
    background: #0f0f5c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(24, 24, 139, 0.3);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: white;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: var(--primary-color);
    color: white;
}

.mobile-menu-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.btn-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-menu-section {
    margin-bottom: 2rem;
}

.mobile-menu-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.mobile-menu-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.mobile-menu-item i:first-child {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.mobile-menu-item span {
    flex: 1;
    font-weight: 500;
}

.mobile-menu-item i:last-child {
    margin-left: auto;
    opacity: 0.7;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu-item {
    animation: slideInRight 0.3s ease forwards;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.6s; }

.mobile-post-ad-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-post-ad-btn:hover {
    background: #0f0f5c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(24, 24, 139, 0.3);
}

.mobile-post-ad-btn:active {
    transform: translateY(0);
}

.mobile-menu-overlay .btn.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-overlay .btn.btn-primary:hover {
    background: #0f0f5c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(24, 24, 139, 0.3);
}

.site-header, .main-nav, .header-panel-1, .header-panel-2, .header, .navbar, .header-panel-1 .row, .header-panel-2 .row {
    overflow: visible !important;
}

.site-header, .header-panel, .header-panel-1, .header-panel-2, .main-nav, .row, .col-4, .col-3, .col-6 {
    overflow: visible !important;
}

.header-panel-2 .row {
    overflow: visible !important;
}

.header-panel-2,
.header-panel-1 {
    overflow: visible !important;
}

.header-panel-2 .row,
.header-panel-1 .row {
    overflow: visible !important;
}

.header-panel-2 .container {
    overflow: visible !important;
}

.header-panel-2 .row {
    overflow: visible !important;
}

.header-panel-2 .col-3,
.header-panel-2 .col-6 {
    overflow: visible !important;
}

