.header-top {
    background-color: var(--bg-white);
}

.header-top-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 2.875rem;
}

@media (max-width: 768px) {
    .header-top-logo {
        justify-content: flex-start;
    }
}

.header-top-logo img {
    height: 2.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    background-color: var(--primary-color);
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.header-nav {
    background-color: var(--primary-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-icon {
    background-color: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    width: 100%;
    justify-content: space-between;
}

.nav-list li {
    flex: 1;
    text-align: center;
}

.nav-list li a {
    color: var(--bg-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* Apply hover styles only on devices that support hover */
@media (hover: hover) {
    .nav-list li a:hover {
        color: var(--accent-color);
        background-color: rgba(245, 158, 11, 0.1);
    }
    
    .nav-list li a:hover::after {
        width: 80%;
    }
}

.nav-list li a.active {
    color: var(--accent-color);
}

.nav-list li a.active::after {
    width: 80%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: white;
    font-weight: 600;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-btn.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.15em;
}

.header-actions .dropdown-menu {
    min-width: 180px;
    margin-top: 0.5rem;
}

.header-actions .dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.5);
}

.search-container {
    position: relative;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 0.5rem;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-submit,
.search-close {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    color: var(--primary-color);
}

.search-close:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    background-color: white;
    color: var(--primary-color);
}

.footer-info h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    width: 1rem;
}

.site-footer h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-newsletter input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.social-links a {
    color: white;
    font-size: 1.25rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

@media (max-width: 991px) {
    .search-box {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .header-nav {
        position: relative;
        padding: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }
    
    .header-nav.mobile-menu-open {
        height: auto;
        padding: 0.5rem 0;
    }
    
    .header-content {
        display: none;
    }
    
    .header-nav.mobile-menu-open .header-content {
        display: block;
    }
    
    .main-nav {
        display: block;
        position: static;
        background-color: transparent;
        z-index: 999;
        padding: 0;
        box-shadow: none;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0 1rem;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    /* Disable hover indicator on mobile */
    .nav-list li a::after {
        display: none;
    }
    
    .nav-list li a:hover {
        color: var(--bg-white);
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-list li a.active {
        color: var(--bg-white);
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .nav-list li a.active::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .lang-btn,
    .search-btn {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .logo {
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-icon {
        display: none;
    }
    
    .logo-text {
        display: flex;
    }
    
    .footer-newsletter {
        flex-direction: column;
    }
}
