#primary {
    width: 100%;
    overflow-x: auto;
}
.sitemap ul {
    list-style: none;
    margin-left: 0;
}

/* ------------------------------------------------------------
	Sitemap Styles
------------------------------------------------------------ */

.sitemap {
    display: inline-block;
    min-width: 100%;
    padding: 40px 0;
}

.sitemap li a,
.sitemap li a.multi:after {
    position: relative;
    display: block;
    margin: 0;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    line-height: 16px;
    white-space: normal;
    color: #333;
    background-color: white;
    border: 1px solid #f5f5f5;
    border-top: 4px solid #95a5a6;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    z-index: 1;
}

.sitemap li a {
    -webkit-box-shadow: 1px 1px 2px rgba(106, 113, 127, 0.2);
    -moz-box-shadow: 1px 1px 2px rgba(106, 113, 127, 0.2);
    box-shadow: 1px 1px 2px rgba(106, 113, 127, 0.2);
}

.sitemap li a.multi:after {
    content: " ";
    position: absolute;
    left: 6px;
    top: 6px;
    width: 100%;
    height: 100%;
    border-width: 2px;
    border-color: #eee;
    border-top-width: 0 !important;
    border-left-width: 0 !important;
    background-color: transparent;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-bottom-right-radius: 8px;
    -webkit-border-bottom-right-radius: 8px;
    z-index: -1;
}

.sitemap li a:before {
    /*content: " " attr(href) " ";*/
    display: block;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    word-wrap: break-word;
    color: #95a5a6;
}

.sitemap li a small {
    display: block;
    font-weight: normal;
    font-size: 12px;
    margin-top: 10px;
}

.sitemap .fa {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    vertical-align: middle;
}

/* --- Root --- */
.sitemap ul,
.sitemap li {
    position: relative;
    display: inline-block;
}

.primary > ul {
    margin-left: 0;
}

.primary ul li:before,
.primary ul li:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-color: #ddd;
    border-width: 1px;
    z-index: 0;
}

.primary ul li a {
    border-top-color: #e74c3c;
    width: auto;
}
.primary ul li a:before,
.primary ul li .fa {
    color: #e74c3c;
}

/* --- Level 1 --- */
.primary ul ul {
    white-space: nowrap;
}

.primary ul ul li {
    position: relative;
    vertical-align: top;
    padding-top: 20px;
    margin-right: 20px;
    white-space: normal;
    width: 100%;
}

.primary ul ul li:last-child {
    padding-right: 0;
}

.primary ul ul li:before {
    border-top-style: solid;
    width: 30px;
    top: 50px;
    margin: 0 0 0 -30px;
}

.primary ul ul li:first-child:before {
    border-top-style: none;
    border-left-style: none;
    width: 0;
    height: 30px;
    top: 0;
    left: 45px;
    margin: 0 0 0 -30px;
}

.primary ul ul li a {
    border-top-color: #ec9239;
    width: auto;
}
.primary ul ul li a:before,
.primary ul ul li .fa {
    color: #ec9239;
}

/* --- Level 2 --- */
.primary ul ul ul {
    display: block;
    white-space: normal;
}

.primary ul ul ul li {
    display: block;
    position: relative;
    width: 100%;
    padding-left: 30px;
    margin-right: 0;
}

.primary ul ul ul li:before,
.primary ul ul ul li:first-child:before {
    border-top-style: none;
    border-left-style: solid;
    height: 100%;
    top: 0;
    left: 45px;
}

.primary ul ul ul li:last-child:before {
    height: 50px;
}

.primary ul ul ul li:after {
    border-top-style: solid;
    top: 50px;
    left: 15px;
    width: 15px;
}

.primary ul ul ul li a {
    border-top-color: #bf246e;
    width: auto;
}
.primary ul ul ul li a:before,
.primary ul ul ul li .fa {
    color: #bf246e;
}

/* --- Level 3 --- */
.primary ul ul ul ul li a {
    border-top-color: #f0bf3e;
}
.primary ul ul ul ul li a:before,
.primary ul ul ul ul li .fa {
    color: #f0bf3e;
}

/* --- Level 4 --- */
.primary ul ul ul ul ul li a {
    border-top-color: #9b59b6;
}
.primary ul ul ul ul ul li a:before,
.primary ul ul ul ul ul li .fa {
    color: #9b59b6;
}

/* --- Secondary --- */
.secondary {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: dotted 2px #eee;
}

.secondary ul {
    white-space: nowrap;
}

.secondary ul li {
    display: inline-block;
    white-space: normal;
    padding: 0 20px 0 0;
}

.secondary ul li:before,
.secondary ul li:after {
    display: none;
}

.secondary ul li:last-child {
    padding: 0;
}

/* --- Widths --- */
.primary > ul > li > a,
.primary > ul > li > ul > li {
    width: 220px;
}
.secondary li a {
    width: 180px;
}
