/*
 Theme Name:   RMI Judiciary Theme
 Description:  Base theme for RMI Judiciary
 Version:      17.02
 Author:       National Digital
 Author URI:   http://www.nationaldigital.com.au/
*/

/* Add icon after external links */

a:not(.hide-external)[target="_blank"]:after {
  font-family: 'FontAwesome';
  content: " \f08e";
}

/* Add support for WordPress image wrapping */
img.alignright { float: right; margin: 0 0 1em 1em; }
img.alignleft { float: left; margin: 0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; }
.alignleft { float: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
/* Global font and colors styles */

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.6rem;
}

h1, h2, h3, h4 {
  color: #000099;
  font-weight: 600;
}

h1, h2 {
  font-style: italic;
}

a, a:visited, a:focus {
  text-decoration: underline;
  color: #000;
}

a:hover {
  color: #DD7500;
}

/* Page margins */

main {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Header banner styles */

.banner {
  width: 100%;
  background-color: #000099;
}

.banner h1 {
  font-size: 3rem;
}

.banner img {
  max-width: 8rem;
  max-height: 8rem;
}

.banner a, .banner a:hover, .banner a:visited, .banner a:active {
  text-decoration: none;
  color: #fff;
}

.banner .blue {
  background-color: #000099;
  color: #fff;
}

.banner .orange {
  background-color: #DD7500;
  color: #000099;
  box-shadow: 0 0 0.1em 0.1em white outset;
}

.banner .white {
  background-color: #fff;
  color: #000099;
  box-shadow: 0 0 0.1em 0.1em white outset;
}

/* Footer styles */

footer {
  border-top: 0.1rem solid #444;
  padding-top: 2rem;
}

footer span {
  display: inline-block;
}

/* Sidebar and accordian styles */

.left-nav {
  margin-top: 2rem;
}

.left-nav h6 a {
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1em;
  line-height: 1.4em;
  display: block;
}

#menu-homei {
  width: 1em;
  font-size: 1.1em;
  color: #DD7500;
}

#menu-home {
  padding-left: 1em;
}

.accordion-toggle {
  position: relative;
}

a.accordion-toggle {
  padding-left: 2em;
}

.accordion-toggle::before,
.accordion-toggle::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left:0;
  width: 1em;
  height: 0.3em;
  margin-top: -0.1em;
  background-color: #DD7500;
  -webkit-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.accordion-toggle::before {
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
  opacity: 0;
}

.accordion-toggle.collapsed::before {
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
  opacity: 1;
}

.accordion-toggle.collapsed::after {
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.left-nav ul {
  margin: 0.75em 0;
  padding: 0 1em;
  list-style: none;
}

.left-nav ul li:before {
  content: "";
  border-color: transparent #DD7500;
  border-style: solid;
  border-width: 0.35em 0 0.35em 0.45em;
  display: block;
  height: 0;
  width: 0;
  left: -1em;
  top: 0.9em;
  position: relative;
}


/* Mobile navigation styles **/

@media (min-width: 992px) {
  #navigation-primary, .left-nav {
    padding: 0;
  }
}

@media (max-width: 991px) {
  .navbar-header {
    float: none;
  }
  .navbar-left,.navbar-right {
    float: none !important;
  }
  .navbar-toggle {
    display: block;
  }
  .navbar-collapse {
    border-top: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  }
  .navbar-fixed-top {
    top: 0;
    border-width: 0 0 1px;
  }
  .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar-nav {
    float: none !important;
    margin-top: 7.5px;
  }
  .navbar-nav>li {
    float: none;
  }
  .navbar-nav>li>a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .collapse.in{
    display:block !important;
  }

  .navbar-inverse .navbar-brand {
    margin-left: 15px;
  }
}

/* Homepage carousel styles */

#rmiCarousel {
  max-width: 50vw;
}

#rmiCarousel img {
  height: 140px;
  max-height: 420px;
  width: auto;
  margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 991px) {
 .col-sm-6 #rmiCarousel {
   margin-top: 65px;
  }
}

/* Homepage expanded menu styles */

.flexrow {
  display: flex;
  flex-flow: row wrap;
}

@media (max-width: 575px) {
  .flexcol {
    flex: 1 1 100%;
  }
}


@media (min-width: 576px) and (max-width: 767px) {
  .flexcol {
    flex: 1 1 50%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .flexcol {
    flex: 1 1 50%;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .flexcol {
    flex: 1 1 33%;
  }
}

@media (min-width: 1200px) {
  .flexcol {
    flex: 1 1 33%;
  }
 }

/* Google Custom Search style fixes */

.gsc-control-cse .gsc-table-result {
	font-family : inherit;
}

.gsc-control-cse .gsc-input-box {
	height : inherit;
}

input.gsc-input,
.gsc-input-box,
.gsc-input-box-hover,
.gsc-input-box-focus,
.gsc-search-button, input.gsc-search-button-v2 {
	box-sizing  : content-box;
	line-height : normal;
	margin-top  : 0px;
}

.gsc-search-button .gsc-search-button-v2 {
  background-color: #000099;
}

.gsc-search-button .gsc-search-button-v2:hover {
  background-color: #DD7500;
}
