/* NEW 2024 */
header a {
    color: #2b2b2b;
}

/*CHRISTOPHER: the item below was applied globally (*), which changed all fonts on all pages. So I changed it to header since the fonts were then too small. Can address this in redesign in spring.*/

header {
    font-family: franklin-gothic-urw, Arial, Helvetica, sans-serif !important;
}
ul li a {
    text-decoration: underline !important;
}
a:not([class]) {
    text-decoration-skip-ink: auto;
}
#header {
    font-size: 17px;
    /*border-bottom: 5px solid #232d4b;*/
    /*margin-left: -4.5rem;
    margin-right: -4.5rem;*/
}

#header-inner {
    margin-top: 20px;
    margin-right: 1.5rem; 
    margin-bottom: 0;
    margin-left: 1.5rem; 
}
#main-navigation {
    margin-top: 0;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    margin-left: 0.5rem;
}

.visually-hidden {
    position: absolute !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    word-wrap: normal;
}
.logo-utility {
    display: flex;
    justify-content: space-between;
}

.search-icon {
    display: flex;
    justify-content: space-between;    
    width: 75px;
}
.search-icon svg {
    align-self: center;
    height: 17px;
    width: 17px;
}

#utility-nav {
    margin-top: 0.65rem;
}
#utility-nav a {
    color: #232d4b !important;
}
#utility-nav ul:first-of-type {
    display: flex;
    list-style-type: none;
    gap: 1.5rem;
}
#utility-nav a:hover {
    text-decoration: none !important;
}

nav #uvalibrary-nav .mainlibrary-nav {
    background-color: #fff;
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
nav #uvalibrary-nav .mainlibrary-nav a {
    align-items: center;
    background-color: transparent;
    display: flex;
    padding: 11.5px 1rem;
    font-weight: 500;
    text-decoration: none !important;
}
nav #uvalibrary-nav .mainlibrary-nav a:hover {
    background-color: #dadada;
    color: #232d4b;
    text-decoration: underline !important;
}
.open-mobile-menu {
    display: none;
}
.mobilemenu-content {
    display: none;
}
@media (max-width: 780px) {
    nav.main-nav {
        display: none;
    }
    .utility-nav {
        display: none;
    }
    .open-mobile-menu {
        display: block;
        float: right;
        margin-top: 0.8rem;
        margin-right: 0;
        width: 44px;
        height: 44px;
        border: none;
        background-color: #fff;
        cursor: pointer;
        order: 2;
    }
    .open-mobile-menu svg:hover {
        stroke: #E57200;
    }
    .open-mobile-menu svg:focus {
        outline: 1px dashed #2b2b2b;
    }
    .mobilemenu-content.open {
        display: block;
        height: auto;
        width: fit-content;
    }
    .mobilemenu-content ul {
        overflow: hidden;
        list-style: none;
        position: absolute;
        top: 8.8rem;
        right: 0;
        background-color: #fff;
        border-top-width: 5px;
        border-radius: 0 0 4px 4px;
        display: block;
        list-style-type: none;
        margin: 0;
        min-width: 200px;
        padding: 0;
        z-index: 1000;
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    }
    .mobilemenu-content ul li {
        float: none;
        text-align: left;
        width: 100%;
        margin: 0;
    }
    .mobilemenu-content ul li a {
        color: #232D4B;
        font-weight: 400;
        padding: 10px;
        display: block;
        margin: 0;
        text-decoration: underline !important;
        width: 100%;
    }
    .mobilemenu-content ul li a:hover {
        text-decoration: none !important;
        background-color: #DADADA;
    }
    .search-icon svg {
        padding-right: 0.25rem;
    }
    .menu-spacer {
        border-bottom: 1px solid #808080;
    }
}
.extended-hr {
    border-bottom: 5px solid #232d4b;
    margin-left: -1vw;
     margin-right: -1vw;
}
/* NEW 2024 END */


/* keep anchor links from getting stuck behind the fixed header */
html {
scroll-padding-top: 120px;
}

/*2023 added Regional Alert*/
.uva-regional-alert {
  border: 3px solid #25CAD3;
  border-radius: 8px;
  padding: 13px 17px;
  background-color: #C8F2F4;
}

.uva-center-medium {
margin: 20px auto;
width: 95%;
}

/*2018 Accessibility updates*/
.btn-info {
  color: #fff;
  background-color: #0c3168;
  border-color: #0c3168;
}
.btn-info:hover {
  color: #fff;
  background-color: #1865D8;
  border-color: #1865D8;
}

.cd-primary-nav > ul a:hover, .cd-primary-nav > ul a.active { color: #B8C9FF; }

.popover-title { color: #232D4B; }
/*end*/


#s-lg-guide-header-search {
  display: none;
}
/*#s-lg-guide-header {
      margin-top: 130px;
}*/
/*#s-lib-public-header {
  margin-top: 130px;
}*/
.main-links {
  float: right;
}

.logo {
    width: 215px; 
}

@media only screen and (max-width: 900px) {
  .logo {
    display: none;
  } 
}
.cd-auto-hide-header {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: #0E233F;
  /* Force Hardware Acceleration */
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
  -webkit-transition: -webkit-transform .5s;
  transition: -webkit-transform .5s;
  transition: transform .5s;
  transition: transform .5s, -webkit-transform .5s;
}
.cd-auto-hide-header::after {
  clear: both;
  content: "";
  display: block;
}
.cd-auto-hide-header.is-hidden {
  -webkit-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
          transform: translateY(-100%);
}
@media only screen and (min-width: 1024px) {
  .cd-auto-hide-header {
    height: 47px;
  }
}

.cd-auto-hide-header .logo,
.cd-auto-hide-header .nav-trigger {
  position: absolute;
  top: 50%;
  bottom: auto;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}

.cd-auto-hide-header .logo {
  left: 5%;
}
.cd-auto-hide-header .logo a, .cd-auto-hide-header .logo img {
  display: block;
}

.cd-auto-hide-header .nav-trigger {
  /* vertically align its content */
  display: table;
  height: 100%;
  padding: 0 1em;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: bold;
  right: 0;
  border-left: 1px solid #f2f2f2;
}
.cd-auto-hide-header .nav-trigger span {
  /* vertically align inside parent element */
  display: table-cell;
  vertical-align: middle;
  padding-top: 10px;
}
.cd-auto-hide-header .nav-trigger em, .cd-auto-hide-header .nav-trigger em::after, .cd-auto-hide-header .nav-trigger em::before {
  /* this is the menu icon */
  display: block;
  position: relative;
  height: 3px;
  width: 22px;
  background-color: #ffffff;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.cd-auto-hide-header .nav-trigger em {
  /* this is the menu central line */
  margin: 6px auto 14px;
  -webkit-transition: background-color .2s;
  transition: background-color .2s;
}
.cd-auto-hide-header .nav-trigger em::before, .cd-auto-hide-header .nav-trigger em::after {
  position: absolute;
  content: '';
  left: 0;
  -webkit-transition: -webkit-transform .2s;
  transition: -webkit-transform .2s;
  transition: transform .2s;
  transition: transform .2s, -webkit-transform .2s;
}
.cd-auto-hide-header .nav-trigger em::before {
  /* this is the menu icon top line */
  -webkit-transform: translateY(-6px);
      -ms-transform: translateY(-6px);
          transform: translateY(-6px);
}
.cd-auto-hide-header .nav-trigger em::after {
  /* this is the menu icon bottom line */
  -webkit-transform: translateY(6px);
      -ms-transform: translateY(6px);
          transform: translateY(6px);
}
@media only screen and (min-width: 1024px) {
  .cd-auto-hide-header .nav-trigger {
    display: none;
  }
}

.cd-auto-hide-header.nav-open .nav-trigger em {
  /* transform menu icon into a 'X' icon */
  background-color: rgba(255, 255, 255, 0);
}
.cd-auto-hide-header.nav-open .nav-trigger em::before {
  /* rotate top line */
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.cd-auto-hide-header.nav-open .nav-trigger em::after {
  /* rotate bottom line */
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}

.cd-primary-nav {
  display: inline-block;
  float: right;
  height: 100%;
  padding-right: 5%;
}
.cd-primary-nav > ul {
  position: absolute;
  z-index: 2;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #1f7eca;
  display: none;
  list-style-type: none;
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.2);
}
.cd-primary-nav > ul a {
  /* target primary-nav links */
  display: block;
  height: 50px;
  line-height: 50px;
  padding-left: 5%;
  color: #F4FAFD;
  //border-top: 1px solid #f2f2f2;
  text-decoration: none;
}
.cd-primary-nav > ul a:hover, .cd-primary-nav > ul a.active {
  color: #8F3985;
}
@media only screen and (min-width: 1024px) {
  .cd-primary-nav {
    /* vertically align its content */
    display: table;
  }
  .cd-primary-nav > ul {
    /* vertically align inside parent element */
    display: table-cell;
    vertical-align: middle;
    /* reset mobile style */
    position: relative;
    width: auto;
    top: 0;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
  }
  .cd-primary-nav > ul::after {
    clear: both;
    content: "";
    display: block;
  }
  .cd-primary-nav > ul li {
    display: inline-block;
    float: left;
    margin-right: 1.5em;
  }
  .cd-primary-nav > ul li:last-of-type {
    margin-right: 0;
  }
  .cd-primary-nav > ul a {
    /* reset mobile style */
    height: auto;
    line-height: normal;
    padding: 15px;
    font-size: 14px;
    border: none;
    text-transform: uppercase;
  }
}

.nav-open .cd-primary-nav ul,
.cd-primary-nav ul:target {
  /* 
  	show primary nav - mobile only 
  	:target is used to show navigation on no-js devices
  */
  display: block;
}
@media only screen and (min-width: 1024px) {
  .nav-open .cd-primary-nav ul,
  .cd-primary-nav ul:target {
    display: table-cell;
  }
}

/* -------------------------------- 

2. Auto-Hiding Navigation - with Sub Nav

-------------------------------- */
.cd-secondary-nav {
  position: relative;
  z-index: 1;
  clear: both;
  width: 100%;
  height: 50px;
  //background-color: #e9f0f4;
  background: #0d3268;
  /* Force Hardware Acceleration */
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
  -webkit-transition: -webkit-transform .5s;
  transition: -webkit-transform .5s;
  transition: transform .5s;
  transition: transform .5s, -webkit-transform .5s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.cd-secondary-nav.nav-end::after {
  opacity: 0;
}
.cd-secondary-nav ul, .cd-secondary-nav li, .cd-secondary-nav a {
  height: 100%;
}
.cd-secondary-nav ul {
  /* enables a flex context for all its direct children */
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  padding: 0 5%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cd-secondary-nav ul::after {
  clear: both;
  content: "";
  display: block;
}
.cd-secondary-nav li {
  display: inline-block;
  float: left;
  /* do not shrink - elements float on the right of the element */
  -webkit-flex-shrink: 0;
      -ms-flex-negative: 0;
          flex-shrink: 0;
}
.cd-secondary-nav li:last-of-type {
  padding-right: 20px;
}
.cd-secondary-nav a {
  display: block;
  color: #ffffff;
  font-weight: 700;
  line-height: 50px;
  padding: 0 2em;
  text-transform: uppercase;
}
.cd-secondary-nav a:hover, .cd-secondary-nav a.active {
  opacity: 1;
  text-decoration: none;
}

@media only screen and (min-width: 1024px) {
  .cd-secondary-nav {
    height: 70px;
    overflow: visible;
  }
  .cd-secondary-nav ul {
    /* reset mobile style */
    display: block;
    text-align: center;
  }
  .cd-secondary-nav li {
    /* reset mobile style */
    float: none;
    -webkit-flex-shrink: 1;
        -ms-flex-negative: 1;
            flex-shrink: 1;
  }
  .cd-secondary-nav a {
    line-height: 70px;
    font-size: 14px;
  }
  .cd-secondary-nav a.active {
    box-shadow: inset 0 -3px #e57200;
  }
}
/*___UX-3762___*/
#s-lg-index-group-btn { display: none; }

/* -------------------------------- 

3. Auto-Hiding Navigation - with Sub Nav + Hero Image

-------------------------------- */
.cd-secondary-nav.fixed {
  position: fixed;
  top: 60px;
}
.cd-secondary-nav.slide-up {
  -webkit-transform: translateY(-60px);
      -ms-transform: translateY(-60px);
          transform: translateY(-60px);
}
@media only screen and (min-width: 1024px) {
  .cd-secondary-nav.fixed {
    top: 80px;
    /* fixes a bug where nav and subnab move with a slight delay */
    box-shadow: 0 -6px 0 #25283D;
  }
  .cd-secondary-nav.slide-up {
    -webkit-transform: translateY(-80px);
        -ms-transform: translateY(-80px);
            transform: translateY(-80px);
  }
}

/* -------------------------------- 

Main content

-------------------------------- */
.cd-main-content {
  padding: 60px 5% 2em;
  overflow: hidden;
}
.cd-main-content.sub-nav {
  /* to be used if there is sub nav */
  padding-top: 110px;
}
.cd-main-content.sub-nav-hero {
  /* to be used if there is hero image + subnav */
  padding-top: 0;
}
.cd-main-content.sub-nav-hero.secondary-nav-fixed {
  margin-top: 50px;
}
.cd-main-content p {
  max-width: 1024px;
  line-height: 1.6;
  margin: 2em auto;
  font-family: "David Libre", serif;
  color: #a5a8a9;
}
@media only screen and (min-width: 1024px) {
  .cd-main-content {
    padding-top: 80px;
  }
  .cd-main-content.sub-nav {
    padding-top: 150px;
  }
  .cd-main-content.sub-nav-hero.secondary-nav-fixed {
    margin-top: 70px;
  }
  .cd-main-content p {
    font-size: 2.4rem;
  }
}

/*
	adjust the positioning of in-page links
	http://nicolasgallagher.com/jump-links-and-viewport-positioning/
*/
.cd-main-content.sub-nav :target::before,
.cd-main-content.sub-nav-hero :target::before {
  display: block;
  content: "";
  margin-top: -50px;
  height: 50px;
  visibility: hidden;
}
@media only screen and (min-width: 1024px) {
  .cd-main-content.sub-nav :target::before,
  .cd-main-content.sub-nav-hero :target::before {
    margin-top: -70px;
    height: 70px;
  }
}

/* -------------------------------- 

Intro Section

-------------------------------- */
.cd-hero {
  /* vertically align its content */
  display: table;
  width: 100%;
  margin-top: 60px;
  height: 300px;
  background: url(../img/cd-hero-background.jpg) no-repeat center center;
  background-size: cover;
}
.cd-hero .cd-hero-content {
  /* vertically align inside parent element */
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
@media only screen and (min-width: 768px) {
  .cd-hero {
    height: 400px;
  }
}
@media only screen and (min-width: 1024px) {
  .cd-hero {
    height: 600px;
    margin-top: 80px;
  }
}

.cd-auto-hide-header {
  background-color: #141E3C;
}
.cd-secondary-nav {
  background: #232D4B;
}
.donate-btn {
  margin-top: 10px;
  font-size: 18px;
  text-transform: uppercase;
  background-color: #E57200;
  border-color: #E57200;    
}

.donate-btn:hover {
  background-color: #E57200;
  color: #000;
}

.copyright {
  padding-top: 10px;
  color: #fff;
}

.copyright,
.centered-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 150px;
}

.footer {
  background-color: #232D4B;
  font-family: 'Open Sans', sans-serif;
  margin: 50px -15px 0px -15px;
}
.footer a {
  color: #fff;
  margin-bottom: 5px;
}
.footer img {
  padding-top: 20%;
}

.footer_wrap {
  padding: 25px 0;
}
.footer_wrap h4 {
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer_wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer_wrap ul li {
  color: #fff;
  padding: 5px 0;
}
.footer_wrap ul li a {
color: #9FB2CE;
}

.footer-extended {
  background-color: #141E3C;
  display: block;
  width: 100%;
  height: 60px;
  bottom: 0;
}
#s-lib-footer-public {
  display: none;
}
.footer-extended-left {
  margin-left: 40px;
  float: left;
  padding-top: 20px;
  color: #fff;
}

.footer-extended-right {
  margin-right: 40px;
  float: right;
  padding-top: 20px;
}
.footer-extended-right img {
  width: 50px;
}
