/*
Theme Name: SerVirtual LMS
Theme URI: http://servirtual.cl
Version: 1.1
Description: Theme desarrollado para SerVirtual
Author: SerVirtual, DYGO
Author URI: http://servirtual.cl
template: bb-theme
*/

/* grilla de cursos */

.fl-post-grid-post.sfwd-courses {
    position: relative;
    padding-bottom: 20px;
}

.fl-course-meta {
    position: absolute;
    bottom: 10px;
    right: 20px;
    left: 20px;
}

.fl-course-price, .fl-course-type {
    display: inline-block;
    /*position: absolute;*/
    /*right: -10px;*/
    /*bottom: 10px;*/
    background: #808080;
    color: #fff;
    padding: 2px 8px;
    border-radius: 1px;
    font-size: 12px;
}

.fl-course-price {
    background: #3ba5e6;
}

.fl-course-type.closed {
    background: #309835;
}

.fl-course-type.free,
.fl-course-type.open {
    background: #309835;
}

.fl-course-modality {
    display: inline-block;
    background: #808080;
    color: #fff;
    padding: 2px 8px;
    border-radius: 1px;
    margin-right: 5px;
    font-size: 12px;
}

.single-course-modality .fl-course-modality {
    background: #fff;
    color: #004062 !important;
}

/* post grid */

.fl-post-grid .fl-post-grid-title {
    font-weight: 700;
}

/* user reviews en home */


.user-reviews .fl-testimonial {
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    text-align: center;
}

.user-reviews .fl-testimonial p:first-of-type::before,
.user-reviews .fl-testimonial p:first-of-type::after {
    font-family: 'fontAwesome';
    display: inline-block;
    font-size: inherit;
    opacity: .5;
}
.user-reviews .fl-testimonial p:first-of-type::before {
    content: '\f10d';
    margin-right: 8px;
}
.user-reviews .fl-testimonial p:first-of-type::after {
    content: '\f10e';
    margin-left: 8px;
}

/* mobile menu color hamburger */

@media (max-width: 767px) {
    /* Makes these changes only when screen sizes is 767 px or less */
    .fl-page-nav-collapse ul.navbar-nav > li > a {
        color: #f8bf7a; /* Rule 1: Sets color for default expanded menu links */
    }

    .fl-page-nav-collapse ul.navbar-nav > li.current-menu-item > a {
        color: #d4dccd; /* Rule 2: Sets color for active page menu link */
    }

    .fl-page-nav .navbar-toggle * {
        color: #c70919; /* Rule 3: Sets color for hamburger icon or MENU text */
    }

    .fl-page-nav-toggle-icon.fl-page-nav-toggle-visible-mobile .fl-page-nav .navbar-toggle {
        top: 38px;
        font-size: 32px
    }
}

/* contenido learndash */

#learndash_course_content,
#learndash_lesson_topics_list {
    margin: 30px 0;
}

#learndash_course_content_title {
    margin: 0 0 20px 0;
    font-size: 24px;
}

#btn-join {
    display: none;
}

/* video responsive en learndash */

.ld-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
    margin-bottom: 30px;
}

.ld-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* formulario CRM de contacto */

.zsFormClass td {
    padding: 5px;
}

/* buscador de cursos */

.fl-course-search {
    position: relative;
}

.fl-course-search .fl-search-input {
    height: 44px;
}

.fl-course-search .fl-search-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0.5;
    transition: opacity .3s;
    color: #004062 !important;
    background: transparent;
    border: none;
    padding: 0;
}

.fl-course-search .fl-search-input:focus + .fl-search-icon,
.fl-course-search .fl-search-icon:hover {
    opacity: 1;
}

/* Course eventos */

.course-events__list {

}

.course-event__item {
    list-style: none;
    margin-bottom: 8px;
    position: relative;
}

.course-event__item:before {
    font-family: FontAwesome;
    content: '\f073';
    display: inline-block;
    position: absolute;
    left: -20px;
    top: 0;
}

/* widgets */

.widget > .widgettitle {
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.widget li.current-cat {
    font-weight: bold;
}

.widget ul.children {
    margin-left: 15px;
    margin-top: 5px;
}

#footer .fl-rich-text > p {
    font-size: 12px;
}

/* post */

.fl-module-fl-post-content p,
.fl-module-fl-post-content ul {
    margin: 0 0 18px 0;
}

.fl-module-fl-post-content ul li {
    margin: 0 0 6px 0;
}

/* documents */

.related_list {
    background-color: #FFFFFF;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    margin-top: 30px;
}

.related_list .heading {
    background-color: #f3f3f3;
    color: #333333;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding: 1% 2%;
    font-weight: normal;
    margin: 0;
    display: block;
    font-size: 12px;
}

.related_list .content {
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
}

.related_list .item {
    display: table-row;
    width: 100%;
}

.related_list .list-count {
    display: table-cell;
    width: 5%;
    text-align: center;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    vertical-align: middle;
}

.related_list h4 {
    display: table-cell;
    width: 95%;
    border-top: 1px solid #ddd;
    padding: 0;
    vertical-align: middle;
    font-size: 12px;
    font-family: 'Verdana', 'Geneva', sans-serif;

}

.related_list h4 a {
    color: #5980bb !important;
    display: block;
    padding: 20px 75px 20px 2%;
}

.related_list h4 > a:hover {
    background-color: #ddd;
}

/* course content */

#learndash_course_content_title {
    display: none;
}

/* RSVP */

/* no hay opción de no ir */
tr.tribe-tickets-order_status-row {
    display: none;
}

/* mejorando la tabla events */

.tribe-events-calendar th {
    color: #fff;
}

#tribe-events-content .tribe-events-tooltip h4 {
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0;
}

/* formulario de inscripción a cursos elearning */

a.fl-button.disabled,
a.fl-button.disabled:visited,
a.fl-button.disabled:active,
a.fl-button.disabled:hover {
    color: #dedede;
    border-color: #808080;
    background: #808080;
    cursor: not-allowed;
    text-decoration: none;
    opacity: 0.5;
    outline: none;
}

.form-popup-block {
    background: #FFF;
    padding: 20px 30px;
    text-align: left;
    max-width: 400px;
    margin: 40px auto;
    position: relative;
}

/* esconder Ver el formulario de tickets */

.fl-view-tickets-form {
    display: none;
}

/* magnificPopup */

.mfp-wrap .mfp-close, .mfp-wrap .mfp-close:active, .mfp-wrap .mfp-close:hover, .mfp-wrap .mfp-close:focus,
.admin-bar .mfp-wrap .mfp-close, .admin-bar .mfp-wrap .mfp-close:active, .admin-bar .mfp-wrap .mfp-close:hover, .admin-bar .mfp-wrap .mfp-close:focus {
    top: -35px !important;
    right: -35px !important;
    color: #fff !important;
    opacity: 1 !important;
}

.mfp-fade .mfp-container  {
    width: 80%;
    margin: 20px auto;
    position: static;
}

/* tables in content */

.fl-post-content table {
    width: 100%;
    margin-bottom: 30px;
}
.fl-post-content table tr:nth-child(odd) {
    background: #f0f0f0;
}
.fl-post-content table th, td {
    border: 1px solid #dedede;
    padding: 10px;
}
.fl-post-content table th {
    background: #e8e8e8;
    font-weight: 700;

}
.fl-post-content table td {
    vertical-align: top;
}

/* dando mas vsibilidad a Visualiza tus RSVPS  en evento */

.tribe-link-view-attendee > a {
    border: 1px solid #dedede;
    display: inline-block;
    padding: 5px 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.tribe-link-view-attendee > a:hover {
    color: #fff !important;
    background: #004062;
}

/* el aviso de RSVP, mas visible */

.tribe-rsvp-message-display .tribe-rsvp-messages {
    padding: 10px 0;
}
.tribe-rsvp-message-success {
    padding: 10px;
    font-weight: 700;
}

/* mejor estilo a campos solo lectura en CF7 */

.wpcf7-form-control[readonly="readonly"],
.wpcf7-form-control[readonly="readonly"]:focus {
    background: #dedede;
}

/* solo las categorias de 1er nivel son negritas */

.widget_courses_category > ul:first-of-type > li.cat-item > a {
    font-weight: 700;
}

/* los iconos deben ser azules */

.um-profile-edit i.um-faicon-cog,
.fl-accordion-item .fl-accordion-button-icon {
    color: #004062;
    opacity: 0.7;
}

.um-profile-edit i.um-faicon-cog:hover
.fl-accordion-item .fl-accordion-button-icon:hover {
    opacity: 1;
}

/* mejoras a titulo de eventos */

.tribe-events-list-event-title a.tribe-event-url {
    font-size: 24px;
    font-weight: 700;
}


/* gallery */

.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 60px 0;
}
.gallery .gallery-item {
    height: auto;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-left-width: 0;
    border-top-width: 0;
    margin: 0 0 30px 30px;
}
.gallery .gallery-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}
.gallery .gallery-item .gallery-caption {
    font-size: 87%;
    font-style: italic;
    margin: 5px 0 0 0;
    padding-left: 10px;
    border-left: 5px solid #ff4f4d;
}

.gallery.gallery-columns-1 .gallery-item {
    flex: 1 0 100%;
    margin-left: 0;
}
.gallery.gallery-columns-2 .gallery-item {
    flex: 1 0 calc(50% - 30px);
}
.gallery.gallery-columns-2 .gallery-item:nth-child(2n + 1) {
    margin-left: 0;
}
.gallery.gallery-columns-3 .gallery-item {
    flex: 1 0 calc(33.33% - 30px);
}
.gallery.gallery-columns-3 .gallery-item:nth-child(3n + 1) {
    margin-left: 0;
}
.gallery.gallery-columns-4 .gallery-item {
    flex: 1 0 calc(25% - 30px);
}
.gallery.gallery-columns-4 .gallery-item:nth-child(4n + 1) {
    margin-left: 0;
}
.gallery.gallery-columns-5 .gallery-item {
    flex: 1 0 calc(20% - 30px);
}
.gallery.gallery-columns-5 .gallery-item:nth-child(5n + 1) {
    margin-left: 0;
}
.gallery.gallery-columns-6 .gallery-item {
    flex: 1 0 calc(16.66% - 30px);
}
.gallery.gallery-columns-6 .gallery-item:nth-child(6n + 1) {
    margin-left: 0;
}
.gallery.gallery-columns-7 .gallery-item {
    flex: 1 0 calc(14.28% - 30px);
}
.gallery.gallery-columns-7 .gallery-item:nth-child(7n + 1) {
    margin-left: 0;
}
.gallery.gallery-columns-8 .gallery-item {
    flex: 1 0 calc(12.5% - 30px);
}
.gallery.gallery-columns-8 .gallery-item:nth-child(8n + 1) {
    margin-left: 0;
}
.gallery.gallery-columns-9 .gallery-item {
    flex: 1 0 calc(11.11% - 30px);
}
.gallery.gallery-columns-9 .gallery-item:nth-child(9n + 1) {
    margin-left: 0;
}

/* fix UM profile width */

.um-profile .um-form .um-profile-body {
    max-width: 100% !important;
}

.page-template-default .fl-comments {
    display: none;
}

/* learndash widget with modules finished and checked */


.learndash_navigation_lesson_topics_list .list_arrow  {
    /*display: inline-block !important;*/
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: none !important;
}

.learndash_navigation_lesson_topics_list .list_arrow:before {
    content: "\f196";
}
.learndash_navigation_lesson_topics_list .list_arrow.lesson_completed:before {
    content: "\f046";
}

#course_navigation .learndash_navigation_lesson_topics_list .list_arrow.collapse {
    visibility: visible;
}

.ld-course-status.ld-course-status-not-enrolled {
    display: none !important;
}