/* Homepage-only responsive corrections. Loaded by template/dafeult/index.html. */
body.bgi-home-responsive .inner2 {
  width: calc(100% - 40px) !important;
  max-width: 1200px !important;
  min-width: 0;
}
body.bgi-home-responsive .home-platform-panel > .inner2 {
  width: 100% !important;
}
body.bgi-home-responsive .home-module-summary,
body.bgi-home-responsive .home-universities-summary {
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.bgi-home-responsive .home-universities-item,
body.bgi-home-responsive .home-universities-text,
body.bgi-home-responsive .home-universities-pic {
  min-width: 0;
}
body.bgi-home-responsive .barwrap.on .logo img {
  filter: brightness(0) saturate(100%) invert(17%) sepia(17%) saturate(1178%) hue-rotate(164deg) brightness(96%) contrast(94%);
}
body.bgi-home-responsive .home-environment .mod-destination .text,
body.bgi-home-responsive .home-environment .mod-destination .text .title {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1182px) {
  body.bgi-home-responsive #navbarList {
    max-height: calc(100vh - 108px);
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.bgi-home-responsive .home-news-primary-shell,
  body.bgi-home-responsive .home-dual-feeds-shell {
    overflow: visible;
  }
  body.bgi-home-responsive .home-dual-feeds-shell {
    flex-direction: column !important;
  }
  body.bgi-home-responsive .home-dual-feeds .home-dual-feeds-col {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none;
  }
}

@media (max-width: 767px) {
  body.bgi-home-responsive .inner2 {
    width: calc(100% - 32px) !important;
  }
  body.bgi-home-responsive .barwrap,
  body.bgi-home-responsive .barwrap.on {
    height: 64px !important;
    padding: 0 12px !important;
    gap: 8px;
  }
  body.bgi-home-responsive .barwrap .logo {
    flex: 1;
    min-width: 0;
  }
  body.bgi-home-responsive .barwrap .logo img {
    width: auto;
    height: 32px;
    max-width: 128px;
    object-fit: contain;
  }
  body.bgi-home-responsive .barwrap .navbar-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
  body.bgi-home-responsive .barwrap .div2 {
    gap: 6px;
    padding-left: 0;
    flex-shrink: 0;
  }
  body.bgi-home-responsive .barwrap .div2 h3 a {
    min-width: 44px;
    height: 40px;
    padding: 0 8px;
  }
  body.bgi-home-responsive .barwrap .zoom {
    width: 40px;
    height: 40px;
  }
  body.bgi-home-responsive #navbarList {
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    padding: 12px;
    gap: 6px;
    border-radius: 18px;
  }
  body.bgi-home-responsive #navbarList li a {
    min-height: 44px;
  }
  body.bgi-home-responsive .search-close {
    top: 16px;
    right: 16px;
  }
  body.bgi-home-responsive .search-box {
    z-index: 1001;
    transition: transform .2s ease !important;
  }
  body.bgi-home-responsive .search-box .div {
    width: calc(100% - 32px);
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    transition: opacity .2s ease, transform .2s ease !important;
  }
  body.bgi-home-responsive .search-box form {
    flex-direction: column;
  }
  body.bgi-home-responsive .search-box .in,
  body.bgi-home-responsive .search-box .sub {
    min-width: 0;
    width: 100%;
  }
  /* The existing slides contain text in their images: show each full image. */
  body.bgi-home-responsive .home-banner {
    margin-top: 64px;
    height: 37.333333vw !important;
    min-height: 0 !important;
    background: #eef7fa;
  }
  body.bgi-home-responsive .home-banner .bannerfix,
  body.bgi-home-responsive .home-banner .bannerfix > li {
    height: 100% !important;
  }
  body.bgi-home-responsive .home-banner .bannerfix > li .bimg {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: none !important;
  }
  body.bgi-home-responsive .home-banner::before,
  body.bgi-home-responsive .home-banner::after {
    display: none;
  }
  body.bgi-home-responsive .home-banner .flex-control-nav {
    bottom: 2px !important;
    height: 12px;
  }
  body.bgi-home-responsive .home-feeds.home-news-primary {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }
  body.bgi-home-responsive .home-section {
    padding-top: 16px;
    padding-bottom: 16px;
    scroll-margin-top: 80px;
  }
  body.bgi-home-responsive .home-news-primary-shell,
  body.bgi-home-responsive .home-dual-feeds-shell {
    padding: 18px 16px !important;
    border-radius: 22px !important;
  }
  body.bgi-home-responsive .home-news-primary-head,
  body.bgi-home-responsive .home-dual-feeds .home-sec-head {
    gap: 8px !important;
    flex-wrap: nowrap;
  }
  body.bgi-home-responsive .home-news-primary-head .fs24,
  body.bgi-home-responsive .home-dual-feeds .home-sec-head .fs24 {
    font-size: 22px !important;
    white-space: nowrap;
  }
  body.bgi-home-responsive .home-sec-head > a.right {
    padding: 0 !important;
    flex-shrink: 0;
  }
  body.bgi-home-responsive .home-sec-head .borderLf {
    padding: 0 !important;
    border: 0 !important;
    font-size: 12px;
    white-space: nowrap;
  }
  body.bgi-home-responsive .home-sec-head > a.right .iconfont {
    display: none !important;
  }
  body.bgi-home-responsive .home-news-primary .lh36 li,
  body.bgi-home-responsive .home-dual-feeds .lh36 li {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 12px 0 !important;
  }
  body.bgi-home-responsive .home-news-primary .lh36 .nowrap,
  body.bgi-home-responsive .home-dual-feeds .lh36 .nowrap {
    width: 100%;
    min-width: 0;
    white-space: normal !important;
  }
  body.bgi-home-responsive .home-news-primary .lh36 a,
  body.bgi-home-responsive .home-dual-feeds .lh36 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.65 !important;
    font-size: 15px !important;
  }
  body.bgi-home-responsive .home-news-primary .lh36 li > span,
  body.bgi-home-responsive .home-dual-feeds .lh36 li > span {
    min-width: 0 !important;
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.5;
  }
  body.bgi-home-responsive .home-news-primary-feature {
    min-height: 0 !important;
  }
  body.bgi-home-responsive .home-news-primary-feature-link {
    height: 260px !important;
    min-height: 0 !important;
  }
  body.bgi-home-responsive .home-program-panel {
    padding: 20px 16px !important;
  }
  body.bgi-home-responsive .home-program-body {
    padding: 16px !important;
  }
  body.bgi-home-responsive .home-program-meta {
    flex-wrap: wrap;
  }
  body.bgi-home-responsive .home-universities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  body.bgi-home-responsive .home-universities-grid .home-universities-item {
    min-height: 160px;
    padding: 16px 12px !important;
    gap: 12px;
    border-radius: 20px !important;
  }
  body.bgi-home-responsive .home-universities-item .home-universities-text h3 {
    font-size: 16px !important;
    overflow-wrap: anywhere;
  }
  body.bgi-home-responsive .home-universities-pic {
    padding: 12px 8px;
    min-height: 64px;
  }
  body.bgi-home-responsive .home-footer-module .footer-brand-copy p {
    overflow-wrap: anywhere;
  }
  /* Keep contact tools available without covering article titles on phones. */
  body.bgi-home-responsive .suspension {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: calc(100% - 32px) !important;
    max-width: 320px !important;
    height: auto !important;
    margin: 16px auto 24px;
  }
  body.bgi-home-responsive .suspension-box {
    float: none;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  body.bgi-home-responsive .suspension .a {
    flex-shrink: 0;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }
  body.bgi-home-responsive .suspension .a .i {
    width: 44px !important;
    height: 44px !important;
  }
  body.bgi-home-responsive .suspension .a-service .i,
  body.bgi-home-responsive .suspension .a-service-phone .i {
    width: 20px !important;
    height: 20px !important;
    margin-top: 12px !important;
    margin-left: 12px !important;
  }
  body.bgi-home-responsive .suspension .a-top {
    display: block !important;
  }
  body.bgi-home-responsive .suspension .d {
    top: auto !important;
    right: 0 !important;
    bottom: 56px;
    width: 100%;
    max-width: 100%;
  }
  body.bgi-home-responsive .suspension .d .arrow {
    display: none;
  }
  body.bgi-home-responsive .suspension .d-service-item .text {
    width: calc(100% - 56px);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 359px) {
  body.bgi-home-responsive .home-universities-grid {
    grid-template-columns: 1fr !important;
  }
}
