/* 
  Custom CSS for Navbar 
  Converted from Tailwind CSS 
*/

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Top Header Bar */
.top-header-bar {
    background-color: #063B66;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(28, 57, 142, 0.5);
    display: none;
}

@media (min-width: 768px) {
    .top-header-bar {
        display: block;
    }
}

.top-bar-container {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.top-bar-item:hover {
    color: #F5A623;
}

.top-bar-item i {
    width: 0.875rem;
    height: 0.875rem;
    color: #F5A623;
}

.top-bar-item.text-gray {
    color: #d1d5db;
}

.top-bar-item.text-gray:hover {
    color: #d1d5db;
}

/* Main Navbar */
.main-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

/* Logo */
.nav-logo-link {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-logo-img {
    height: 5rem;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@media (min-width: 768px) {
    .nav-logo-img {
        height: 5rem;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1280px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-item-wrapper {
    position: relative;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    color: #374151;
    text-decoration: none;
}

.nav-link:hover {
    color: #0A6EBD;
    background-color: #f3f4f6;
}

.nav-link.active {
    background-color: #063B66;
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-link.active:hover {
    color: #ffffff;
    background-color: #063B66;
}

.nav-link i {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

.nav-link i.rotated {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    width: max-content;
    min-width: 220px;
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
    z-index: 50;
}

.dropdown-link {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-link:hover {
    background-color: #063B66;
    color: #ffffff;
}

.dropdown-link.active {
    background-color: #063B66;
    color: #ffffff;
    font-weight: 700;
}

/* Action Buttons */
.nav-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-actions {
        display: flex;
    }
}

.search-btn {
    padding: 0.5rem;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: colors 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-btn:hover {
    color: #063B66;
    background-color: #f3f4f6;
}

.search-btn i {
    width: 1.25rem;
    height: 1.25rem;
}

.consult-btn {
    background-color: #F5A623;
    color: #17212B;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.consult-btn:hover {
    background-color: #e09419;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.consult-btn i {
    width: 1rem;
    height: 1rem;
}

/* Mobile Controls */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-controls {
        display: none;
    }
}

.mobile-toggle-btn {
    padding: 0.5rem;
    color: #374151;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle-btn:hover {
    color: #063B66;
}

.mobile-toggle-btn i {
    width: 1.75rem;
    height: 1.75rem;
}

/* Mobile Drawer */
.mobile-drawer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem 1.5rem 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1280px) {
    .mobile-drawer {
        display: none !important;
    }
}

.mobile-consult-wrapper {
    margin-bottom: 0.75rem;
    padding-top: 0.25rem;
}

.mobile-consult-btn {
    width: 100%;
    background-color: #F5A623;
    color: #17212B;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.mobile-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-align: left;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-item:hover {
    background-color: #f3f4f6;
}

.mobile-nav-item.active {
    background-color: #063B66;
    color: #ffffff;
    font-weight: 700;
}

.mobile-nav-item i {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.mobile-nav-item i.text-accent {
    color: #F5A623;
}

.mobile-nav-item i.text-gray {
    color: #9ca3af;
}

.mobile-sub-menu {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #f3f4f6;
}

.mobile-sub-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 0.5rem;
    text-decoration: none;
}

.mobile-sub-link:hover {
    background-color: #ffffff;
    color: #0A6EBD;
}

.mobile-sub-link.active {
    color: #063B66;
    font-weight: 700;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.mobile-sub-link.view-all {
    font-weight: 600;
}

.mobile-contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #4b5563;
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.mobile-contact-link i {
    width: 1rem;
    height: 1rem;
    color: #0A6EBD;
}

/* Search Modal */
.search-modal {
    background-color: rgba(17, 24, 39, 0.9);
    color: #ffffff;
    padding: 1rem;
    border-top: 1px solid #374151;
}

.search-modal-container {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-input {
    width: 100%;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.125rem;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-close-btn {
    padding: 0.25rem;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-close-btn:hover {
    color: #F5A623;
}

.search-results {
    max-width: 56rem;
    margin: 0.75rem auto 0 auto;
    background-color: #ffffff;
    color: #111827;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 15rem;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background-color: #f3f4f6;
}

.search-result-title {
    font-weight: 700;
    color: #063B66;
    margin: 0;
}

.search-result-desc {
    font-size: 0.75rem;
    color: #4b5563;
    margin: 0;
}

.search-no-results {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}