* {box-sizing: border-box;}

.major-list a:link, .major-list a:active, .major-list a:visited,
.dept-list a:link, .dept-list a:active, .dept-list a:visited {
    text-decoration: none;
    color: #666 !important;
}

.major-list a:hover,
.dept-list a:hover {color: #0D2D84 !important;}


/* 대학 */
.func-list {
  margin-top: 20px;
  font-family: 'Dream Regular';
  font-size: 15px;
  text-align: center;
  color: #666;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.univ-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.univ-item {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #d7dee3;
  height: 48px;
}

.univ-name {
  min-width: 15%;
  font-family: 'Dream Medium';
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background-color: #f2f8fb;
  flex-shrink: 0;
  text-align: center;
  line-height: 47px;
}

.dept-list {
  display: flex;
  flex-wrap: wrap;
}

.dept-item {
  padding: 0px 12px;
  white-space: nowrap;
  line-height: 47px;
}

@media screen and (max-width: 1024px) {
  .univ-item {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    border-bottom: 1px solid d7dee3;
  }

  .univ-name {
    width: 100%;
    line-height: 1.8;
    padding: 8px 0;
    font-size: 16px;
  }

  .dept-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dept-item {
    padding: 6px 10px;
    font-size: 15px;
    line-height: 3;
  }
}

@media screen and (max-width: 768px) {
  .univ-name {
    font-size: 16px;
    padding: 6px 0;
    line-height: 2;
  }

  .dept-list {
    flex-direction: column;
    align-items: stretch;
  }

  .dept-item {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }
}



/* 대학원 */
.gradschool-list {
  gap: 24px;
  font-family: 'Dream Regular';
  font-size: 15px;
  text-align: center;
  color: #666;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.gradschool-item {
  display: flex;
  align-items: stretch;
}

.gradschool-name {
  font-family: 'Dream Medium';
  font-size: 16px;
  font-weight: 400;
  color: #333;
  padding-left: 12px;
  min-width: 15%;
  background-color: #f2f8fb;
  border-right: 1px solid #d7dee3;
  border-bottom: 1px solid #d7dee3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradschool-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.track-list {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #d7dee3;
}

.track-name {
  min-width: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid #eef1f3;
  color: #222;
}

.major-list {
  display: flex;
  flex-wrap: wrap;
  padding: 5px 0;
}

.major-list a {line-height: 2em;}

.major-item {
  display: inline-block;
  padding: 6px 10px;
}


@media screen and (max-width: 1024px) {
  .gradschool-item {
    flex-direction: column;
    align-items: stretch;
  }

  .gradschool-name {
    min-width: 100%;
    padding: 10px 0;
    border-right: none;
    border-bottom: 1px solid #d7dee3;
    border-top: 1px solid black;
    font-size: 15px;
  }

  .track-list {
    flex-direction: column;
  }

  .track-name {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #f8f9fa;
    font-size: 14px;
    padding: 10px 0;
    background-color: #f8f9fa;
  }

  .major-item {
    font-size: 14px;
    padding: 6px 8px;
    margin: 4px 4px;
  }
}

@media screen and (max-width: 767px) {
  .gradschool-item {
    flex-direction: column;
  }

  .gradschool-name {
    font-size: 14px;
    padding: 8px 0;
    line-height: 2.3;
  }

  .track-name {
    font-size: 13px;
    padding: 8px 0;
  }

  .major-item {
    font-size: 13px;
    padding: 6px 10px;
    text-align: center;
  }

  .major-list a {
    display: inline-block;
  }
}