/* =========================
   HEADER / LAYOUT
   ========================= */
.bs-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-2);
  border-bottom: 1px solid #0f141c;
  box-shadow: 0 16px 40px rgba(0,0,0,.45)
}
.bs-header__inner{
  max-width: 1320px;
  margin: 0 auto;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bs-header__left{ display:flex; align-items:center; gap:10px; }
.bs-header__right{ display:flex; align-items:center; gap:12px; }

/* =========================
   LOGO
   ========================= */
.bs-logo{ display:flex; align-items:center; font-weight:800; letter-spacing:.5px; }
.bs-logo img{
  display:block;
  height:36px;      /* → өндөрөө эндээс удирдана */
  width:auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* =========================
   NAV (Centered)
   ========================= */
.bs-nav{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.bs-nav__ul{
  display:flex; list-style:none; margin:0; padding:0; gap:24px;
}

/* — Улаан акцент, том фонт, hover/active underline */
:root{ --bs-accent:#E50914; }

.bs-nav a{
  position:relative;
  display:inline-block;
  padding:12px 16px;
  border-radius:10px;
  font-size:24px;
  font-weight:800;
  letter-spacing:.3px;
  opacity:.9;
  transition:color .15s ease, background .15s ease, opacity .15s ease;
}
.bs-nav a:hover{ opacity:1; color:#fff; background:rgba(229,9,20,.08); }
.bs-nav a::after{
  content:"";
  position:absolute; left:16px; right:16px; bottom:4px; height:2px;
  background:transparent; border-radius:2px;
  transform:scaleX(0);
  transition:transform .15s ease, background .15s ease;
}
.bs-nav a:hover::after,
.bs-nav .current-menu-item > a::after,
.bs-nav .current_page_item > a::after{
  background:var(--bs-accent);
  transform:scaleX(1);
}
.bs-nav .current-menu-item > a,
.bs-nav .current_page_item > a{
  background:rgba(229,9,20,.12);
  border-radius:10px;
}

/* User хэсгийн хуудсууд дээр навигацыг нуух */
.bs-user-area .bs-nav{ display:none; }

/* =========================
   SEARCH (popup)
   ========================= */
.bs-search{ position:relative; }
.bs-search__form{
  position:absolute; right:0; top:52px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  display:none;
}
.bs-search__form input{
  width:260px; padding:10px;
  background:#0f141c; border:1px solid #263141; color:#fff; border-radius:8px;
}
/* Икон тойргийг тогтмол хэмжээтэй байлгах */
.bs-search-btn{
  width:40px; height:40px; border-radius:999px;
  border:1px solid #2a3441; display:flex; align-items:center; justify-content:center;
}

/* =========================
   USER DROPDOWN
   ========================= */
.bs-user{ position:relative; display:flex; align-items:center; }
.bs-user__btn{ display:flex; align-items:center; gap:8px; background:transparent; border:0; cursor:pointer; }
.bs-user__avatar{ width:32px; height:32px; border-radius:50%; object-fit:cover; }

/* Манай dropdown (display toggle) */
.bs-user__menu{
  position:absolute; right:0; top:calc(100% + 8px);
  background:#121721;
  border:none; border-radius:12px;
  padding:8px; width:220px;
  box-shadow:0 12px 32px rgba(0,0,0,.35);
  display:none; z-index:99999;
}
.bs-user__menu.is-open{ display:block; }
.bs-user__item{
  display:block; padding:10px 12px; border-radius:8px;
  color:#e6e9ef; text-decoration:none; font-size:14px;
}
.bs-user__item:hover{ background:#18202a; color:#fff; }

/* Хэрэв өөр газар bubble-user__dropdown ашиглавал – акценттай хүрээ/сүүдэр */
.bubble-user__dropdown{
  border-color:rgba(229,9,20,.22);
  box-shadow:0 12px 32px rgba(0,0,0,.35);
}

/* =========================
   LEGACY Dropdown (height transition) — хэрэглэж байгаа бол үлдээнэ
   ========================= */
.bs-dropdown{
  position:absolute; right:0; top:52px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  min-width:220px; overflow:hidden;
  max-height:0; opacity:0; transform:translateY(-6px);
  transition:max-height .18s ease, opacity .18s ease, transform .18s ease, padding .18s ease;
  padding:0 0;
}
.bs-dropdown.is-open{
  max-height:340px; opacity:1; transform:translateY(0); padding:6px 0;
}

/* =========================
   RESPONSIVE
   ========================= */
/* === LOGO SIZE OVERRIDES — PLACE AT THE VERY END === */
.bs-logo img,
.custom-logo{
  height: 60px !important;   /* Desktop/tablet */
  margin-left: 20px;
  width: auto;
  display: block;
}

@media (max-width: 520px){
  .bs-logo img,
  .custom-logo{
    height: 60px !important; /* Mobile */
    margin-left: 20px;
  }
}
@media (max-width: 767px){

  /* Баруун дээд хэсэг – icon-ууд нэг мөрөнд */
  .bs-header__right{
    display: flex;
    align-items: center;
    gap: 8px;
  }

/* =====================================
   MOBILE BOTTOM NAV – ЭХЛЭЛ / ЕВРОП / АЗИ
   ===================================== */
@media (max-width: 767px){

  /* Доод тогтмол меню */
  .bs-mainmenu{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;

    background: #0f141c;
    border-top: 1px solid #1b2435;

    padding: 4px 8px; /* өндөр багахан */
  }

  /* List – нэг мөрөнд 3 багана */
  .bs-mainmenu ul{
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
  }

  /* Гурвуулангаа ижил өргөн */
  .bs-mainmenu li{
    flex: 1 1 0;
  }

  /* Товчнууд – жижиг, тэгшхэн */
  .bs-mainmenu a{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 6px 0;       /* өндөр */
    font-size: 12px;      /* бичгийн хэмжээ бага зэрэг жижиг */
    text-align: center;
  }

  /* Доод меню газартай давхардахгүйн тулд */
  body{
    padding-bottom: 52px; /* менюгийн өндөртэй тааруулж бага зэрэг зас */
  }
}

/* =====================================
   HEADER ICON BUTTON – 3 улаан дугуй
   ===================================== */

.bs-icon-btn{
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 2px solid #E50914;
  box-sizing: border-box;
  color: #E50914;
  background: transparent;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

/* Доторх icon / зураг */
.bs-icon-btn i,
.bs-icon-btn svg,
.bs-icon-btn img{
  display: block;
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

/* Desktop / tablet */
@media (min-width: 768px){
  .bs-icon-btn{
    width: 40px;
    height: 40px;
  }
}

/* Утас */
@media (max-width: 767px){
  .bs-icon-btn{
    width: 36px !important;
    height: 36px !important;
  }
}
