:root {
  --topicColor: #e0293a;
}

.page-header {
  --main-nav-w: 40%;
  margin-bottom: 0.8rem;
}

.page-header .head-nav {
  position: relative;
}

.page-header .head-nav .page-content {
  display: flex;
  justify-content: space-between;
}

.page-header .head-main {
  display: flex;
  align-items: center;
  height: 4.2rem;
  background: url(../images/academics/pg-banner.jpg) no-repeat center/cover;
}

.page-header .page-title {
  font-size: 0.7rem;
  font-family: Muli, Muli-Black;
  font-weight: 900;
  text-align: left;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0px 2px 16px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-header .main-nav {
  position: relative;
  z-index: 1;
  width: var(--main-nav-w);
  padding-top: 0.2rem;
  font-size: 0.14rem;
  font-family: Muli, Muli-Regular;
  color: rgba(51, 51, 51, 0.9);
  line-height: 1.42;
}

.page-header .main-nav a {
  margin: 0 0.05rem;
  color: rgba(51, 51, 51, 0.9);
}

.page-header .main-nav a:first-child {
  margin-left: 0;
  font-size: 12px;
  color: #B0B1B7;
}

.page-header .main-nav a:hover {
  text-decoration: underline;
}

.page-header .main-nav span {
  margin-left: 0.05rem;
}

.page-header .sub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  width: 50%;
  padding-bottom: 0.26rem;
  box-sizing: content-box;
}

.page-header .sub-nav li {
  padding: 0 0.2rem;
}

.page-header .sub-nav a {
  display: block;
}

.page-header .sub-nav .current_page_ancestor a, .page-header .sub-nav .current_page_parent a, .page-header .sub-nav .current_page_item a {
  color: var(--topicColor);
}

.page-header .sub-nav a {
  font-size: Max(0.18rem, 12px);
  font-family: Muli, Muli-Medium;
  font-weight: 500;
  text-align: left;
  color: #333333;
  line-height: 1.28;
}

.page-header .sub-nav a:hover {
  color: var(--topicColor);
  text-decoration: underline;
}

.page-header .sub-nav-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - var(--main-nav-w) - 8%);
  height: 100%;
  padding: 0 0 0.26rem;
  background-color: #fff;
  box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.1);
  box-sizing: content-box;
}

.third-menu {
  margin-top: 0.51rem;
  font-size: Max(0.18rem, 14px);
  font-family: Muli, Muli-Black;
  font-weight: 900;
  text-align: center;
  color: #333333;
  line-height: 1.27;
}

.third-menu ul {
  display: flex;
  justify-content: center;
  gap: 1.7rem;
  border-bottom: 1px solid #c5c5c5;
}

.third-menu li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.2rem;
  max-width: 2rem;
}

.third-menu li.current_page_ancestor, .third-menu li.current_page_parent, .third-menu li.current_page_item {
  color: var(--topicColor);
  border-bottom: 6px solid var(--topicColor);
}

.third-menu li:hover {
  cursor: pointer;
  color: var(--topicColor);
}

@media screen and (max-width: 910px) {
  .page-header {
    margin-bottom: 50px;
  }
  .page-header .head-main {
    height: 2.6rem;
  }
  .page-header .page-title {
    font-size: 30px;
  }
  .page-header .head-nav {
    margin-top: -20px;
  }
  .page-header .main-nav {
    display: none;
  }
  .page-header .sub-nav {
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0px 2px 20px 0px rgba(0, 0, 0, 0.1);
  }
  .page-header .sub-nav a {
    font-size: 14px;
  }
  .page-header .sub-nav-bg {
    display: none;
  }
  .third-menu {
    margin-top: 40px;
    font-size: 12px;
  }
  .third-menu ul {
    gap: 20px;
  }
  .third-menu li {
    width: 140px;
    padding-bottom: 16px;
    border-bottom: 4px;
  }
}

@media screen and (max-width: 560px) {
  .page-header .head-main {
    height: 160px;
  }
  .page-header .page-title {
    font-size: 20px;
  }
  .third-menu li {
    width: auto;
  }
}
