/*
  Theme Name:   Genoo LMS Theme
  Theme URI:    https://genoo.com
  Description:  Divi Child Theme Built by Genoo to Work Well with Learning Management Websites
  Author:       Genoo LLC
  Author URI:   https://genoo.com
  Template:     Divi
  Version:      4.0.0
  Text Domain:  genoo-lms
  Requires at least: 6.0
  Requires PHP: 7.4
*/

/* ==========================================================================
   Parent stylesheet is loaded via wp_enqueue_style() in functions.php
   Do NOT use @import for performance reasons
   ========================================================================== */

/* Fix line next to sidebar on lesson pages */
html body #main-content .container::before {
  margin-right: 80px !important;
}

/* NAV STYLES */

.nav li, .container {
  position: static;
}

.nav > .menu-item:not(.skinny-menu):not(.skinny) > .sub-menu {
  width: 100vw !important;
  left: 0;
  text-align: center;
  display: none;
}
.nav > .menu-item:not(.skinny-menu):not(.skinny):hover > .sub-menu {
  display: block;
}

.nav > .menu-item > .sub-menu > .menu-item {
  width: 30vw !important;
}
.nav > .menu-item > .sub-menu > .menu-item > a{
  text-align: left;
  width: 100% !important;
  font-weight: bold;
}
.nav > .menu-item > .sub-menu > .menu-item > a::after {
  content: '' !important;
}

.sub-menu > .menu-item  > .sub-menu {
  display: block !important;
  padding: 6px 0;
  box-shadow: none;
  position: static;
  width: 100%;
  visibility: visible;
  opacity: 1;
}

.nav > .menu-item > .sub-menu > .menu-item > .sub-menu > .menu-item > a {
  min-width: calc( 30vw - 60px ) !important;
}

/* MAIN CALL TO ACTION */

.main-call-to-action {
  background: #008593;
  border: none;
  color: #ffffff !important;
  padding: 4px 30px;
  border-radius: 4px;;
  font-size: 20px;
}

.main-call-to-action:hover {
  background: #006573;
  border: none;
}

/* LifterLMS */
article.course,
article.lesson {
  max-width: 920px;
  padding: 20px;
  margin: 0 auto;
}

article.course .post-meta ,
article.course .llms-author, .llms-meta-title,
article.course #comments{
  display: none;
}

.logged-in .llms-tooltip-content {
 font-size: 0;
}
.logged-in .llms-tooltip-content::after {
  content: 'Coming Soon';
  font-size: 14px;
}

/* LifterLMS Lesson Styling */

.lesson .post-meta {display: none;}
.lesson h1 {
  text-align: center;
  font-weight: bold;
  color: #262261 !important;
}


.llms-video-wrapper {
  padding: 20px 20px 40px 20px;
  background: #262261;
  margin-bottom: 0 !important;
}
.center-video {
  position: relative;
  padding-top: 54.25%;
  padding-top: 0; /*25px;*/
  height: 0;
}
.center-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.llms-video-wrapper__under {
  background-color: #262261;
  padding: 10px 20px 30px;
  margin-top: -20px;
  font-size: 32px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 100px;
}
.llms-video-wrapper__under a {
  position: relative;
  display: inline-block;
  top: -2px;
  margin-left: 20px;
  border: solid #ffffff 2px;
  padding: 0 80px;
  line-height: 40px;
  color: #ffffff !important;
  font-size: 16px;
  z-index: 2;
  transition: color 0.3s ease-in;
}

.llms-video-wrapper__under a:hover {
  color: #262261 !important;
}

.llms-video-wrapper__under a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  left: 0;
  display: block;
  background: #ffffff;
  transition: width 0.3s ease-in;
  z-index: -1
}
.llms-video-wrapper__under a:hover::before{
  width: 100%;
}

.lesson h2 {
  text-align: center;
}

.course-item-download {
  background:#eeeeee;
  padding: 20px;
  text-align: center;
}
.white-container {
  background: #ffffff;
  padding: 20px;
}

.course-item-download a {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  /* margin-left: 20px; */
  width: 100%;
  border: solid #262261 2px;
  /* padding: 0 80px; */
  line-height: 40px;
  color: #262261 !important;
  font-size: 16px;
  z-index: 2;
  transition: color 0.3s ease-in;
}

.course-item-download a:hover {
  color: #ffffff !important;
}

.course-item-download a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 100%;
  left: 0;
  display: block;
  background: #262261;
  transition: width 0.3s ease-in;
  z-index: -1
}
.course-item-download a:hover::before{
  width: 100%;
}

.lesson .llms-back-to-course,
.lesson .llms-next-lesson,
.lesson .llms-prev-lesson {
  margin-top: 40px;
}

article.course h1{
  text-align: center;
}

article.course .post-meta {
  display: none;
}

.llms-lesson-button-wrapper {
  padding-top: 60px;
}

.lesson #comments{
  display: none;
}

.form-button-submit.genooButton {
  position: relative;
  display: inline-block;
  border: solid #262261 2px;
  padding: 0 80px;
  line-height: 40px;
  color: #262261;
  font-size: 16px;
  z-index: 2;
  transition: all 0.3s ease-in;
  background: transparent;
  z-index: 1;
}

.form-button-submit.genooButton:hover {
  color: #ffffff;
  background: #262261;
  border-color: #ffffff;
}

.woocommerce-shipping-fields {
  display: none;
}
.course .media {display: none;  }

.llms-loop-item:nth-of-type(3n +1) {
  clear: both;
}

.llms-categories {
  display: none;
}

.dropdown-menu a {
  white-space: pre-wrap !important;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

.single-post .col-md-9 {
  width: calc(900px * 9/12);
  margin-left: calc( 50% - 450px);
}
.single-post .col-md-3 {
  width: calc(900px * 3/12);
}
.single-post #comments {
  display: none;
}

.dropdown-menu ul .dropdown-menu li {
  padding-left: 10px;
}

.wp-video, .mejs-container {
  width: auto !important;
}
body .mejs-controls {
 display: none !important;
}

/* Hide Course Featured Image */
.et_post_meta_wrapper img {
    display: none;
}

.llms-access-plan-title,
.llms-access-plan-content {
    display: none;
}
.llms-author,
.webui-popover-title{
    display: none !important;
}
.llms-access-plan-footer {
    background: transparent !important;
    border: none;
}
.llms-members-only-restrictions::before {
    content: 'Only available for Members of:';
}
.llms-members-only-restrictions a {
    pointer-events: none;
    text-decoration: none !important;
}

#top-menu li li {
    vertical-align: top;
}


@media screen and (min-width: 1450px) {
    .et_right_sidebar #main-content .container::before {
        display: none;
    }
}

.sub-menu {
    margin-top: -8px;
}

.et-cart-info {
  display: none;
}

.et_header_style_centered #main-header div#et-top-navigation {
    position: static !important;
}

.forum-template-default #container {
    max-width: 900px;
    margin: 60px auto;
}
.llms-notice a[href*="/membership/"] {
    color: inherit;
    pointer-events: none;
}

body.forum #sidebar {
    display: none;
}
body.forum #left-area {
    width: 100%;
}

.et_right_sidebar #main-content .container::before {
    display: none;
}

.widget_lesson_link_widget li {
    list-style-type: none;
}
.widget_lesson_link_widget img {
    width: 16px;
    position: relative;
    top: 3px;
    margin-right: 4px;
    display: inline-block;
}
.widget_lesson_link_widget li a {
    display: inline-block;
    width: calc(100% - 20px);
    vertical-align: top;
}
#qt_bbp_reply_content_toolbar {
    display: none;
}

body.single-lesson #left-area,
body.single-lesson #sidebar{
    margin-top: 0;
}
body.single-lesson .llms-parent-course-link {
    margin-top: 80px;
}

#bbpress-forums+h2,
#bbpress-forums+h2+#bbpress-forums{
    display: none;
}

@media screen and ( min-width: 981px ) {
    .widget_lesson_link_widget {
        max-width: none;
        width: 33vw !important;
    }
}
