:root {
    --primary-color: #185ADB;
    --primary-color-hover: #0278ab;
    --primary-2-color: #C3DDE8;
    --secondary-color: #ff6422;
    --secondary-color-hover: #ec500d;
    --text-grey: #515151;
    
}
/*
* U-cursos
*/
/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
    .alphaproject-course-header .course-title-border {
        border-left: 2px solid white;
    }
}

/*
 * Base structure
 */

 /* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Trebuchet+MS:ital,wght@0,400;1,400');

html,
body {
    height: 100%;
    font-family: "Trebuchet MS", sans-serif;
    background-color: #FFFFFF;
}

p,
h1,
h2,
h3,
h4,
h5 {
    font-family: "Trebuchet MS", sans-serif;
}

body {
}

.row {
    margin-left: 0px;
    margin-right: 0px;
}

.btn-primary,
.badge-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    text-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--primary-color-hover) !important;
    border-color: var(--primary-color-hover) !important;
}

.btn-info {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: none !important;
}

.btn-info:hover,
.btn-info:active,
.btn-info:focus {
    background: var(--secondary-color-hover) !important;
    border-color: var(--secondary-color-hover) !important;
}

.btn-outline-light {
    background-color: #FFFF !important;
    color: var(--primary-color) !important;
}

.w-90{
    width: 90% !important;
}

.text-primary{
    color:var(--primary-color) !important;
}
/*
 * Header
 */

@media (min-width: 768px) {
    .alphaproject-header-container {
        width: 750px;
    }
}
@media (min-width: 992px) {
    .alphaproject-header-container  {
        width: 970px;
    }
}
@media (min-width: 1200px) {
    .alphaproject-header-container  {
        width: 1170px;
    }
}

.alphaproject-header-container {
  margin-right: auto;
  margin-left: auto;
}
.alphaproject-header {
  color: var(--text-grey) !important;
}




.alphaproject-header-bar {
    background-color: var(--primary-color);
}
.alphaproject-header-brand {
    display: flex;
}

.alphaproject-header-brand img.logo {
    max-height: 50px;
    max-width: 50vw;
}

.alphaproject-header .navbar-toggler {
    background-image: none !important;
    box-shadow: none !important;
    color: white !important;
}

.nav-alphaproject-header .nav-link {
    margin: 0 2px;
    color: var(--primary-color) !important;
    border-bottom: .25rem solid transparent;
    text-decoration: none !important;
}

.nav-alphaproject-header .nav-link.active {
    border-color: var(--primary-color) !important;
}

.nav-alphaproject-header a.nav-link:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}


/*
* Footer
*/

.alphaproject-footer {
    color: var(--text-grey);
    font-weight: lighter;
     
}

.alphaproject-footer img {
    max-height:120px;
}

.alphaproject-footer img {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 3.5+ */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
}
  
.alphaproject-footer img:hover {
    filter: none;
    -webkit-filter: grayscale(0%);
}


/*
* Content
*/

.alphaproject-bg {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.alphaproject-bg-white {
    background-image: url("/static/css/alpha-project/images/bg-alphaproject-white.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.alphaproject-content-container {
     
}

.alphaproject-content-container .alphaproject-categ-title {
    color: var(--primary-color);
    border-bottom: .1rem solid var(--primary-color);
}

.alphaproject-content-container .alphaproject-courses-list {
    margin-left: 0px;
    margin-right: 0px;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item {
    background-size: 100%;
    /* background-position: center; */
    background-repeat: no-repeat;
    min-height: 300px;
    max-height: 300px;
    border: none;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item.inactive {
    filter: grayscale(90%);
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-body {
    min-height: 0px;
    padding: 0px;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-footer {
    background-color: var(--primary-color);
    /* opacity: 0.9; */
    line-height: 1.2;
    font-size: 0.8em;
    height: 100px;
    overflow: hidden;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-footer .course-name {
    font-size: 1.2em;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-date {
    background-color: var(--primary-2-color);
    padding: 0 1.25rem;
    color: var(--text-grey);
    font-size: 0.8em;
    height: 20px;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item:not(:hover) .card-desc,
.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item:not(:hover) .card-desc p,
.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item:not(:hover) .card-desc .card-button {
    height:0px;
    opacity: 0;
    padding: 0;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item:not(:hover) .card-desc .card-button .btn {
    display: none;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-desc {
    background-color: var(--primary-color);
    /* opacity: 0.9; */
    padding: .75rem 1.25rem;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-desc p {
    height: 100px;
    font-size: 0.8em;
    overflow: hidden;
    text-overflow: -o-ellipsis-lastline;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-desc .card-button {
    max-height:80px;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item:hover .card-desc {
    height: 180px;
    transition: height .2s;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item:hover .card-desc p,
.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item:hover .card-desc .card-button {
    transition: opacity 0.7s;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-desc .card-button button.btn {
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: "Trebuchet MS", sans-serif ;
}

.alphaproject-content-container .alphaproject-courses-list .alphaproject-course-item .card-desc .card-button button.btn:hover {
    color: black !important;
}

/*
* FAQS
*/

#alphaproject-faqs h1 {
    color: var(--primary-color);
}

#alphaproject-faqs .card-header {
    cursor: pointer;
}

#alphaproject-faqs p,
#alphaproject-faqs .card-body {
    line-height: 1.5em !important;
}

/*
* About
*/

#alphaproject-about h1 {
    color: var(--primary-color);
}

#alphaproject-about p {
    line-height: 1.5em !important;
}

/*
* Login
*/

#alphaproject-login .login-img {
    max-width: 500px;
}

#alphaproject-login .login-card {
    background-color: #ffffffbf !important;
}

#alphaproject-login span.login-header,
.wrapper-header-courses .alphaproject-header-courses {
    border-bottom: .15rem solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.2;
    font-size: 1.8em !important;
    display: block;
    padding-bottom: 0.5em;
}

#alphaproject-login .separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5em;
}
#alphaproject-login .separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--primary-color);
}
#alphaproject-login .separator::before {
    margin-right: .25em;
}
#alphaproject-login .separator::after {
    margin-left: .25em;
}

/*
* Certificates
*/

#alphaproject-certificates h3.certificates-header {
    border-bottom: .15rem solid var(--primary-color);
    color: var(--primary-color);
}

#alphaproject-certificates .certificates-card {
    background-color: #ffffffbf !important;
}

#alphaproject-certificates label {
    color: var(--text-grey);
}

#alphaproject-certificates button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 0;
}

/*
* Contact Form
*/

#alphaproject-contact h3.contact-header {
    border-bottom: .15rem solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5em !important;
}

#alphaproject-contact .contact-card {
    background-color: #ffffffbf !important;
}

#alphaproject-contact p.contact-availability {
    color: var(--primary-color);
}

#alphaproject-contact p.contact-info {
    color: var(--text-grey);
    letter-spacing: 0.04em;
}

/*
* Course About
*/

.alphaproject-course-about-background {
    min-height: 150px;
    background-color: var(--primary-color);
}

#alphaproject-course-about {
    margin-top: -150px;
}

#alphaproject-course-about .alphaproject-content-container {
}

#alphaproject-course-about .course-about-image {
    border-radius: 7px;
}

#alphaproject-course-about .media .play-intro {
    background-image: -webkit-linear-gradient(-90deg, rgba(0, 156, 221, 0.58), rgba(0, 156, 221, 0.28));
    background-image: linear-gradient(-90deg, rgba(0, 156, 221, 0.58), rgba(0, 156, 221, 0.28));
    border-radius: 4px;
    box-shadow: 0 1px 12px 0 rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 100px;
    height: 80px;
    left: 50%;
    margin-top: -40px;
    margin-left: -40px;
    position: absolute;
    top: 50%;
    width: 80px;
}

#alphaproject-course-about .media .play-intro:after {
    color: rgba(255,255,255,0.8);
    content: "\25B6";
    display: block;
    font: normal 2em/1em "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    left: 50%;
    margin-left: -11px;
    margin-top: -16px;
    position: absolute;
    top: 50%;
}

#alphaproject-course-about .course-about-card {
    border-radius: 7px;
    color: var(--text-grey);
}

#alphaproject-course-about .course-about-card table{
    font-size: 0.9em;
}

#alphaproject-course-about .course-about-card h1 {
    color: var(--primary-color);
}
#alphaproject-course-about .course-about-card p.course-org {
    color: var(--primary-color);
}

#alphaproject-course-about .course-about-card .menu {
    border: none;
    border-radius: 0px;
    border-bottom: .05rem solid var(--text-grey);
    background: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
}

#alphaproject-course-about .course-about-card .menu.active {
    margin-bottom: -.12rem;
    border-bottom: .30rem solid var(--text-grey);
    font-weight: bold;
}

#alphaproject-course-about .course-about-card .menu:focus {
    outline: none;
    box-shadow: none;
}

#alphaproject-course-about .course-about-card .menu-content-section {
    display: none;
    padding: 10px;
    text-align: justify;
}

#alphaproject-course-about .course-about-card .menu-content-section.active {
    display: block;
}

#alphaproject-course-about .course-about-card .menu-content-section .author img {
    max-width: 120px;
}

#alphaproject-course-about .course-about-card .card-header {
    cursor: pointer;
}

#alphaproject-course-about .course-about-card .card-question {
    margin-bottom: 0;
}

.alphaproject-course-header {
    background-color: var(--primary-color);
}

/*
* Fix overlays between default theme and eol theme
*/

.progress {
    display: block !important;
    height: auto !important;
    background: none !important;
}

/*
* Welcome message /course/
*/

.welcome-message, .update-message {
    border-left: none !important;
    background: #3d9bdd30 !important;
    box-shadow: -10px 0 0 0 #2d75b4;
}

.xmodule_display.xmodule_VideoBlock .video .video-wrapper .btn-play{
    opacity: 0.7 !important;
}
/*
* Genially
*/
.genially-embed .genially-view-arrow-right, .genially-lightbox-modal .genially-view-arrow-right, 
.genially-embed .genially-view-arrow-right:hover, .genially-lightbox-modal .genially-view-arrow-right:hover,
.genially-embed .genially-view-arrow-right:active, .genially-lightbox-modal .genially-view-arrow-right:active,
.genially-view-icon,.genially-view-icon:hover,.genially-view-icon:active,
.genially-view-navigation-actions-toggle-button,.genially-view-navigation-actions-toggle-button:hover,.genially-view-navigation-actions-toggle-button:active,
.genially-embed .genially-view-background_audio_notice-container.genially-view-background_audio_notice-hidden{
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}


/* 
Lang
*/

#language-settings-form{display:none;}
.footer-language-selector{display:none;}


/*
Dashboard
*/

.dashboard .main-container .my-courses .course .details .wrapper-course-image .cover,
.dashboard .main-container .my-courses .course .details .wrapper-course-image a.fade-cover{
    box-sizing: border-box;
    transition: all 0.15s linear 0s;
    float: left;
    position: relative;
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    height: 150px;
}

.dashboard .main-container .my-courses .course .details .wrapper-course-image .cover .course-image,
.dashboard .main-container .my-courses .course .details .wrapper-course-image a.fade-cover .course-image {
    width: 100%;
    max-height: 135px;
}

/*Courses cards*/

.podcast-card {
    /* font-family: Arial, sans-serif; */
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Ensures the footer sticks to the bottom */
}

.podcast-footer {
    background-color: var(--primary-color);
    /* Bootstrap primary color */
    /* height: 10px; Adjust the height as needed */
    color: white;

}

.courses-container .courses .course .course-image .cover-image {
    height: unset;
    overflow: hidden;
}

.highlighted-courses .courses .course:hover,
.highlighted-courses .courses .course:focus,
.find-courses .courses .course:hover,
.find-courses .courses .course:focus {
    /* background: #f5f5f5;
    border-color: #bebebe;
    box-shadow: 0 1px 4px 0 rgba(0,117,180,0.4); */
    background: none;
    border-color: unset;
    box-shadow: none;
}

.courses-container .courses .course:hover .cover-image::before,
.courses-container .courses .course:focus .cover-image::before {
    transition: unset;
    opacity: 0;
}

.courses-container .courses .course .course-image .cover-image::before {
    left: 0;
    position: absolute;
    top: 0;
    opacity: 0;
    background: #bebebe;
    width: 100%;
    height: 160px;
    content: '';
}

@media only screen and (min-width: 1650px) {
    .cover-image {
        max-width: 500px;
        /* Adjust as needed */
        max-height: 250px;
        /* Adjust as needed */
        overflow: hidden;
        /* Ensures nothing goes outside the box */
        display: flex;
        /* Centers the image */
        justify-content: center;
        /* Center horizontally */
        align-items: center;
        /* Center vertically */
        height: 230px !important;
    }
}

@media only screen and (min-width: 1252px) and (max-width: 1650px) {
    .cover-image {
        max-width: 500px;
        /* Adjust as needed */
        max-height: 200px;
        /* Adjust as needed */
        overflow: hidden;
        /* Ensures nothing goes outside the box */
        display: flex;
        /* Centers the image */
        justify-content: center;
        /* Center horizontally */
        align-items: center;
        /* Center vertically */
        height: 190px !important;
    }
}

@media only screen and (min-width: 980px) and (max-width: 1252px) {
    .cover-image {
        max-width: 500px;
        /* Adjust as needed */
        max-height: 200px;
        /* Adjust as needed */
        overflow: hidden;
        /* Ensures nothing goes outside the box */
        display: flex;
        /* Centers the image */
        justify-content: center;
        /* Center horizontally */
        align-items: center;
        /* Center vertically */
        height: 200px !important;
    }
}

@media only screen and (min-width: 522px) and (max-width: 1252px) {
    .cover-image {
        max-width: 500px;
        /* Adjust as needed */
        max-height: 250px;
        /* Adjust as needed */
        overflow: hidden;
        /* Ensures nothing goes outside the box */
        display: flex;
        /* Centers the image */
        justify-content: center;
        /* Center horizontally */
        align-items: center;
        /* Center vertically */
        height: 150px !important;
    }

    .cover-image img {
        max-width: 100%;
        /* Maximum width is 100% of the container */
        max-height: 100%;
        /* Maximum height is 100% of the container */
        object-fit: contain;
        /* Keeps the aspect ratio, fits the image within the dimensions */
        margin: 20px 10px;
    }

    .course-info {
        /* height: 130px !important; */
        width: 100% !important;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center !important;
        line-height: 1.5em;
        flex-direction: column;
        flex-wrap: nowrap;
    }
}


.course-info .podcast-header,
.course-info .podcast-header-text,
.course-info div.podcast-footer {
    /* margin: 0; Removes default paragraph margins */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    /* Number of lines to be shown */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Adds ellipsis at the end */
    margin-bottom: 0;
    width: 100%;
}

.course-info .podcast-header {
    height: 50px !important;
    padding: 10px 20px;
    min-height: 50px !important;
    line-height: normal;
}

.course-info .podcast-header-text {
    height: 39px !important;
    padding: 0;
    min-height: 39px !important;
    line-height: normal;
    margin-bottom: 0;
    vertical-align: middle !important
}


.course-info div.podcast-footer {
    padding: 5px 15px;
}

.subsection-title{
    font-size: 1rem;
}

.home .intro-section {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    background-color: white;
    /* Adjust the color to match the actual design */
    padding: 20px;

}

.home .intro-section .intro-text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: 60% auto;
    background-position-x: right;
    background-position-y: center;
}

.home .intro-section .intro-text {
    background-image: url("/static/alpha-project-theme/images/homebg.982726071217.webp");
    height: 500px;
    background-size:cover;
    background-position:center;
}

.home .intro-section .intro-text{
    color: white;
}

.home .intro-section .intro-text h1 {
    color: white;
    font-size: 48px;
    text-align: left;
    font-weight: bold;
}

.home .intro-section .intro-text h2 {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.home .intro-section .intro-text p {
    color: white;
    font-size: 20px;
}

.course-list-container h1 {
    text-transform: uppercase;
    font-size: 24px;
    font-weight: bold;
    background-color: var(--primary-color);
    color: white;
    text-align: left;
    padding: 12px 30px;
    border-radius: 0 40px 40px 0;
}

header {
    background-color: unset !important;
}

/* Responsible tables*/
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    margin-bottom:20px;
}

.responsive-table th{
    background: #4c4c4c;
    color: white;
}

.responsive-table th,
.responsive-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
        .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .responsive-table tr {
        flex: 0 0 90%;
        display: block;
        scroll-snap-align: start;
        margin-right: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        background: #fff;
        min-width: 280px;
        max-width: 90vw;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .responsive-table td {
        display: block;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 0.5rem 1rem;
    }

    .responsive-table td::before {
        content: attr(data-label) ": ";
        font-weight: bold;
        display: inline-block;
        margin-bottom: 0.25rem;
        color: #333;
    }
}


@media screen and (min-width: 769px) {
    /* Column sizing */
    .responsive-table th:nth-child(1),
    .responsive-table td:nth-child(1) {
    width: 6.8%;  /* Nivel */
    text-align: center;
    }

    .responsive-table th:nth-child(2),
    .responsive-table td:nth-child(2),
    .responsive-table th:nth-child(3),
    .responsive-table td:nth-child(3),
    .responsive-table th:nth-child(4),
    .responsive-table td:nth-child(4),
    .responsive-table th:nth-child(5),
    .responsive-table td:nth-child(5),
    .responsive-table th:nth-child(6),
    .responsive-table td:nth-child(6){
    width: 18%;  /* Content columns */
    }
}
