/*
Put repeatedly used colors here.
use them with "color: var(--colorname);"
for example, klas-green would be...
color: var(--klas-green);
to change the color, change it in root definition, that will auto-magically change it everywhere.
*/
:root {
  --klas-primary: #00765a;
  --klas-green: #0B5E4A;
  --klas-lt-green: #478977;
  --klas-border-green: #0B6D2C;
  --klas-hover-background: #004231; /* very dark 00765a */
  --klas-white: white;
}

/* font edits */ 
h2, h2 a:link, h2 a:visited {
    color: #0d1724;
    font-family: Palatino Linotype, Book Antiqua, Palatino, serif, Arial, Verdana, sans-serif;
}
h2, .content-category h1, .registration h1 {
    margin-bottom: .6rem;
    font-size: 2.4rem;
    font-weight: 400;
}

h3,
h3 a:link,
h3 a:visited,
h3 a:hover,
h3 a:active{
  font-weight: 400;
}


h4 {
    font-family: Rubik, Arial, Verdana, sans-serif;
    color: #000000;
}

h4 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6rem;
}

/* set top spacing for top-1 */
.top-1.top-1a {
    padding-top: 4px;
}

/* turn off front end article icons */
.item-content > .icons > .btn-group.pull-right {
  display: none;
}

.item-page .article-info {
  display: inline;
}

.maincontent .tags {
  margin-bottom: 10px !important;
}

.tags li {
  margin: 2px !important;
}

.maincontent .tags a {
  color: white !important;
  background: var(--klas-primary) !important;
  padding: 0 10px;
  line-height: 28px;
}
.tags a.btn {
  font-weight: 400;
}


/* article info */
dl.article-info > dd.published {
  margin-left: 0;
}

dd.modified {
  margin-left: 0;
}

/* checkbox border */
.ns-bs5 .form-check-input {
    border: 1px solid var(--klas-border-green) !important;
}

.j51-profile-details {
  flex: 1;
}

.text-light h4 {
  opacity: .9;
}

/* Highlight text for login prompt - Klas Green */
h6 {
  /* font-family: relative; ERROR */
  font-weight: bold;
  font-style: italic;
  line-height: 18px;
  color:  var(--klas-green);
  text-rendering: optimizelegibility;
}

/* Highlight Text - Klas Lt Green */
em.highlight.green {
  background: none repeat scroll 0 0 var(--klas-lt-green);
}

em.highlight {
  border-radius: 0 0 0 0;
  font-style: normal;
  padding: 5px 10px;
  text-shadow: none;
}

/* overide the ? in login */
.fa-question-circle{
  color: #fff;
}

/*
 *
 * forms
 *
*/
.top-1a > .span6 {
  margin: 0 !important;
}



/* search */
.top-search .module_surround {
    padding-top: 4px !important;
}

/*
 * KUNENA DISCUSS
*/
/* entry box */
.kunenadiscuss textarea.form-control.counted {
  height: 4rem;
}

/* center avatar */
.kunenadiscuss > .container-fluid > .row-fluid > .span1 {
  text-align: center;
}

.kunenadiscuss [class^="kwho-"] img.img-circle {
  height: 90px;
  width: 90px;
  min-width: 90px;
  min-height: 90px;
  right: 10px;
}
/* -- END FORMS -- */


/* Horizontal Rule length. */
hr {
  max-width: 1200px;
  margin: 15px auto 20px;
}

/* List Style - Tighten spacing up just a littlebit. */
ul.tick li, ul.plus li, ul.star li, ul.dot li {
  list-style: none outside none;
  padding: 4px 0 3px 30px;
}

/* footer */
footer{
  /* text-align: left; */
  padding: 1rem 1rem 4.5rem 1rem;
  flex-wrap: nowrap;

}

/* accept cookies - Move it away from support button */
#cookiesck > .inner{
  display: grid !important;
  justify-content: space-around;
  grid-template-columns: auto auto;
  text-align: inherit !important;
  width: calc(100% - 150px);
  align-items: center;
}
@media screen and (max-width: 759px) {
  #cookiesck > .inner{
    display: grid !important;
    justify-content: space-between;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-bottom: 3rem;
    text-align: center !important;
    width: calc(100% - 50px);
  }
}

#cookiesck[data-layout="layout1"] #cookiesck_buttons
{
  float: none !important;
  text-align: center;
}


/* header text block for mobile */
@media screen and (max-width: 440px) {
  .header-2 {
    text-align: center;
  }
}

/* scribe text */
.scribe-imagery.span3 {
  margin-left: 0;
  float: right;
}
.scribe-text.span9 {
  margin-left: 0;
}

/*
** Regular Labs Tabs **
*/
/* border */
.tab-content{
  border: 2px solid var(--klas-border-green) !important;
}
/* tab border */
.rl_tabs.outline_handles ul.nav-tabs>li a, .rl_tabs.outline_handles ul.nav-tabs>li a:hover {
  border: 2px solid var(--klas-border-green) !important;
  border-bottom: 0 !important;
}
/* tab color */
.rl_tabs .nav-tabs>li.active>a, .rl_tabs .nav-tabs>li.active>a:hover{
  background: #fff !important;

}
/* font */
.rl_tabs>ul.nav-tabs>li>a {
  color: var(--klas-border-green);
  font-weight: bold;
}

/*
** Regular Labs Slider **
*/

.rl_sliders.accordion>.accordion-group.active>.accordion-heading>a.accordion-toggle {
  background-color: #f8f8f8;
  color: var(--klas-border-green) ;
}

/* Slider border */
.rl_sliders.accordion>.accordion-group {
  margin-bottom: 2px;
  border: 2px solid var(--klas-border-green);
}

/* Cards */
.j51cards .j51cards_title {
  font-size: 1.3rem;
}
.j51cards img {
  width: 100%;
  max-width: 180px;
  margin: 1rem;
}
.j51cards {
  margin-bottom: 2rem;
}
.j51cards figure {
  transition: all .2s ease;
}
.j51cards figure:hover {
  -webkit-transform: scale(1.025) translateY(-4px);
  transform: scale(1.025) translateY(-4px);
}

/* sliders color */
.rl_sliders .nav-.rl_sliders>ul.nav-sliders>li>a>li.active>a, .rl_.rl_sliders>ul.nav-sliders>li>a, .nav-.rl_sliders>ul.nav-sliders>li>a>li.active>a:hover{
  background: #fff !important;
}

/* font */
.rl_sliders.accordion>.accordion-group.active>.accordion-heading>a.accordion-toggle {
  background-color: #f8f8f8;
  color: var(--klas-border-green);
  font-weight: bold;
}

/* Search Button */
.label-info, .badge-info {
  background-color: var(--klas-border-green);
}

input#search-area815 {
  display: block;
  position: relative;
  height: 27px;
  width: 100%;
  background-color: transparent;
  box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
  -ms-box-sizing: border-box !important;
  -webkit-box-sizing: border-box !important;
  -khtml-box-sizing: border-box !important;
  border: 1px #0B6D2C solid;
  border-right: none;
  line-height: 27px;
  border-radius: 0;
  float: left;
  margin: 0;
  z-index: 4;
  padding: 0 39px 0 28px;
}
/* End Search Button */



/* Edit line weight/colour */
.table th, .table td {
  padding: 8px;
  line-height: 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #0b5e4a;
}

/*
 *  Blog
 */
.blog .item-image:before {
  background-color: #383232;
  right: 0;
}
.blog .item-image:before, .blog .item-image:after {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 8px;
  content: '';
  opacity: .8;
}
.blog .item-image:after {
  background-color: var(--primary);
  right: 66%;
}

/*
 * Remove expired statement from news/events - J4 Bug
 */
page-header, .label.label-warning {
  display: none;
}

 /* ugly fix for home col-md-6 */
 .col-md-6 {
    flex: 1 0 auto;
    width: 50%;
  }

/*
 * Creates bar above and below buttons
 */
a.btn, a.btn:hover {
  border: none;
  border-radius: unset;
  padding: 14px 22px;
  margin: 5px 10px 5px 0;
  text-transform: uppercase;
  position: relative;
  font-weight: 700;
  font-size: 13px;
}

.btn:before,
.btn:after {
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  border-style: hidden;
  border-width: 0;
  border-color: transparent;
  content: "";
  height: 0;
  position: absolute;
  width: 100%;
  background: none;
  left: 0;
  right: 0;
}
.btn:before {
  top: 0;
}
.btn:after {
  bottom: 0;
}

.btn:hover:before {
  background-color: var(--klas-primary);
  top: -10px;
}

.btn:hover:after {
  background-color: var(--klas-primary);
  bottom: -10px;
}

.btn:hover:after, .btn:hover:before {
  opacity: .5;
  left: 0;
  height: 3px;
}

.btn:hover, .button:hover, button:hover {
  border: hidden transparent;
}

.layerslideshow-title-container, .layerslideshow-caption-container {
    text-align: left;
}
.layerslideshow .slide-buttons {
text-align: left;
}

/* fix col-12 not clearing left/right */
.col-12, .col-md-12, .col-xs-12, . col-lg-12 {
  clear: both !important;
  min-width: 100%;
}
.homepage-header h2 {
  clear: both;
}

/* article info box fix */
.article-info {
  font-size: .8em;
}
    
/* hide expired */
.page-header .label.label-warning {
  display: none;
}


/* 
 * SCLOGIN SETTINGS 
*/

/* Login buttons */
.sourcecoast button.btn, .sourcecoast .btn, .ns-bs5 .btn, .sourcecoast input[type="submit"].btn {
  background: var(--klas-primary);
  color: var(--klas-white);
}
.sourcecoast button.btn:hover,
.sourcecoast .btn:hover,
.sourcecoast .btn:hover::before,
.sourcecoast .btn:hover::after,
.ns-bs5 .btn:hover,
.sourcecoast button.btn:hover::before,
.sourcecoast button.btn:hover::after,
.sourcecoast input[type="submit"].btn:hover {
  background: transparent;
  }

.sourcecoast span.input-group-text.btn {
  background: var(--klas-primary);
  color: var(--klas-white);
  }

/* Top login button */
.top-login a.btn.login-btn {
  color: var(--klas-white);
  background: var(--klas-green);
  padding: 8px 30px !important;
  margin: 4px 0;
  max-width: fit-content;
  float: right;
}

.ns-bs5 .form-control {
  background: var(--klas-white);
  }

/* crazy border radius fix */
.ns-bs5 .input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),
.ns-bs5 .input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,
.ns-bs5 .input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,
.ns-bs5 .input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.ns-bs5 .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),
.ns-bs5 .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,
.ns-bs5 .input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,
.ns-bs5 .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.ns-bs5 .input-group-text,
.ns-bs5 .form-control,
.ns-bs5 .btn,
.ns-bs5 button{
  border-radius: 0 !important;
}

/* top sclogin */
.module.sclogin.float-end.top-login {
  margin-top: 16px;
  margin-left: .5rem;
}
.top-login {
  padding: 0 !important;
  margin: -4px 0 0;
}
/* we have to resize the top margin due to template designs */
  .top-1a .module_surround {
    padding: 0px !important;
    padding-bottom: 0 !important; /* This is NOT reduntant */
  }


/* stop stupid margin offset for children */
.module.sclogin.float-end {
    margin-top: 0;
}

/* fix bottom module width */
.module.bottom-login {
    max-width: 60%;
}
/* user icon */
.icon-fw.icon-user {
  font-size: 24px;
}

/* top login button click fix per sourcecoast */
.module.sclogin.float-end {
  z-index: 10000;
}

/* top login modal */
.form-sclogin-submitcreate .btn.login-btn {
  width: 100px;
  height: 54px;
}
#form-sclogin-remember-863{
  padding-top: 16px;
  width: 110px;
}
span.forgot-username {
    position: relative;
    top: -14px;
}
/* nudge white space away from next to button */
.sourcecoast span.input-group-text.btn {
    margin-right: 0;
}

/* Minitek forum search */
body.com_kunena #container_top1_modules {
    margin-top: 40px;
}

/* klas help button */
.u-userLauncherColor:not([disabled]) {
    background-color: var(--klas-green) !important;
}

/* force search and login to behave */
.top-0.top-0a {
  width: 100%;
}
.sclogin.sourcecoast.ns-bs5 {
  float: right;
  margin-top: 10px;
}
.sourcecoast .btn {
  padding: 8px 22px !important;
 }

/* temp fix for kunena */
#top-0 {
  margin: 8px 0;
}

/*
 *
 * Post release bug fixes 
 *
*/
/* add bullet points ability */
li {
  list-style-position: inside;
}
/* revert padding-left: 0 for indents */
li ul {
    padding-left: revert;
}

/* prevent bullets on tags */
.maincontent .tags {
    list-style: none;
}