/* Qolama EduTheme v0.12.7 — final quick-menu dropdown contrast fix. */

/* Reset inherited Bootstrap/theme sizing that could create a large empty panel. */
body .site-header .qet-header-quick-list .qet-quick-dropdown.dropdown-menu{
  width:max-content !important;
  min-width:210px !important;
  max-width:min(320px,calc(100vw - 32px)) !important;
  height:auto !important;
  min-height:0 !important;
  max-height:min(65vh,460px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  padding:7px !important;
}

/* Transparent homepage header: dark glass surface and high-contrast text. */
body.home-page.header-style-transparent .site-header:not(.scrolled) .qet-header-quick-list .qet-quick-dropdown.dropdown-menu,
body.home.header-style-transparent .site-header:not(.scrolled) .qet-header-quick-list .qet-quick-dropdown.dropdown-menu,
body.front-page.header-style-transparent .site-header:not(.scrolled) .qet-header-quick-list .qet-quick-dropdown.dropdown-menu{
  background:rgba(5,38,27,.96) !important;
  border-color:rgba(255,255,255,.18) !important;
  box-shadow:0 20px 48px rgba(0,0,0,.32) !important;
  -webkit-backdrop-filter:blur(16px) saturate(135%) !important;
  backdrop-filter:blur(16px) saturate(135%) !important;
}

body.home-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item,
body.home.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item,
body.front-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item{
  color:#fff !important;
  background:transparent !important;
  text-shadow:none !important;
}

body.home-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item:hover,
body.home-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item:focus,
body.home-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item.active,
body.home.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item:hover,
body.home.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item:focus,
body.home.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item.active,
body.front-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item:hover,
body.front-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item:focus,
body.front-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-item.active{
  color:#fff !important;
  background:rgba(255,255,255,.13) !important;
}

body.home-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .qet-quick-parent-link,
body.home.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .qet-quick-parent-link,
body.front-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .qet-quick-parent-link{
  color:#f2cb62 !important;
}

body.home-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-divider,
body.home.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-divider,
body.front-page.header-style-transparent .site-header:not(.scrolled) .qet-quick-dropdown .dropdown-divider{
  border-color:rgba(255,255,255,.16) !important;
}

/* Solid/scrolled header stays light and readable. */
body .site-header.scrolled .qet-header-quick-list .qet-quick-dropdown.dropdown-menu,
body:not(.header-style-transparent) .site-header .qet-header-quick-list .qet-quick-dropdown.dropdown-menu{
  background:rgba(255,255,255,.98) !important;
  border-color:rgba(18,61,46,.13) !important;
}
body .site-header.scrolled .qet-quick-dropdown .dropdown-item,
body:not(.header-style-transparent) .site-header .qet-quick-dropdown .dropdown-item{
  color:var(--theme-deep,#123d2e) !important;
}

@media(max-width:1199.98px){
  body .site-header .qet-header-quick-list .qet-quick-dropdown.dropdown-menu{
    min-width:190px !important;
    max-width:min(280px,calc(100vw - 24px)) !important;
  }
}
