/**
 * MyMediq BNH - Header Styles
 * Organized and optimized header CSS
 * Version: 2.0 - Centered Menu & Theme Colors
 */

/* ===== CSS VARIABLES - Uses System Theme Colors from modern-theme.php ===== */
:root {
    --header-primary: var(--medical-primary, #23458b);
    --header-secondary: var(--medical-secondary, #ca2027);
    --header-accent: var(--medical-accent, #23a2e1);
    --header-bg: var(--medical-header-bg, #ffffff);
    --header-light: #f8fafc;
    --header-dark: #2d3748;
    --header-gray: #718096;
    --header-light-blue: #ebf8ff;
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --header-transition: all 0.3s ease;
}

/* ===== TOP CONTACT BAR - Clean Solid Design ===== */
.top-contact-bar {
    background-color: #23458b;
    background-color: var(--header-primary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    height: 42px;
    display: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .top-contact-bar {
        display: block !important;
    }
}

.top-contact-bar .top-contact-content {
    width: 100%;
    max-width: 1400px;
    height: 42px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-box-pack: justify !important;
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

.top-contact-bar .contact-info {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.top-contact-bar .right-section {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.top-contact-bar .contact-item {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.top-contact-bar .contact-item i {
    color: var(--header-accent);
    color: #23a2e1;
    font-size: 14px;
    display: inline-block;
}

.top-contact-bar .contact-item span {
    display: inline;
    color: #ffffff;
}

.top-contact-bar .contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    display: inline;
}

.top-contact-bar .contact-item a:hover {
    color: var(--header-accent);
}

/* ===== CUSTOM BUTTONS ===== */
.top-contact-bar .custom-buttons-section {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.top-contact-bar .custom-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Custom Buttons - Using System Theme Colors (Solid, No Gradients) */
.top-contact-bar .custom-button.btn-primary {
    background-color: var(--header-secondary);
    color: white;
    border: none;
}

.top-contact-bar .custom-button.btn-primary:hover {
    background-color: #fff;
    color: var(--header-secondary);
}

.top-contact-bar .custom-button.btn-success {
    background-color: var(--header-accent);
    color: white;
}

.top-contact-bar .custom-button.btn-success:hover {
    background-color: #fff;
    color: var(--header-accent);
}

.top-contact-bar .custom-button.btn-info {
    background-color: var(--header-accent);
    color: white;
}

.top-contact-bar .custom-button.btn-info:hover {
    background-color: #fff;
    color: var(--header-accent);
}

.top-contact-bar .custom-button.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.top-contact-bar .custom-button.btn-warning:hover {
    background-color: #fff;
    color: #e0a800;
}

.top-contact-bar .custom-button.btn-danger {
    background-color: var(--header-secondary);
    color: white;
}

.top-contact-bar .custom-button.btn-danger:hover {
    background-color: #fff;
    color: var(--header-secondary);
}

.top-contact-bar .custom-button.btn-outline-primary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.top-contact-bar .custom-button.btn-outline-primary:hover {
    background-color: #fff;
    color: var(--header-primary);
}

.top-contact-bar .custom-button i {
    font-size: 0.7rem;
}

/* ===== SOCIAL LINKS ===== */
.top-contact-bar .social-links {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    gap: 6px;
    margin: 0;
    margin-left: 10px;
    padding: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.top-contact-bar .social-links a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.top-contact-bar .social-links a:hover {
    background: var(--header-accent);
    transform: translateY(-2px);
    color: white;
}

.top-contact-bar .social-links a i {
    font-size: 0.9rem;
}

/* ===== MAIN HEADER ===== */
.hospital-header {
    background-color: var(--header-bg, white);
    box-shadow: var(--header-shadow);
}

.header-main {
    background-color: var(--header-bg, white);
    padding: 8px 0;
    position: fixed;
    top: 42px; /* Height of top contact bar */
    left: 0;
    width: 100vw;
    z-index: 1000;
    height: 65px; /* Fixed height */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
}

.header-main-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

/* ===== LOGO STYLES ===== */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: auto;
    height: 55px;
    display: flex;
    align-items: center;
}

.logo-icon img {
    height: 55px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

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

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--header-primary);
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--header-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NAVIGATION - CENTERED ===== */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--header-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 6px;
    transition: var(--header-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--header-secondary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link i:first-child:not(.fa-chevron-down) {
    font-size: 0.9rem;
    color: var(--header-primary);
    width: 16px;
    text-align: center;
}

.nav-link i.fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: var(--header-gray);
    margin-left: 4px;
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-link:hover {
    color: var(--header-primary);
    background-color: rgba(35, 69, 139, 0.05);
}

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

/* ===== DROPDOWN MENUS ===== */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    min-width: 600px;
    width: max-content; /* Fit content width */
    max-width: 95vw;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: var(--header-transition);
    z-index: 9999;
    padding: 25px 30px;
    border-top: 4px solid var(--header-primary);
    overflow: visible; /* No scroll on dropdown itself */
}

/* Custom scrollbar for dropdown */
.dropdown::-webkit-scrollbar {
    width: 6px;
}

.dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown::-webkit-scrollbar-thumb {
    background: var(--header-primary);
    border-radius: 3px;
}

.dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--header-secondary);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Prevent dropdown from going off-screen horizontally */
.nav-item:first-child .dropdown {
    left: 0;
    transform: translateX(0) translateY(20px);
}

.nav-item:first-child:hover .dropdown {
    transform: translateX(0) translateY(0);
}

.nav-item:last-child .dropdown,
.nav-item:nth-last-child(2) .dropdown {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(20px);
}

.nav-item:last-child:hover .dropdown,
.nav-item:nth-last-child(2):hover .dropdown {
    transform: translateX(0) translateY(0);
}

/* Mega Menu Layout - Max 4 columns per row */
.mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns max */
    gap: 25px 30px;
    overflow: visible;
}

.mega-menu-column {
    min-width: 180px;
    max-height: 300px; /* Limit column height */
    overflow-y: auto; /* Only columns scroll vertically */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Scrollbar for mega menu columns */
.mega-menu-column::-webkit-scrollbar {
    width: 4px;
}

.mega-menu-column::-webkit-scrollbar-thumb {
    background: rgba(35, 69, 139, 0.3);
    border-radius: 2px;
}

.mega-menu-column-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--header-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--header-accent);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap; /* Title on one line */
    position: sticky; /* Keep title visible when scrolling */
    top: 0;
    background: white;
    z-index: 1;
}

.mega-menu-column-title:hover {
    color: var(--header-secondary);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #4a5568;
    text-decoration: none;
    transition: var(--header-transition);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    padding-left: 0;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    color: var(--header-primary);
    border-left-color: var(--header-secondary);
    padding-left: 10px;
    background: rgba(35, 69, 139, 0.05);
}

/* Simple Dropdown */
.dropdown.simple {
    min-width: 260px;
    max-width: 300px;
    max-height: calc(100vh - 150px); /* Prevent going beyond viewport */
    overflow-y: auto;
    padding: 12px 0;
}

.dropdown.simple .dropdown-item {
    padding: 12px 20px;
    font-size: 0.95rem;
}

/* Base grid container for dropdown items */
.dropdown-items-grid {
    display: block; /* Default single column */
}

/* Two-column layout for many items in simple dropdown */
.dropdown.simple.two-columns {
    min-width: 450px;
    max-width: 500px;
}

.dropdown.simple.two-columns .dropdown-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

/* Three-column layout for very many items */
.dropdown.simple.three-columns {
    min-width: 600px;
    max-width: 700px;
}

.dropdown.simple.three-columns .dropdown-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* Adjust dropdown position when near edge of screen */
.dropdown.align-left {
    left: 0 !important;
    right: auto !important;
    transform: translateY(20px) !important;
}

.dropdown.align-left.visible {
    transform: translateY(0) !important;
}

.dropdown.align-right {
    left: auto !important;
    right: 0 !important;
    transform: translateY(20px) !important;
}

.dropdown.align-right.visible {
    transform: translateY(0) !important;
}

/* ===== ACTION BUTTONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--header-transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.header-actions .btn-primary {
    background: var(--header-primary);
    color: white;
}

.header-actions .btn-primary:hover {
    background: #1a3a6e;
    transform: translateY(-2px);
}

.btn-emergency {
    background: var(--header-secondary) !important;
    color: white !important;
}

.btn-emergency i {
    color: #ff0000 !important;
}

.btn-emergency:hover {
    background: #a51b21 !important;
}

.btn-emergency:hover i {
    color: #ff0000 !important;
}

.btn-patient {
    background: white;
    color: var(--header-primary);
    border: 2px solid var(--header-primary);
}

.btn-patient:hover {
    background: var(--header-primary);
    color: white;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    background: var(--header-primary);
    border: none;
    font-size: 1.3rem;
    color: white;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    transition: var(--header-transition);
}

.mobile-menu-btn:hover {
    background: var(--header-secondary);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--header-primary);
    color: white;
    border-bottom: 3px solid var(--header-secondary);
    flex-shrink: 0;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-header .menu-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--header-transition);
}

.mobile-menu-close:hover {
    background: var(--header-secondary);
    border-color: var(--header-secondary);
    transform: rotate(90deg);
}

/* Mobile Search */
.mobile-search {
    padding: 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.mobile-search form {
    display: flex;
    gap: 8px;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

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

.mobile-search-btn {
    padding: 12px 16px;
    background: var(--header-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-search-btn:hover {
    background: var(--header-secondary);
}

.mobile-nav {
    list-style: none;
    padding: 15px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-item {
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: visible; /* Allow dropdown to expand */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    color: var(--header-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--header-transition);
    position: relative;
    background: white;
}

.mobile-nav-link.active {
    color: var(--header-primary);
    background: rgba(35, 69, 139, 0.08);
}

.mobile-nav-link.active::before {
    transform: scaleY(1);
}

.mobile-nav-link:hover {
    background: rgba(35, 69, 139, 0.08);
    color: var(--header-primary);
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--header-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.mobile-chevron {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.mobile-chevron.rotated {
    transform: rotate(180deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #f1f5f9;
    margin: 0;
}

.mobile-dropdown.active {
    max-height: 2000px;
    overflow-y: visible;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px;
    color: var(--header-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--header-transition);
    border-left: 3px solid transparent;
}

.mobile-dropdown-item.has-sub {
    font-weight: 600;
    color: var(--header-dark);
}

.mobile-dropdown-item:hover {
    color: var(--header-primary);
    background: rgba(35, 69, 139, 0.08);
    border-left-color: var(--header-secondary);
}

.mobile-chevron-sub {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.mobile-chevron-sub.rotated {
    transform: rotate(90deg);
}

/* Sub-dropdown (3rd level) */
.mobile-sub-dropdown {
    display: none;
    padding-left: 15px;
    background: rgba(15, 71, 124, 0.03);
}

.mobile-sub-dropdown.active {
    display: block;
}

.mobile-dropdown-item.sub-item {
    font-size: 0.85rem;
    padding: 10px 20px;
    color: var(--header-gray);
}

.mobile-dropdown-item.sub-item:hover {
    padding-left: 25px;
}

.mobile-actions {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.mobile-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    text-decoration: none;
    transition: var(--header-transition);
}

.mobile-actions .btn-appointment {
    background: var(--header-primary) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(15, 71, 124, 0.3);
}

.mobile-actions .btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 71, 124, 0.4);
}

.mobile-actions .btn-emergency {
    background: #FF0000 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.mobile-actions .btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Quick Contact Info */
.mobile-contact-info {
    padding: 15px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.mobile-contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--header-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.mobile-contact-info a:hover {
    color: var(--header-primary);
}

.mobile-contact-info i {
    width: 20px;
    text-align: center;
    color: var(--header-primary);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--header-transition);
    backdrop-filter: blur(4px);
}

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

/* ===== RESPONSIVE STYLES ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .logo-icon {
        height: 60px;
    }
    
    .logo-icon img {
        height: 60px;
        max-width: 200px;
    }
    
    .nav-link {
        padding: 10px 18px;
        font-size: 1rem;
    }
    
    .header-main-content {
        max-width: 1600px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .dropdown {
        min-width: 480px;
        padding: 20px;
    }
    
    .mega-menu-columns {
        gap: 25px;
        min-width: 400px;
    }
    
    .mega-menu-column {
        min-width: 180px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .top-contact-content,
    .header-main-content {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .dropdown {
        min-width: 280px;
        max-width: 320px;
        padding: 15px;
        left: 0;
        transform: translateX(0) translateY(20px);
    }
    
    .nav-item:hover .dropdown {
        transform: translateX(0) translateY(0);
    }
    
    .mega-menu-columns {
        flex-direction: column;
        gap: 15px;
        min-width: auto;
    }
    
    .mega-menu-column {
        min-width: auto;
    }
    
    .logo-icon {
        height: 50px;
    }
    
    .logo-icon img {
        height: 50px;
        max-width: 150px;
    }
    
    .header-actions .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .top-contact-bar {
        display: none !important;
        height: 0 !important;
    }
    
    .header-main {
        top: 0 !important;
        padding: 10px 0;
        height: 60px;
    }
    
    body {
        padding-top: 60px !important;
    }
    
    body.homepage {
        padding-top: 0 !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .nav-container {
        display: none;
    }
    
    /* Show action buttons on mobile/tablet */
    .header-actions {
        display: flex !important;
        gap: 2px;
    }
    
    .header-actions .btn {
        padding: 3px 5px;
        font-size: 0.55rem;
        flex-direction: row;
        gap: 2px;
        border-radius: 10px;
        white-space: nowrap;
    }
    
    .header-actions .btn-text {
        display: inline-block;
        font-size: 0.55rem;
        line-height: 1;
        font-weight: 600;
    }
    
    .header-actions .btn i {
        margin: 0;
        font-size: 10px;
    }
    
    .header-main-content {
        justify-content: space-between;
    }
    
    .logo-icon {
        height: 45px;
    }
    
    .logo-icon img {
        height: 45px;
        max-width: 160px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-main {
        padding: 8px 0;
        height: 55px;
    }
    
    .header-main-content {
        padding: 0 15px;
    }
    
    .logo-icon {
        height: 40px;
    }
    
    .logo-icon img {
        height: 40px;
        max-width: 140px;
    }
    
    body {
        padding-top: 55px !important;
    }
    
    body.homepage {
        padding-top: 0 !important;
    }
    
    .mobile-menu {
        width: 290px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-main {
        height: 50px;
    }
    
    .logo-icon {
        height: 35px;
    }
    
    .logo-icon img {
        height: 35px;
        max-width: 120px;
    }
    
    .header-main-content {
        padding: 0 12px;
    }
    
    .mobile-menu {
        width: 270px;
    }
    
    .mobile-menu-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
    
    body {
        padding-top: 60px !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.d-none {
    display: none !important;
}

.d-lg-block {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block !important;
    }
}
