/* This file is used to store the css that was not compiled from SASS */
/* Fonts */
html,
input,
button,
select,
textarea,
p,
span,
body,
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5 {
  font-family: "Open Sans", "Tahoma", Arial, sans-serif;
}
/* Span lengths */
.span4 {
  width: 33.3%;
  float: left;
  margin-left: 20px;
}
.span4:first-child {
  margin-left: 0;
}
.span6 {
  width: 50%;
  float: left;
  margin-left: 20px;
}
.span6:first-child {
  margin-left: 0;
}
.clear:after {
  content: "";
  display: table;
  clear: both;
}
/* Html */
html {
  background: #FFF;
}
/* Body */
body {
  background-image: none;
}
/* Link and button colors */
a:hover,
a:focus {
  color: #085A80;
}
.available-courses__list-item.available-courses__list-item--is-selected a {
  color: #085A80;
}
.button,
.button:visited,
.wpcf7-submit {
  border: 0;
  border-radius: 0;
  background: #085A80;
  color: #FFFFFF;
  transition: all 0.3s;
  font-family: "Open Sans", "Tahoma", Arial, sans-serif;
  text-shadow: initial;
  font-weight: 600;
  padding: 5px 20px !important;
  height: auto;
  width: auto;
  text-transform: uppercase;
}
.button:active,
.button:visited:active,
.wpcf7-submit:active {
  background: #085A80;
  border: 0;
  border-radius: 0;
}
.button:hover,
.button:visited:hover,
.wpcf7-submit:hover,
.button:focus,
.button:visited:focus,
.wpcf7-submit:focus {
  background: #000000;
  border: 0;
  border-radius: 0;
}
/* Fix the lists */
ul li {
  list-style: disc;
}
/* Flex cards */
.flex-cards {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -js-display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-left: -20px;
  margin-right: -20px;
}
/* Responsive Menu */
#responsive-menu #responsive-menu-title {
  font-weight: 600;
}
.responsive-course-search label {
  display: none;
}
.responsive-course-search form {
  overflow: hidden;
}
.responsive-course-search input[type="text"] {
  border: 1px solid #EEEEEE;
  padding: 8.2px 10px;
  display: block;
  float: left;
  height: 40px;
  width: calc(100% - 40px);
}
.responsive-course-search button[type="submit"] {
  float: right;
  display: block;
  padding: 7.5px 7.5px;
  background-color: #085A80;
  color: #FFFFFF;
  border: 0;
  transition: all 0.3s;
}
.responsive-course-search button[type="submit"]:hover,
.responsive-course-search button[type="submit"]:focus {
  background-color: #000000;
}
.responsive-course-search button[type="submit"] .dashicons {
  width: 25px;
  height: 25px;
  font-size: 25px;
}
/* Header */
.header {
  border-bottom: 5px solid #085A80;
  background-color: #FFF;
}
.header .main-nav a {
	padding: 10px 20px;
}
.header .header-wrapper {
  max-width: 1300px;
  width: 90%;
  margin: 0px auto;
}
.header .header-logo-ctn {
  margin: 40px 0px 0px 0px;
  width: 290px;
  max-width: 72.5%;
}
@media (max-width: 1155px) {
  .header .header-logo-ctn {
    float: none;
    margin: 10px auto;
  }
}
@media (max-width: 813px) {
  .header .header-logo-ctn {
    margin: 0;
    float: left;
    display: table;
    height: 91px;
  }
}
.header .header-logo-ctn a {
  display: table-cell;
  vertical-align: middle;
}
.header .responsive-menu {
  float: right;
}
.header .responsive-menu #click-menu {
  position: static !important;
  margin: 27px 0px !important;
}
.header .header-right {
  float: right;
}
@media (max-width: 1155px) {
  .header .header-right {
    float: none;
    margin: 0px auto;
  }
}
.header .header-right .pre-nav {
  width: 100%;
  text-align: right;
  margin: 20px 0;
}
@media (max-width: 1155px) {
  .header .header-right .pre-nav {
    text-align: center;
  }
}
.header .header-right .pre-nav div {
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
}
.header .header-right .pre-nav div:last-child {
  margin-right: 0;
}
.header .header-right .pre-nav .top-phone, .header .header-right .pre-nav .top-phone a {
  color: #085A80;
  font-weight: 600;
  font-size: 1.1em;
}
.header .header-right .pre-nav .top-phone .dashicons {
  margin-right: 5px;
}
.header .header-right .pre-nav .top-phone .dashicons-phone {
  -moz-transform: scale(-1, 1) translateY(0.1em);
  -webkit-transform: scale(-1, 1) translateY(0.1em);
  transform: scale(-1, 1) translateY(0.1em);
}
.header .header-right .pre-nav .top-search form {
  overflow: hidden;
}
.header .header-right .pre-nav .top-search input[type="text"] {
  border: 1px solid #EEEEEE;
  padding: 8px 10px;
  display: block;
  float: left;
}
.header .header-right .pre-nav .top-search button[type="submit"] {
  float: right;
  display: block;
  padding: 7.5px 7.5px;
  background-color: #085A80;
  color: #FFFFFF;
  border: 0;
  transition: all 0.3s;
}
.header .header-right .pre-nav .top-search button[type="submit"]:hover,
.header .header-right .pre-nav .top-search button[type="submit"]:focus {
  background-color: #000000;
}
.header .header-right .pre-nav .top-search button[type="submit"] .dashicons {
  width: 25px;
  height: 25px;
  font-size: 25px;
}
.header .header-right .main-nav {
  margin: 20px 0;
  background-color: transparent;
  box-shadow: none;
  display: block;
}
@media (max-width: 1155px) {
  .header .header-right .main-nav {
    text-align: center;
  }
}
.header .header-right .main-nav li {
  position: relative;
}
.header .header-right .main-nav a,
.header .header-right .main-nav li {
  color: #085A80;
}
.header .header-right .main-nav li:hover > a,
.header .header-right .main-nav li:focus > a {
  background-color: #085A80;
  color: #FFFFFF;
}
.header .header-right .main-nav .sub-menu {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
@media (max-width: 1155px) {
  .header .header-right .main-nav .sub-menu {
    left: 50%;
    transform: translateX(-50%);
  }
}
.header .header-right .main-nav .top-nav {
  margin: 0;
  width: auto;
  max-width: initial;
}
@media (max-width: 1155px) {
  .header .header-right .main-nav .top-nav {
    vertical-align: top;
    display: inline-block;
  }
}
.header .header-right .main-nav .current-menu-item > a,
.header .header-right .main-nav .current-menu-parent > a {
  color: #FFFFFF;
  background-color: #085A80;
}
.header .header-right .top-search form label {
  display: none;
}
/* Front page */
.front-page-slider .header-slider-ctn {
  max-width: initial;
  width: 100%;
  margin: 0;
  float: none;
  border: none;
  box-shadow: initial;
  display: block;
}
.hero-link {
  width: 25%;
}
@media (max-width: 813px) {
  .hero-link {
    width: 100%;
    float: none;
  }
}
.hero-link:hover,
.hero-link:focus {
  color: #000000;
}
.hero-link:hover a,
.hero-link:focus a,
.hero-link:hover a h2,
.hero-link:focus a h2 {
  color: #000000;
}
.hero-link a,
.hero-link a h2 {
  font-weight: 600;
  color: #085A80;
}
/* Page Titles */
.page-title {
  background-color: #085A80;
  color: #FFFFFF;
  padding-bottom: 5px;
}
/* Content */
.excerpt-read-more {
  display: none;
}
.button-container {
  float: left;
  text-align: center;
  width: 100%;
}
.button-container .button {
  width: 250px;
  max-width: 100%;
}
.course-category-header-image {
  height: 270px;
  background-position: 0% 0%;
  background-size: cover;
  background-repeat: no-repeat;
}
.term-fire-safety .course-category-header-image {
  background-position: 0% 50%;
}
.term-first-aid .course-category-header-image {
  background-position: 0% 45%;
}
.term-mobile-elevated-working-platform .course-category-header-image {
  background-position: 0% 30%;
}
.term-health-safety .course-category-header-image {
  background-position: 0% 30%;
}
.card-wrapper {
  width: 33.3%;
  float: left;
  padding: 20px;
}
@media (max-width: 1155px) {
  .card-wrapper {
    width: 50%;
  }
}
@media (max-width: 813px) {
  .card-wrapper {
    width: 100%;
  }
}
.card-wrapper .strip {
  height: 100%;
}
.card-wrapper .strip .strip-content {
  height: 100%;
  position: relative;
  padding-bottom: 17.6px;
}
.card-wrapper .strip .strip-title h2 {
  margin-bottom: 0;
}
.card-wrapper .strip .strip-title h2 a {
  font-weight: 600;
  color: #085A80;
}
.card-wrapper .strip .strip-title h2 a:hover,
.card-wrapper .strip .strip-title h2 a:active,
.card-wrapper .strip .strip-title h2 a:focus {
  color: #000000;
}
.card-wrapper .strip .strip-modules {
  margin-bottom: 5px;
  color: #085A80;
}
.card-wrapper .strip .strip-excerpt {
  max-height: 87px;
  overflow: hidden;
}
.card-wrapper .strip .strip-excerpt p {
  margin-bottom: 10px;
}
.card-wrapper .strip hr {
  border-color: #085A80;
}
.card-wrapper .strip .strip-link {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.card-wrapper .strip .strip-link hr {
  width: 100%;
  float: left;
  border-style: solid;
  border-color: #085A80;
}
.card-wrapper .card {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  width: 100%;
  background-color: #FFF;
  position: relative;
  padding-bottom: 19px;
  height: 250px;
  background-size: cover;
}
.card-wrapper .card .card-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.85);
}
.card-wrapper .card .card-content h2 {
  font-weight: 700;
  display: block;
  font-size: 1.3em;
}
.card-wrapper .card .card-link .button {
  text-transform: none;
  font-style: italic;
  font-weight: 400;
  float: right;
  padding: 0px 10px !important;
  margin-bottom: 0;
}
.card-sizer {
  width: 50%;
}
/* Footer */
.page-footer {
  background-color: #085A80;
  color: #FFF;
  padding: 10px 0;
}
.page-footer section {
  color: #FFF;
  width: 90%;
  max-width: 1300px;
  margin: 0px auto;
}
.page-footer .footer-legal,
.page-footer .footer-legal .copyright,
.page-footer .footer-legal .footer-legal__copy {
  margin-bottom: 0;
}

.mailchimp {
  background: #0f5980;
  min-height: 60px;
}
.mailchimp .mc4wp-form-fields
{
  max-width: 1300px;
  width: 90%;
  margin: 0px auto;
  text-align: center;
  padding-top: 10px;
}
span.join {
  color: #fff;
  font-size: 20px;
  display: inline-block;
  padding-right: 20px;
}
.mailchimp .mc4wp-form-fields input {
  display: inline-block;
  margin-right: 11px;
  padding: 7px 15px;
}

.mailchimp .mc4wp-alert.mc4wp-error {
  text-align: center;
  color: red;
  padding-bottom: 7px;
}
.mailchimp .mc4wp-alert.mc4wp-notice,.mc4wp-alert.mc4wp-success {
  text-align: center;
  color: #fff;
  padding-bottom: 7px;
 }
 .mailchimp  p {
  margin: 0px !important;
} 
button#responsive-menu-button
{
  top:70px !important;
}
@media only screen and (max-width: 600px) 
{
  .mailchimp .mc4wp-form-fields
  {
    padding: 10px 0px;
  } 
  span.join 
  {
    padding: 0 0 10px 0; 
    display: block;    
  }
  .mailchimp .mc4wp-form-fields input 
  {
    padding: 3px 5px;
    margin: 0px 0px 8px;
    display: block;
    width: 100%;
  }
}
@media only screen and (min-width: 601px) and (max-width: 1000px) 
{
  .mailchimp .mc4wp-form-fields 
  {
   width: 100%;
   padding: 10px 0;
  }
  span.join 
  {
    font-size: 17px;
   padding-right: 10px;
   }
   .mailchimp .mc4wp-form-fields input 
   {
    padding: 5px 5px;
    max-width: 160px;
   }
}

article.course__info.related_courses ul li {
    list-style: none;
}

article.course__info.related_courses ul {
    padding-left: 0;
}


.fm-subscribe {
	background: #0f5980;
    padding-top: 3em;
    margin-bottom: 3em;
}
.fm-subscribe #field3_3 {
	white-space: nowrap;
    width: min-content;
}

.fm-subscribe .gform_required_legend {
	display:none;
}




body #gform_wrapper_3 #gform_submit_button_3 {
color:#0f5980 !important;
background-color: rgb(240, 240, 240) !important;
}

.fm-sub-inner {	
    width: fit-content;
    margin: 0 auto;
}

.fm-subscribe .title {
	color:white !important;
	align-content: center;
    margin-right: 1em;
}
.fm-subscribe .title, 
.fm-subscribe .form {
	display: inline-flex;
}

/* Available Courses */ 
.available-courses__item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.available-courses__dates {
    font-weight: bold;
    color: #333;
}

.available-courses__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.available-courses__location {
    color: #666;
    font-weight: 500;
}

.available-courses__venue {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
    color: #666;
}

.available-courses__venue-address {
    font-size: 0.9em;
    color: #888;
}

.available-courses__book {
    align-self: flex-start;
    margin-top: 8px;
}

.available-courses__item--empty {
    color: #666;
    font-style: italic;
    padding: 20px 15px;
}

.page-sidebar--large-only {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scroll */
  position: sticky;
  top: 20px;
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
  width: 100%; /* Ensure sidebar takes full width */
}

/* Webkit scrollbar styling (Chrome, Safari, newer Edge) */
.page-sidebar--large-only::-webkit-scrollbar {
  width: 8px;
}

.page-sidebar--large-only::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.page-sidebar--large-only::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.page-sidebar--large-only::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Ensure the parent container allows sticky positioning */
.page-wrap {
  overflow: visible;
}

.available-courses__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  list-style: none;
  width: 100%;
}

.course-card {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.course-card__header {
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.course-card__title {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

.course-card__body {
  padding: 1rem;
}

.course-card__detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #6c757d;
}

.course-card__detail i {
  width: 16px;
  color: #0056b3;
}

.course-card__footer {
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  text-align: right;
}

.course-card .button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #0056b3;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.course-card .button:hover {
  background: #003d82;
}

/* Responsive grid */
/* Remove the grid layout for sidebar */
@media (min-width: 768px) {
  .available-courses__list {
      display: flex;
      flex-direction: column;
  }
}

/* Ensure text doesn't overflow */
.course-card__title,
.course-card__detail span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Keep existing sidebar styles but add/modify these */
.course.page-wrap {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    overflow: visible;
}

.page-content--with-sidebar {
    grid-column: 1;
}

.page-sidebar--large-only {
    grid-column: 2;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 20px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Webkit scrollbar styling */
.page-sidebar--large-only::-webkit-scrollbar {
    width: 8px;
}

.page-sidebar--large-only::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.page-sidebar--large-only::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.page-sidebar--large-only::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive layout */
@media (max-width: 768px) {
    .course.page-wrap {
        grid-template-columns: 1fr;
    }
    
    .course.page-wrap .page-content--with-sidebar,
    .course.page-wrap .page-sidebar--large-only {
        grid-column: 1;
    }
}

/* Base course card styles */
.course-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Header styles for different course types */
.course-card__header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
}

/* Online courses - Orange theme */
.course-card--online .course-card__header {
  background-color: #ff5a00;
  border-left: 4px solid #cc4700;  /* Darker shade of the orange */
}

/* Blended courses - Blue theme */
.course-card--blended .course-card__header {
  background-color: #00b5e4;
  border-left: 4px solid #0090b6;  /* Darker shade of the light blue */
}

/* In-person courses - Dark blue theme */
.course-card--in-person .course-card__header {
  background-color: #005499;
  border-left: 4px solid #003d6f;  /* Darker shade of the dark blue */
}

/* Course title */
.course-card__title {
  margin: 0;
  font-size: 1.1em;
  color: #fff;
}

/* Course body */
.course-card__body {
  padding: 15px 20px;
  background: #fff;
}

.course-card__detail {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #666;
}

.course-card__detail:last-child {
  margin-bottom: 0;
}

.course-card__detail i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Online courses icon color */
.course-card--online .course-card__detail i {
  color: #ff5a00;
}

/* Blended courses icon color */
.course-card--blended .course-card__detail i {
  color: #00b5e4;
}

/* In-person courses icon color */
.course-card--in-person .course-card__detail i {
  color: #005499;
}

/* Footer styles */
.course-card__footer {
  padding: 15px 20px;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
  text-align: right;
}

/* Section headers */
.course-content h3 {
  margin-top: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  color: #333;
}

@media (min-width: 768px) {
  #rmp_menu_trigger-3525 {
    display: none !important;
  }
}

.card-wrapper .card {
    overflow: hidden;
}

.card-wrapper .card .card-content {
    z-index: 1;
}
