/*
  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;
    }
}

/* ==========================================================================
   Program Switcher
   Dropdown for users with multiple memberships to switch between programs
   ========================================================================== */

.genoo-program-switcher {
    position: relative;
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
}

.genoo-program-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    color: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.genoo-program-switcher__toggle:hover,
.genoo-program-switcher__toggle:focus {
    border-color: #2295ff;
    background-color: rgba(34, 149, 255, 0.05);
    outline: none;
}

.genoo-program-switcher__current {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genoo-program-switcher__arrow {
    font-size: 8px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.genoo-program-switcher__toggle[aria-expanded="true"] .genoo-program-switcher__arrow {
    transform: rotate(180deg);
}

.genoo-program-switcher__menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 4px 0 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 99999;
}

.genoo-program-switcher__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.genoo-program-switcher__item {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s ease;
    font-size: 14px;
    line-height: 1.4;
}

.genoo-program-switcher__item:hover,
.genoo-program-switcher__item:focus {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    outline: none;
}

.genoo-program-switcher__item.is-active {
    color: #2295ff;
    font-weight: 600;
}

.genoo-program-switcher__item.is-active::before {
    content: "\2713\0020";
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Responsive adjustments */
@media screen and (max-width: 980px) {
    .genoo-program-switcher {
        margin: 10px 0;
    }
    
    .genoo-program-switcher__menu {
        min-width: 200px;
    }
}
