/**
 * @version     CVS: 1.1.0
 * @package     com_naestrada
 * @subpackage  mod_naestrada_videos
 * @copyright   2025 Humberto Dias Soares Junior
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Humberto Dias Soares Junior <humberto.junior@ths.inf.br>
 */

.naestradavideo-home {
    max-width: 1070px;
    width: 100%;
    margin: 50px auto 50px auto;
    padding: 30px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .naestradavideo-home {
        padding: 10px;
    }
}

/* estilo para conteudo de videos */
.naestrada-videos .video-thumb {
    height: 138px;
    width: 246px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 10px;
    cursor: pointer;
}

.naestrada-videos .carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.naestrada-videos .carousel-item-thumb {
    display: inline-block;
    position: relative;
}

.naestrada-videos .carousel-title-overlay {
    position: absolute;
    bottom: 8px;
    left: 10px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.naestrada-videos .carousel-title-overlay svg {
    width: 20px;
    margin-left: 0rem;
    margin-right: 0.5rem;
}

.naestrada-videos .carousel-title-overlay .cls-1 {
    fill: none;
    stroke: #fff;
    stroke-miterlimit: 10;
}

.naestrada-videos .main-thumb-container {
    position: relative;
    max-width: 100%;
}

.naestrada-videos .main-thumb {
    width: 100%;
    /*height: auto;*/
    height: 400px;
    max-width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.naestrada-videos .play-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    font-size: 32px;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.naestrada-videos .play-icon-large .cls-1 {
    fill: none;
    stroke: #fff;
    stroke-miterlimit: 10;
}

.naestrada-videos .carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0px;
    overflow-x: hidden;
}

.naestrada-videos .carousel-container::-webkit-scrollbar {
    height: 6px;
}

.naestrada-videos .carousel-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.naestrada-videos .tab-content {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border: 1px solid #DEDEDE;
    border-radius: 10px;
    padding: 30px;
}

@media (max-width: 767px) {
    .naestrada-videos .align-middle-content {
        display: block;
        text-align: left;
        margin-top: 15px;
    }

    .naestrada-videos .video-thumb {
        height: 100px;
        width: 180px;
    }

    .naestrada-videos .carousel-title-overlay {
        font-size: 0.8rem;
    }

    .naestrada-videos .play-icon-large {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .naestrada-videos .tab-content {
        background: #FFFFFF 0% 0% no-repeat padding-box;
        border: 1px solid #DEDEDE;
        border-radius: 10px;
        padding: 15px;
    }

    .naestrada-videos .main-thumb {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }
}

.naestrada-videos .carousel-container {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.naestrada-videos .carousel-container::-webkit-scrollbar {
    display: none;
}

.naestrada-videos .chevron-button {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: #666 !important;
    padding: 0 8px !important;
    cursor: pointer !important;
}
.naestrada-videos .chevron-button:hover {
    color: #000 !important;
}

.naestrada-videos .nav.nav-tabs {
    border: none;
    background: none;
}

.naestrada-videos .nav-tabs .nav-link {
    border: none;
    background: none;
    font: normal normal 500 16px/20px 'Intro Medium';
    color: #171C66;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.naestrada-videos .nav-tabs .nav-link.active {
    font: normal normal 500 24px / 29px 'Intro Medium';
    color: #171C66;
    background-color: transparent;
}

/* Adiciona a linha dentro do LI se o botão estiver ativo */
.naestrada-videos .nav-tabs .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.naestrada-videos .nav-tabs .nav-item:has(.nav-link.active)::after {
    content: '';
    display: block;
    width: 85px;
    max-width: 100%;
    height: 5px;
    background-color: #56AF72;
    margin-top: 6px;
    border-radius: 3px;
}

.naestrada-videos .description-box {
    padding: 10px;
}

.naestrada-videos .description-box h4 {
    text-align: left;
    font: normal normal 500 18px / 23px 'Intro Medium';
    color: #171C66;
    margin-bottom: 1rem !important;
}

.naestrada-videos .description-box p {
    font: normal normal 400 16px/20px 'Inter';
    color: #171C66 !important;
}

/* Torna as abas responsivas com scroll horizontal */
.naestrada-videos .nav-tabs-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.naestrada-videos .nav-tabs-wrapper::-webkit-scrollbar {
    display: none;
}
.naestrada-videos .nav-tabs {
    flex-wrap: nowrap !important;
    display: inline-flex;
}
/* Garante que os itens não quebrem linha */
.naestrada-videos .nav-tabs .nav-item {
    flex: 0 0 auto;
}

.naestrada-videos .chevron-button {
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    color: #666 !important;
    background: none !important;
    border: none !important;
    border-radius: 50% !important;
    transition: color 0.2s !important;
}
.naestrada-videos .chevron-button:hover {
    color: #18186A !important;
    background: none !important;
}
.chevron-button:focus,
.naestrada-videos .chevron-button:active {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Oculta botões em telas pequenas */
@media (max-width: 767px) {
    .naestrada-videos .chevron-button {
        display: none !important;
    }
}

.naestrada-videos .d-none {
    display: none !important;
}

.naestrada-videos .main-thumb-container{
    transition: opacity 0.3s ease;
    will-change: opacity;
}