/* Medical Center theme: one-row mobile header on every page
   (logo + business name + slicknav menu button). */

@media (max-width: 991.98px) {
  .header-area .mc-brand {
    max-width: none !important;
    min-width: 0;
    gap: 8px;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
  }

  .header-area .mc-brand__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .header-area .mc-brand__text {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    flex-wrap: nowrap !important;
    gap: 0.35em;
    min-width: 0;
    line-height: 1.1;
  }

  .header-area .mc-brand__name {
    font-size: clamp(11px, 3.2vw, 14px);
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap;
  }

  .header-area .mc-brand__tag {
    display: inline !important;
    flex-shrink: 0;
    font-size: clamp(9px, 2.4vw, 11px);
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* Classic Medical Center header (header-area + slicknav) */
  .header-area .main-header > .container-fluid > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;
  }

  .header-area .main-header .row > .col-xl-10,
  .header-area .main-header .row > .col-lg-10,
  .header-area .main-header .row > .col-md-10 {
    display: none !important;
  }

  .header-area .main-header .row > .col-xl-2,
  .header-area .main-header .row > .col-lg-2,
  .header-area .main-header .row > .col-md-1 {
    flex: 1 1 auto;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding-right: 0;
  }

  .header-area .main-header .row > .col-12 {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    padding-left: 0;
  }

  .header-area .main-header {
    position: relative;
  }

  .header-area .logo {
    min-width: 0;
  }

  .header-area .mobile_menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
  }

  .header-area .slicknav_menu {
    position: static;
    background: transparent;
    padding: 0;
  }

  .header-area .slicknav_btn {
    margin: 0;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid var(--hi-dark, #001d4a);
    border-radius: 8px;
  }

  .header-area .slicknav_icon-bar {
    background-color: var(--hi-dark, #001d4a) !important;
    box-shadow: none !important;
  }

  .header-area .slicknav_nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }

  /* Medicloud navbar directory header */
  .mc-chrome-header .navbar > .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mc-chrome-header .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 52px);
    margin-right: 0;
  }

  .mc-chrome-header .navbar-toggler {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 400px) {
  .header-area .mc-brand__name {
    font-size: clamp(10px, 2.9vw, 12px);
  }

  .header-area .mc-brand__tag {
    font-size: clamp(8px, 2.2vw, 10px);
  }
}
