/*
Theme Name: Xmoto One
Theme URI: http://www.osberget.no/
Author: Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Xmoto ONE Wordpress theme
Version: 0.0.56
Tags: oyehaug osberget rasamax
Text Domain: xmotoone
*/
/**
 * Reset CSS instead of Normalize inside of Bootstrap
 */
/* Page commons */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.fw-medium {
  font-weight: 500;
}

* > p:first-child {
  margin-top: 0;
}

* > p:last-child {
  margin-bottom: 0;
}

.alignleft {
  float: left;
  margin: 0 20px 10px 0;
}

.alignright {
  float: right;
  margin: 0 0 10px 20px;
}

.aligncenter {
  margin: 0 auto 10px auto;
  display: block;
}

.grain-bg {
  background: url("images/grain-bg.png");
}

.grain-bg.black {
  background-color: #161616;
}

.text-strong-red strong {
  color: #9E0B28;
  font-weight: normal;
}

@media (min-width: 1200px) {
  .stick-to-right-edge {
    margin-right: calc(0px - ((100vw - var(--scrollbar-width)) / 2 - 100%));
  }
}
.text-strong-red.fw-bold strong {
  font-weight: bold;
}

#licence-categories a {
  transition: background-color 0.5s, color 0.5s;
}

#licence-categories a:hover {
  color: #9E0B28 !important;
  background: white !important;
}

body.category h2 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.pagination .page-numbers {
  font-weight: 200;
  color: white;
}

.pagination .page-numbers.current {
  font-weight: 500;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.more-link {
  font-size: 0;
}

.pagination .page-numbers.prev:before,
.pagination .page-numbers.next:before,
.more-link:before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 17px;
  background: url("images/right-arrow.svg") no-repeat;
  background-size: 100%;
  background-position: center;
}

.pagination .page-numbers.prev:before {
  transform: rotate(180deg);
}

/* WP gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

body .gallery .gallery-item {
  padding: 0 10px;
  position: relative;
  margin: 10px 0 0px 0;
  float: none;
  margin-bottom: 10px;
  width: 33.3333333333%;
}

.gallery.gallery-columns-4 .gallery-item {
  width: 25%;
}

/*.gallery-icon {
    position: relative;
    padding-bottom: 75%;
}*/
.gallery-icon {
  height: 100%;
}

.gallery-icon img {
  /*position: absolute;
  left: 0;*/
  border: none !important;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 20px;
}

.wp-caption-text.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: calc(100% - 20px);
  max-height: 100%;
  overflow: auto;
  padding: 3em 0.77em 0.7em;
  color: #fff;
  text-align: center;
  font-size: 0.8em;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3) 70%, transparent);
  box-sizing: border-box;
  margin: 0;
  border-radius: 20px;
}

.gallery br {
  display: none;
}

.gallery:after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 666px) {
  body .gallery .gallery-item,
  .gallery.gallery-columns-4 .gallery-item {
    width: 50%;
  }
}
/* Video gallery */
.page-template-template-gallery .video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.page-template-template-gallery .video-container p iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

.page-template-template-gallery .video-container p {
  position: relative;
  width: 100%;
  padding-bottom: 60%;
  border-radius: 20px;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .page-template-template-gallery .video-container p {
    position: relative;
    width: calc(50% - 10px);
    padding-bottom: 30%;
  }
}
@media screen and (min-width: 1200px) {
  .page-template-template-gallery .video-container p {
    position: relative;
    width: calc(33.3333333333% - 10px);
    padding-bottom: 18%;
  }
}
/* Hide Google reCaptcha after 1s */
@keyframes hide_after_1s {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100px);
  }
}
.grecaptcha-badge {
  animation-name: hide_after_1s;
  animation-delay: 3s;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  z-index: 1041;
}

.instructor-container .instructor-text strong {
  font-style: normal;
  font-weight: bold;
}

.timetable:not(.front-page-timetable) tr:not(:last-child) {
  border-bottom: 2px solid var(--bs-primary);
}

.timetable .time-cell {
  width: 1%;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .star-icon {
    width: 40px;
  }
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  font-size: 36px;
  margin-top: 15px;
}
.post-content p {
  display: inline;
}
.post-content a {
  color: white;
  text-decoration: underline;
}

.header-logo {
  width: 200px;
}

@media (max-width: 767px) {
  .header-logo {
    width: 100px;
  }
  .post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    font-size: 20px;
  }
}
@media (max-width: 991px) {
  .post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    font-size: 24px;
  }
}
.moto-icon-white svg {
  color: white;
  position: absolute;
  top: 0;
  right: -75px;
  width: 150px;
  height: auto;
}

.moto-icon-primary svg {
  color: var(--bs-primary);
  position: absolute;
  top: 0;
  right: -75px;
  width: 150px;
  height: auto;
}

.btn-primary-inverted {
  background-color: transparent;
  border-color: white;
  color: white;
  text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}
.btn-primary-inverted:hover {
  background-color: white;
  color: var(--bs-primary);
}

.bg-letter {
  position: absolute;
  top: 0;
  right: -20%;
  height: 100%;
  width: auto;
  color: rgba(255, 255, 255, 0.1);
  font-size: 45em;
  font-weight: 700;
  line-height: 0.7;
  cursor: default;
  z-index: -1;
}

@media (min-width: 768px) {
  .translateY_advantages {
    transform: translateY(150px);
  }
}
.btn-primary:hover {
  background-color: white;
  border-color: white;
  color: var(--bs-primary);
}

.btn {
  transition: background-color 0.5s, color 0.5s;
}

.navigation.pagination .nav-links span,
.navigation.pagination .nav-links a {
  margin-right: 20px;
}

.gradient-img {
  background-image: radial-gradient(farthest-corner at 60% 40%, rgba(0, 0, 0, 0) 0%, #161616 80%);
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.primary-menu a {
  color: var(--bs-dark);
  text-decoration: none;
}
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  left: -50px;
  top: 100%;
  width: auto;
  background: var(--bs-secondary);
  z-index: 1;
  color: white;
  padding: 20px 0 20px 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
  font-size: 16px;
}
.primary-menu .sub-menu a {
  color: var(--bs-dark);
}
.primary-menu .sub-menu ul {
  list-style: none;
  padding-left: 0;
  -moz-columns: 1;
       columns: 1;
}
.primary-menu .sub-menu ul li {
  line-height: 2;
}
.primary-menu li:hover > .sub-menu {
  display: block;
}
.primary-menu .hover-helper {
  position: relative;
}
.primary-menu > li:hover > .hover-helper:before {
  content: "";
  width: calc(100% + 2.25rem);
  position: absolute;
  display: block;
  height: 100px;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
}

/* Expand arrow */
.sub-menu-checkbox-label {
  display: none;
  float: right;
  top: 0;
}

.sub-menu-checkbox-back-label {
  display: none;
}

@media (max-width: 1199px) {
  .sub-menu-title {
    display: none;
  }
  .sub-menu-checkbox-label {
    display: block;
  }
  .sub-menu-checkbox-back-label {
    display: inline-block;
  }
  .primary-menu {
    transform: translatex(100%);
    transition: transform 0.5s;
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    background: var(--bs-secondary);
    font-size: 15px;
    padding: 20px 15px 20px 15px !important;
    z-index: 1;
    height: auto;
    display: none;
    width: 400px;
    max-width: 100%;
  }
  .primary-menu > li {
    width: 100%;
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  .primary-menu a {
    color: var(--bs-dark);
  }
  .primary-menu .sub-menu-checkbox:checked ~ .sub-menu {
    max-height: 1000px;
    padding: 0px 0 0 0;
  }
  .primary-menu .sub-menu {
    display: block;
    position: relative;
    right: 0;
    top: 0;
    left: -15px;
    width: auto;
    background: var(--bs-secondary);
    padding: 0;
    color: white;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s;
  }
  .primary-menu .sub-menu ul {
    -moz-columns: unset;
         columns: unset;
  }
  .primary-menu .sub-menu ul > li {
    padding-bottom: 5px;
    margin-bottom: 15px;
  }
  .primary-menu .sub-menu ul > li a {
    color: var(--bs-dark);
    font-size: 15px;
  }
  #menu-checkbox:checked ~ .primary-menu {
    transform: translatex(0);
  }
}
@media (max-width: 400px) {
  .primary-menu {
    font-size: 14px;
    font-weight: lighter;
  }
  .primary-menu .sub-menu {
    white-space: normal;
  }
}
/* Menu button - static hamburger */
.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#menu-checkbox {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: var(--bs-primary);
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-button::before {
  content: "";
  margin-top: -8px;
}

.menu-button::after {
  content: "";
  margin-top: 8px;
}

#menu-checkbox:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(45deg);
}

#menu-checkbox:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-checkbox:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-45deg);
}

.sub-menu-checkbox-label {
  width: 10px;
  height: 10px;
}
.sub-menu-checkbox-label::before {
  content: "";
  width: 2px;
  height: 10px;
  transition: 0.5s;
  background-color: white;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.sub-menu-checkbox-label::after {
  content: "";
  width: 10px;
  height: 2px;
  background-color: white;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.sub-menu-checkbox:checked ~ .sub-menu-checkbox-label::before {
  transform: rotate(90deg);
}

.wpcf7 {
  color: white;
}
.wpcf7 .form-control {
  color: var(--bs-white);
  border: none;
  border-bottom: 1.5px solid var(--bs-primary);
  background-color: var(--bs-light-blue);
  margin-bottom: 15px;
  border-radius: 0;
  padding: 12px 6px;
}
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=number], .wpcf7 input[type=tel] {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--bs-primary);
  margin-bottom: 15px;
  color: white;
  font-size: 16px;
}
.wpcf7 textarea {
  width: 100%;
  font-size: 16px;
  color: white !important;
}
.wpcf7 textarea::-moz-placeholder {
  color: white;
  font-size: 16px;
}
.wpcf7 textarea::placeholder {
  color: white;
  font-size: 16px;
}
.wpcf7 .Phone_prefix input {
  font-size: 16px;
  padding: 12px 6px;
}
.wpcf7 label {
  font-size: 16px;
}
.wpcf7 input::-moz-placeholder {
  color: white;
  font-size: 16px;
}
.wpcf7 input::placeholder {
  color: white;
  font-size: 16px;
}
.wpcf7 input::-webkit-input-placeholder {
  color: white;
  font-size: 16px;
}
.wpcf7 input::-moz-placeholder {
  color: white;
  font-size: 16px;
}
.wpcf7 .input-group-prepend .input-group-text {
  border: none;
  border-bottom: 1.5px solid var(--bs-primary);
  background-color: var(--bs-light-blue);
  margin-bottom: 15px;
  color: white;
  border-radius: 0;
  font-size: 16px;
  padding: 12px 6px;
}
.wpcf7 select {
  color: white;
  font-size: 16px;
  border: none;
  border-bottom-color: currentcolor;
  border-bottom-style: none;
  border-bottom-width: medium;
  border-bottom: 1.5px solid var(--bs-primary);
  background: transparent;
  margin-bottom: 15px;
  padding: 10px 8px;
}
.wpcf7 select option {
  background-color: #161616;
  margin: 0;
  padding: 0 8px;
}
.wpcf7 .wpcf7-list-item-label {
  margin-left: 30px;
}
.wpcf7 .wpcf7-list-item {
  margin: 0;
}
.wpcf7 input[type=checkbox] {
  -webkit-appearance: none;
  border-bottom: none;
  padding: 0;
  position: absolute;
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid black;
  background-color: white;
  margin: 0;
  border-radius: 0;
}
.wpcf7 input[type=checkbox]:before {
  content: "";
  display: block;
  width: 7px;
  height: 15px;
  border-right: 2px solid var(--bs-primary);
  border-bottom: 2px solid var(--bs-primary);
  transform: translate(8px, 2px) rotate(45deg);
  transition: opacity 0.25s;
  opacity: 0;
}
.wpcf7 input[type=checkbox]:checked:before {
  opacity: 1;
}
.wpcf7 .wpcf7-submit:disabled {
  opacity: 0.5;
}
.wpcf7 .wpcf7-submit {
  margin-top: 20px;
  width: 100%;
}
.wpcf7 .wpcf7-spinner {
  display: none;
}

.modal-header, .modal-body {
  padding: 20px !important;
}

.rounded-circle {
  border-radius: 50%;
}

a.read-more {
  display: none;
}

.gradient50 {
  background-image: linear-gradient(to bottom, transparent 0% 50%, var(--bs-primary) 50%);
}