:root {
    --primary-red: #e63946;
    --dark-bg: #1a1a1a;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#header {
    position: sticky;
    top: 0;
    width: 100%;
    transition: transform 0.3s ease;
    z-index: 999;
}

.navbar-top {
    background-color: var(--dark-bg);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Custom Mobile Toggler */
.custom-toggler {
    border: none;
    background: transparent;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.custom-toggler:hover .toggler-icon {
    background-color: var(--primary-red);
}

.search-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    border-radius: 25px 0 0 25px !important;
    border: 1px solid #ced4da;
    border-right: none;
    padding: 20px 20px;
    box-shadow: none;
}

.search-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.25);
    border-color: var(--primary-red);
}

.search-button {
    border-radius: 0 25px 25px 0 !important;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #c1121f;
    transform: translateY(-1px);
}

.navbar-main {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-left: 50px;
    margin-right: 50px;
}

.nav-link {
    color: var(--dark-gray) !important;
    font-weight: 600;
    padding: 10px 15px !important;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red) !important;
    background-color: var(--light-gray);
}

.nav-link.active {
    color: var(--primary-red) !important;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 3px 3px 0 0;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.icon-text i {
    font-size: 1.1rem;
}

.icon-text:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
    transform: translateY(-1px);
}

.language-selector .dropdown-toggle {
    border-radius: 25px !important;
    background: #2b2b2b !important;
    color: #fff !important;
    padding: 8px 15px !important;
    border: 1px solid #444 !important;
    transition: all 0.3s ease;
}

.language-selector .dropdown-toggle:hover {
    background: #333 !important;
}
/* Mobile Language Dropdown Styles */
.language-selector-mobile .dropdown-toggle {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.language-selector-mobile .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.language-selector-mobile .dropdown-toggle::after {
    display: none !important;
}

.language-selector-mobile .dropdown-menu {
    min-width: 150px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.language-selector-mobile .dropdown-item {
    padding: 10px 15px !important;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.language-selector-mobile .dropdown-item:hover {
    background-color: var(--primary-red) !important;
    color: white !important;
}

/* Adjust mobile header layout */
@media (max-width: 767.98px) {
    .col-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .col-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }
}
.dropdown-menu {
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 8px 15px !important;
    border-radius: 5px !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-red) !important;
    color: white !important;
}

/* Mobile Offcanvas Styles */
.offcanvas-start {
    width: 300px !important;
    border-right: 1px solid #dee2e6;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-body .nav-link {
    margin: 0;
    padding: 12px 0 !important;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas-body .nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-red) !important;
}

.offcanvas-body .nav-link.active {
    color: var(--primary-red) !important;
    background-color: rgba(230, 57, 70, 0.1);
}

/* Mobile Auth Buttons */
.offcanvas-body .btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offcanvas-body .btn:hover {
    transform: translateY(-2px);
}

/* Hide desktop navbar on mobile */
@media (max-width: 767.98px) {
    .navbar-main {
        display: none !important;
    }

    .language-selector {
        display: none !important;
    }
}

@media (min-width: 768px) {
    #mobileMenu {
        display: none !important;
    }

    .custom-toggler {
        display: none !important;
    }
}
