/*
Theme Name: Rubin
Theme URI: https://wpthemes.umd.edu
Author: Rochelle Robinson
Author URI: https://info.umd.edu/directory/rochelle-robinson/
Description: Rubin Theme for INFO
Version: 1.1
Text Domain: rubin
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


body {
  font-family: "Overpass", sans-serif;
  color: #333 !important;
  font-size: 1.1em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,  h2,  .h2,  h3,  .h3,  h4,  .h4,  h5,  .h5,  h6,  .h6 {
   margin-top: .5em !important;
   font-weight: 700;
}

h1 {
  font-size: 2.2em;
  margin-bottom: .5em;
 color: #e21833;
}

h2 {
    font-size: 1.8em;
}
.category h2 {
  font-size: 1.2em;
}

h3 {
    font-size: 1.5em;
}
h4 {
    font-size: 1.25em;
}
h5,  h6 {
    font-size: 1em;
}
.clearfix {
    clear:  both;
    display:  table;
}

ol,  ul {
    margin: 2em 0;
    padding-left: 2.5em !important;
}

.row {
    margin-left:  0 !important;
    margin-right:  0 !important;
}

/* -----------  Bootstrap Overrides ------------  */

a {
  color: #e21833;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  text-decoration: none;
}

#main-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  color: #e21833;
}

#main-content a:hover {
  color: #000;
}

#main-content a:hover::after {
  transform: scaleX(1);
}

a.button::after {
  display: none;
  content: none;
}

#main-content a:has(button)::after, #main-content button a::after  {
    display: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  padding: .75em;
  background-color: #666;
  color: #FFF;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 15px;
}

button a {
  color: #FFF !important;
}

#main-content button:hover {
  background-color: black;
}

button:hover::after, #main-content button:hover::after {
    display: none !important;
    content: none !important;
}


/* -------------  Header ------------  */

#umdbanner {
  background-color: #e21833;
  -webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
  box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
  height: 48px;
  padding-top: 10px;
  text-align: center;
}

#umdbanner a {
  color: #FFF;
  font-family: Crimson Text, Georgia, serif;
  letter-spacing: 1px;
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: normal;
}


#umdbanner a:hover {
  text-decoration: none;
  color: #FFF;
}

#masthead {
  box-shadow: 0px 4px 18px 0px rgba(0,0,0,0.2);
  margin-bottom: 1.5em;
  padding: 1em 0;
}

#masthead .sitename {
  white-space: nowrap;
  font-size: 2em;
  color: #333;
  font-weight: 700;
}
a:hover.sitename {
  color: #000 !important;
  text-decoration: none;
}

#masthead .sitedesc{
  font-size: 15px;
}

/* -------------  Pagination ------------  */

.pager {
  margin-bottom: 60px;
  text-align: left;
}
.pager > li > a {
  width: 140px;
  padding: 10px 20px;
  text-align: center;
  border-radius: 30px;
}
.pagination {
 margin:2em 0;
 position:relative;
 font-size:11px;
 line-height:13px;
 float:left
}
.pagination a,
.pagination span {
 text-decoration:none;
 display:block;
 float:left;
 margin:0 7px 0 0;
 padding:7px 10px 6px 10px;
 border:1px solid #ccc;
 font-size:14px;
 line-height:12px;
 color:#333;
 -webkit-border-radius:3px;
 -moz-border-radius:3px;
 border-radius:3px
}
.pagination a:hover {
 color: #333 !important;
background: gold;
}
.pagination .current {
 padding:6px 9px 5px 9px;
 background:#333;
 color:#FFF;
}

/* -------------  Navigation ------------  */

nav ul {
  margin: 0;
  padding-left: 0 !important;
}

.menu-item {
  color: #333;
  font-size: 0.9375rem;
  font-weight: bold;
  text-transform: uppercase;
}

.menu-item li {
  padding: 0;
}

.menu-item > a {
  display: block;
  padding: 0 1em;
}

.menu-item a {
  color: #333;
}

.menu-item a:hover{
  color: ##e21833;
}
.menu-item a::after {
  content: none;
}

.current-menu-item > a, .current_page_item > a {
  color: #e21833;
}

.navbar .menu-item-has-children,
.navbar .dropdown {
  position: relative;
}

.navbar .menu-item-has-children > .dropdown-menu,
.navbar .dropdown > .dropdown-menu {
  top: 100%;
  left: 0;
}

.dropdown-menu > li > a {
    display: block;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    white-space: nowrap;
    border-bottom: 1px #EEE solid;
    padding: 10px !important;
    color: #333;
    background-color: #FFF;
    min-width: 12rem;
}
.dropdown-menu>li>a:focus, .dropdown-menu>li>a:hover {
  color: #333;
  background-color: #EEE;
  text-decoration: none;
  font-weight: bold;
}

ul.dropdown-menu li > ul.dropdown-menu{
left: 100%;
top: 0;
}

ul.dropdown-menu li:hover > ul.dropdown-menu, ul.dropdown-menu li:focus > ul.dropdown-menu{ display: block;}

ul li .dropdown-menu ul li {
   /*! margin-left: 1em; */
}
.dropdown-toggle:after {
display: inline-block;
width: 0;
height: 0;
margin-left: .255em;
vertical-align: .255em;
content: "";
border-top: .3em solid;
border-right: .3em solid transparent;
border-bottom: 0;
border-left: .3em solid transparent;
 }

.dropdown-menu .dropdown-menu {
    left: 100%;
    position: absolute;
    top: 0;
    visibility: hidden;
    margin-top: -1px;
}

.dropdown-menu li:hover .dropdown-menu {
    visibility: visible;
}

.menu-item-has-children:hover .dropdown-menu {
    display: block;
}

.dropdown-toggle-icon::before {
    content: "";
    display: inline-block;
    margin-left: .35rem;
    width: .45em;
    height: .45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-4px) rotate(45deg);
    transition: transform .2s ease;
}

.dropdown.show .dropdown-toggle-icon::before,
.dropdown-toggle[aria-expanded="true"] .dropdown-toggle-icon::before {
    transform: rotate(225deg);
}

.navbar-toggler {
     border: none !important;
    padding: 0;
}

.navbar-light .navbar-toggler {
  color: #FFF !important;
  border: none !important;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
    display: block;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #FFF;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

/* Open state */
.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}
/* -------------  Custom Styles ------------  */

blockquote {
  margin: 1em;
  position: relative;
  border-left: 0.3em solid gold;
  color: #4E4E4E;
  float: right;
  width: 35% !important;
  font-size: 18px;
}

main h1 {
  margin-top: .5em !important;
}

main {
  margin: 1em 0;
}

/* -------------  Home Page Background ------------  */


.homepage-hero {
    min-height: 500px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.homepage-hero-overlay {
    min-height: 500px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
}

.homepage-hero-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    color: #fff;
}

.homepage-hero-title {
    margin-bottom: 20px;
}

.homepage-hero-widget {
    max-width: 650px;
}

/* -------------  Search ------------  */

.search-icon {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.search-icon:hover {
  color: #ddd;
}

#searchform {
    border: 1px solid #d8d8d8;
    text-align: left;
    padding: 6px;
    border-radius: 8px;
    font-size: 1rem;
    margin-right: 12px;
}
#search input[type="text"] {
    box-shadow: none;
    border: none;
    margin-bottom: 0;
    background: none;
    color: #575757;
}

.search-button {
    color: #000;
    background: none;
    line-height: normal;
    border: none;
    padding-block: 5px;
    padding-inline: 6px;
    float: right;
}
input:focus {
    outline: none !important;
}

#ss-search-page-form {
  max-width: 350px;
  margin-bottom: 2em;
}

.bi.bi-search {
  float: right;
}

/* -------------  Directory ------------  */

#directory tr { 
  min-height: 250px;
}

#directory .profile-image { 
  width: 200px;height: 270px;
}

#directory .profile-image img {
    display: block;
    float: none;
    margin: 0;
}

/* -------------  Alignments ------------  */
.alignleft {
  display: inline;
  float: left;
  margin-right: 1.5em;
}
.alignright {
 clear: both;
  display: inline;
  float: right;
  margin-left: 1.5em;
}
.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


/* -------------  YouTube Embed ------------  */

.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* -------------  Header Search ------------  */

.nav-search-container {
    position: relative;
}

.search-form-wrapper {
    display: none;
    background: #fff;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  position: relative;
  top: 50%;
  right: 0;
  width: min(300px, calc(100vw - 20px));
}

.search-form-wrapper.active {
    display: block;
}

.search-toggle {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .search-form-wrapper {
        left: auto;
    }
}

/* -------------  Footer  ------------  */

footer {
  color: #B5B5B5;
  font-size: 1rem;
  bottom: 0;
  width: 100%;
}

footer .infobrand {
  padding: 1em 0;
  background-color: #000;
}
footer .infobrand a:hover {
  color: #FFF;
  text-decoration: underline;
}

footer .infobrand img {
  max-width: 350px;
}

footer .col-md-7 {
  margin-top: 2em;
}

footer ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 1em;
}

footer ul li + li {
  border-left: 1px solid #454545;
  padding-left: 1rem;
  margin-left: 1rem;
}

footer .contact {
  background-color: #242424;
  color: #B5B5B5;
  text-transform: uppercase;
  font-size: 14px;
}

footer .contact a {
  font-weight: normal;
  color: #B5B5B5;
}

/* -------------  Media Query  ------------  */

@media (min-width: 992px) {
    .navbar .dropdown-menu {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
        padding: 0;
        border-top: #e21833 solid 2px;
    }
}

@media screen and (max-width: 992px) {

main h1 {
  margin-top: 1rem !important;
}
.homepage-hero-overlay, .homepage-hero {
  min-height: 300px;
}
.homepage-hero-content {
padding: 1rem;
}
.bi.bi-search {
  float: left;
  }

#searchform .bi-search {
  float: right;
  }

.navbar-nav li {
  margin: .5em 0;
  }

.container, .container-sm {
    max-width: 90%;
  }

.main-content button {
  width: 100%;
 }
}

@media (max-width: 768px) {
    .button, .btn, .wp-block-button,
    .wp-block-button__link {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .button + .button,
    .btn + .btn,
    .wp-block-button + .wp-block-button {
        margin-top: 10px;
    }
  footer ul {
    flex-direction: column;
    padding: 1em 0;
  }

 footer  ul li + li {
    border-left: none;
    list-style: none;
    padding: 10px 0;
    margin: 0;
  }
  iframe {
        width: 100% !important;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
  }
}

@media (max-width: 576px) {
  .container, .container-sm {
    max-width: 95%;
  }

  #masthead .sitename {
  font-size: 1em;
  }

  #masthead {
  padding: 0;
  }


  h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  margin-top: 0em !important;
  }

h1 {
  font-size: 2em;
}
}