/* Lira-style frontend header — blue theme */
:root {
    --hms-blue-dark: #0a3d6b;
    --hms-blue: #1565c0;
    --hms-blue-light: #5dade2;
    --hms-blue-top: #083358;
    --hms-text: #0a3d6b;
    --hms-white: #ffffff;
}

.hms-site-header {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    z-index: 1000;
}

/* Top utility bar */
.hms-topbar {
    background: var(--hms-blue-top);
    color: var(--hms-white);
    font-size: 13px;
    padding: 8px 0;
}

.hms-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hms-topbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.hms-topbar-links a {
    color: var(--hms-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.hms-topbar-links a:hover {
    color: var(--hms-blue-light);
}

.hms-topbar-links .fa {
    font-size: 14px;
}

.hms-topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hms-topbar-links .hms-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #25d366;
}

.hms-topbar-links .hms-wa-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.hms-topbar-links .hms-topbar-wa .fa-whatsapp {
    color: #25d366;
    font-size: 16px;
}

.hms-topbar-links .hms-topbar-hotline .fa-headphones {
    color: #5dade2;
    font-size: 15px;
}

.hms-lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hms-lang-switch a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.hms-lang-switch a.active,
.hms-lang-switch a:hover {
    color: #f4c430;
}

.hms-lang-switch .sep {
    color: rgba(255,255,255,.4);
}

/* Main navbar */
.hms-navbar {
    background: var(--hms-white);
    border-bottom: 4px solid var(--hms-blue-light);
    padding: 12px 0 10px;
    box-shadow: 0 2px 8px rgba(10, 61, 107, .06);
}

.hms-navbar .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hms-nav-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
}

.hms-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.hms-brand img {
    max-height: 52px;
    max-width: 220px;
    object-fit: contain;
}

.hms-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.hms-brand-text .name {
    font-size: 22px;
    font-weight: 700;
    color: var(--hms-blue);
    letter-spacing: .5px;
}

.hms-brand-text .tagline {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.hms-nav-toggle {
    display: none;
    background: var(--hms-blue);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
}

.hms-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.hms-nav-menu > li {
    position: relative;
}

.hms-nav-menu > li.hms-nav-hospital > a,
.hms-nav-menu > li.hms-nav-hospital.active > a {
    color: #f58220;
}

.hms-nav-menu > li.hms-nav-hospital > a:hover {
    color: #e06f10;
}

.hms-nav-menu > li > a {
    display: block;
    padding: 10px 14px;
    color: var(--hms-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s;
}

.hms-nav-menu > li > a:hover,
.hms-nav-menu > li.active > a {
    color: var(--hms-blue);
}

.hms-nav-menu > li > a .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
    opacity: .7;
}

.hms-nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(10,61,107,.12);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 1001;
}

.hms-nav-menu > li:hover .dropdown-menu,
.hms-nav-menu > li.open .dropdown-menu {
    display: block;
}

.hms-nav-menu .dropdown-menu a {
    display: block;
    padding: 9px 18px;
    color: var(--hms-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.hms-nav-menu .dropdown-menu a:hover {
    background: #eef4fc;
    color: var(--hms-blue);
}

.hms-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.hms-search-form {
    position: relative;
    margin: 0;
}

.hms-search-form input {
    width: 200px;
    height: 36px;
    border: 1px solid #d0dbe8;
    border-radius: 20px;
    padding: 0 38px 0 16px;
    font-size: 13px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.hms-search-form input:focus {
    border-color: var(--hms-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, .15);
}

.hms-search-form button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
}

.hms-search-form button:hover {
    color: var(--hms-blue);
}

.hms-login-link {
    color: var(--hms-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 4px;
}

.hms-login-link:hover {
    color: var(--hms-blue);
}

/* Mobile */
@media (max-width: 991px) {
    .hms-nav-toggle {
        display: block;
        margin-left: auto;
    }

    .hms-nav-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 3;
    }

    .hms-nav-collapse.open {
        display: flex;
    }

    .hms-nav-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hms-nav-menu .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 12px;
        background: #f5f9fd;
    }

    .hms-nav-menu > li.dropdown-open .dropdown-menu {
        display: block;
    }

    .hms-nav-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        justify-content: flex-start;
        padding-top: 12px;
        border-top: 1px solid #eee;
    }

    .hms-search-form {
        width: 100%;
    }

    .hms-search-form input {
        width: 100%;
        min-width: 0;
    }

    .hms-login-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        border: 1px solid #d0dbe8;
        border-radius: 20px;
        box-sizing: border-box;
    }

    .hms-navbar .container {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .hms-topbar-links {
        gap: 12px;
        font-size: 12px;
    }
}
