/*
 * CTC Separate Stylesheet
 * Atualizado: 28/dez/2025
 */

/* -------------------------------------------------------
   TOP BAR
---------------------------------------------------------- */

eb-header-top-bar {
    font-size: 14px;
    line-height: 50px;
    font-weight: 500;
}

.eb-header-top-bar.eb-top-bar-style-2 {
    background-color: #135b8c !important;
     /* background-color: #2c5f85 !important;
    background-color: #1C4561 !important;  */
}
.eb-header-top-bar.eb-top-bar-style-2 a {
    color: #fff;
}
.eb-header-top-bar.eb-top-bar-style-2 a:hover {
    color: #72aee6;
}

/* =======================================================
   HEADER NORMAL (reduzido para 86px de 90px))
   Logo: 50px de altura (mantido)
   Seta dropdown: posicionada a 39px do topo
======================================================= */

/* Branding */
.site-header:not(.edublink-header-sticky)
.edublink-header-area.edublink-navbar .site-branding {
    height: 86px;
    line-height: 86px;
}

/* menu */
.edublink-el-single-depth-menu li a,
.edublink-header-area ul.edublink-navbar-nav li a {
    font-size: 15px;
    font-weight: 500;
}

/* Itens do menu */
.site-header:not(.edublink-header-sticky)
.edublink-header-area.edublink-navbar-expand-lg
ul.edublink-navbar-nav > li > a {
    height: 86px;
    line-height: 91px;
}

/* Carrinho */
.site-header:not(.edublink-header-sticky)
.edublink-woo-mini-cart-link {
    height: 86px;
    line-height: 96px;
}

/* Seta dropdown */
.site-header:not(.edublink-header-sticky)
.edublink-header-area ul.edublink-navbar-nav
> li.menu-item-has-children > a:before {
    bottom: 39px;
}

/* Dropdown nível 1 */
.site-header:not(.edublink-header-sticky)
.edublink-header-area .main-navigation ul ul.edublink-dropdown-menu {
    top: 100%;
    margin-top: 0;
    padding-top: 5px;
}

/* Dropdown nível 2 */
.site-header:not(.edublink-header-sticky)
.edublink-header-area .main-navigation ul ul ul.edublink-dropdown-menu {
    top: 0;
    left: 100%;
}

/* =======================================================
   STICKY HEADER 
   Altura: 70px (16px menor que o normal  86px)
   Logo: 40px de altura (reduzido proporcionalmente)
   Seta dropdown: posicionada a 32px do topo
======================================================= */

/* Branding */
.site-header.edublink-header-sticky
.edublink-header-area.edublink-navbar .site-branding {
    height: 70px;
    line-height: 70px;
}

/* Itens do menu */
.site-header.edublink-header-sticky
.edublink-header-area.edublink-navbar-expand-lg
ul.edublink-navbar-nav > li > a {
    height: 70px;
    line-height: 75px;
}

/* Carrinho */
.site-header.edublink-header-sticky
.edublink-woo-mini-cart-link {
    height: 70px;
    line-height: 80px;
}

/* Seta dropdown */
.site-header.edublink-header-sticky
.edublink-header-area ul.edublink-navbar-nav
> li.menu-item-has-children > a:before {
    bottom: 32px;
}

/* Dropdown nível 1 */
.site-header.edublink-header-sticky
.edublink-header-area .main-navigation ul ul.edublink-dropdown-menu {
    top: 100%;
    padding-top: 4px;
}

/* Dropdown nível 2 */
.site-header.edublink-header-sticky
.edublink-header-area .main-navigation ul ul ul.edublink-dropdown-menu {
    top: 0;
    left: 100%;
}

/* =======================================================
   LOGOS
======================================================= */

/* Logo normal */
.site-logo,
.header-white-logo {
    width: 155px;
    height: 50px;
    object-fit: contain;
}

/* Logo sticky */
.site-header.edublink-header-sticky .site-logo,
.site-header.edublink-header-sticky .header-white-logo {
    height: 40px;
}

/* =======================================================
   BOTOES
======================================================= */

a.edu-btn.btn-medium,
button.edu-btn.btn-medium {
    height: 40px;
    line-height: 41px;
}

/* =======================================================
   Z-INDEX CORRECTION
======================================================= */

/* Header sempre acima do conteúdo */
.site-header {
    position: relative;
    z-index: 999;
}

/* Sticky ainda mais alto */
.site-header.edublink-header-sticky {
    z-index: 1000;
}

/* -------------------------------------------------------
   BREADCRUMBS (main.css 6321)
---------------------------------------------------------- */
/* Muda fundo do breadcrumb 2 de degrade para transparente */
.edublink-breadcrumb-style-2  {
    padding: 13px 0;
    background: transparent !important;
    /* background: linear-gradient(-90deg, #f5f1eb 0%, rgba(245, 241, 235, 0.3) 100%); */
}

/* -------------------------------------------------------
   COURSE 13 
---------------------------------------------------------- */
.edublink-single-course.course-style-13 .content .course-cat {
    align-self: flex-start;
    background-color: #e28528 !important;
}

.edublink-single-course.course-style-13 .content .course-cat a {
    color: #fff;
}

/* =========================================================
   CONTAINER DO CONTEÚDO DO CARD
   - Transforma o conteúdo em coluna flex
   - Permite empurrar o botão para o rodapé
   - Garante alinhamento entre todos os cards
   ========================================================= */
.edublink-single-course.course-style-13 .content {
    display: flex;              /* Ativa flexbox */
    flex-direction: column;     /* Organiza os filhos em coluna */
    height: 100%;               /* Permite que o card respeite alturas internas */
}


/* =========================================================
   TÍTULO DO CURSO (h6.title)
   - Travado em exatamente 2 linhas
   - Reserva espaço fixo mesmo com texto curto
   - Corta excesso de texto de forma elegante
   ========================================================= */
.edublink-single-course.course-style-13 .content .title {
    line-height: 1.4;                               /* Altura de cada linha */
    min-height: calc(1.4em * 2);                    /* Reserva espaço para 2 linhas */
    max-height: calc(1.4em * 2);                    /* Impede crescer além de 2 linhas */
    overflow: hidden;                               /* Esconde texto excedente */
    display: -webkit-box;                           /* Necessário para line-clamp */
    -webkit-box-orient: vertical;                   /* Orientação vertical */
    -webkit-line-clamp: 2;                          /* Limita exatamente a 2 linhas */
    margin-bottom: 15px;                            /* Espaço visual abaixo do título */
}


/* =========================================================
   DESCRIÇÃO DO CURSO (p)
   - Espaço reservado independente do tamanho do texto
   - Mantém todos os cards com a mesma altura
   - Pode ajustar o número de linhas facilmente
   ========================================================= */
.edublink-single-course.course-style-13 .content p {
    line-height: 1.6;                               /* Altura confortável para leitura */
    min-height: calc(1.6em * 4);                    /* Reserva espaço para 3 linhas */
    max-height: calc(1.6em * 4);                    /* Impede variação de altura */
    overflow: hidden;                               /* Evita estourar o card */
    margin-bottom: 20px;                            /* Espaço antes do botão */
}


/* =========================================================
   BOTÃO "SAIBA MAIS"
   - Fica sempre alinhado no rodapé do card
   - Independente do tamanho do título ou descrição
   ========================================================= */
.edublink-single-course.course-style-13 .read-more-btn {
    margin-top: auto;                               /* Empurra o botão para o final */
}

/* =======================================================
   GRADE UNIFICADA DE CURSOS - PMTECH
   ======================================================= */

/* -------------------------------------------------------
   FILTROS
---------------------------------------------------------- */
.pmtech-unified-courses .course-filter-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.pmtech-unified-courses .filter-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pmtech-unified-courses .filter-tab:hover {
    border-color: #004080;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 64, 128, 0.1);
}

.pmtech-unified-courses .filter-tab.active {
    background: #004080;
    border-color: #004080;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 64, 128, 0.2);
}

/* Ícones dos botões */
.pmtech-unified-courses .filter-tab i {
    font-size: 18px;
}

/* -------------------------------------------------------
   CONTADOR DE CURSOS - VERSÃO MELHORADA
---------------------------------------------------------- */
.pmtech-unified-courses .courses-count {
    text-align: center;
    margin: 0 0 30px;
    color: #666;
    font-size: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 5px solid #004080;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pmtech-unified-courses .courses-count span {
    font-weight: 700;
    color: #004080;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.pmtech-unified-courses .courses-count small {
    color: #666;
    font-size: 14px;
}

/* Divisor entre span e small */
.pmtech-unified-courses .courses-count span::after {
    content: " • ";
    color: #ccc;
    font-weight: normal;
    margin: 0 5px;
}

/* -------------------------------------------------------
   BADGE DE TIPO DE CURSO
---------------------------------------------------------- */
.edublink-courses-grid .course-type-presencial .time-top .duration {
    background-color: #004080 !important;
    color: white !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 4px 10px !important;
}

.edublink-courses-grid .course-type-learndash .time-top .duration {
    background-color: #E77817 !important;
    color: white !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 4px 10px !important;
}

/* Ícone dentro do badge */
.edublink-courses-grid .time-top .duration i {
    margin-right: 5px;
    font-size: 14px;
}

/* -------------------------------------------------------
   CARDS PRESENCIAIS - AJUSTES ESPECÍFICOS
---------------------------------------------------------- */
.edublink-courses-grid .course-type-presencial .edublink-single-course {
    border: 2px solid rgba(0, 64, 128, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.edublink-courses-grid .course-type-presencial .edublink-single-course:hover {
    border-color: #004080;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 64, 128, 0.15);
}

/* Categoria do curso presencial */
.edublink-courses-grid .course-type-presencial .course-cat {
    background-color: #004080 !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Título do curso presencial */
.edublink-courses-grid .course-type-presencial .content .title {
    color: #004080;
    font-weight: 700;
    margin-bottom: 12px;
}

.edublink-courses-grid .course-type-presencial .content .title a {
    color: inherit;
    transition: color 0.3s ease;
}

.edublink-courses-grid .course-type-presencial .content .title a:hover {
    color: #E77817;
}

/* Descrição do curso presencial */
.edublink-courses-grid .course-type-presencial .course-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Botão do curso presencial */
.edublink-courses-grid .course-type-presencial .read-more-btn .edu-btn {
    background-color: #004080 !important;
    border-color: #004080 !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.edublink-courses-grid .course-type-presencial .read-more-btn .edu-btn:hover {
    background-color: #E77817 !important;
    border-color: #E77817 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 120, 23, 0.3);
}

/* -------------------------------------------------------
   CARDS LEARNDASH - MANTÉM ESTILO ORIGINAL
   (apenas ajusta o badge)
---------------------------------------------------------- */
.edublink-courses-grid .course-type-learndash .edublink-single-course {
    /* Mantém estilo original do tema */
    border: 2px solid rgba(231, 120, 23, 0.1);
}

.edublink-courses-grid .course-type-learndash .edublink-single-course:hover {
    border-color: #E77817;
}

/* Categoria do LearnDash */
.edublink-courses-grid .course-type-learndash .course-cat {
    background-color: #E77817 !important;
}

/* Botão do LearnDash */
.edublink-courses-grid .course-type-learndash .read-more-btn .edu-btn {
    background-color: #E77817 !important;
    border-color: #E77817 !important;
}

/* -------------------------------------------------------
   RESPONSIVIDADE
---------------------------------------------------------- */
@media (max-width: 768px) {
    .pmtech-unified-courses .course-filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .pmtech-unified-courses .filter-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .pmtech-unified-courses .courses-count {
        text-align: center;
        font-size: 13px;
    }
    
    .edublink-courses-grid .course-type-presencial .content .title,
    .edublink-courses-grid .course-type-learndash .content .title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .pmtech-unified-courses .filter-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .pmtech-unified-courses .filter-tab i {
        font-size: 16px;
    }
    
    .edublink-courses-grid .course-type-presencial .course-excerpt {
        font-size: 13px;
    }
}

/* -------------------------------------------------------
   MENSAGEM NENHUM CURSO ENCONTRADO
---------------------------------------------------------- */
.pmtech-unified-courses .no-courses-found {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 30px 0;
    border: 2px dashed #dee2e6;
}

.pmtech-unified-courses .no-courses-found p {
    font-size: 18px;
    color: #495057;
    margin-bottom: 15px;
}

.pmtech-unified-courses .no-courses-found p:last-child a {
    color: #004080;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 2px 4px;
}

.pmtech-unified-courses .no-courses-found p:last-child a:hover {
    color: #E77817;
    border-bottom-color: #E77817;
    background-color: rgba(231, 120, 23, 0.1);
    border-radius: 4px;
}

/* -------------------------------------------------------
   MENSAGEM PADRÃO (fallback)
---------------------------------------------------------- */
.no-courses-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* =========================================
   PMTECH – Selo de Próxima Turma (overlay)
========================================= */

.edublink-single-course .thumbnail {
    position: relative;
}

.pmtech-course-date-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #135B8C;
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.1;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dia */
.pmtech-course-date-label .day {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

/* Mês */
.pmtech-course-date-label .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 767px) {
    .pmtech-course-date-label {
        top: 8px;
        left: 8px;
        padding: 5px 7px;
    }

    .pmtech-course-date-label .day {
        font-size: 16px;
    }

    .pmtech-course-date-label .month {
        font-size: 11px;
    }
}

/* =======================================================
   POSTS INDIVIDUAIS – AJUSTE DE PROPORÇÃO (SEM ENCOLHER)
   REFERÊNCIA:
   Antes: Conteúdo ~66% | Sidebar ~33%
   Agora: Conteúdo ~70% | Sidebar ~30%
======================================================= */

@media (min-width: 992px) {
    /* Conteúdo do post */
    .single-post .content-area,
    .single-post #primary {
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }

    /* Sidebar */
    .single-post .widget-area,
    .single-post #secondary {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        padding-left: 20px !important;
        margin-left: 0 !important;
    }
    
    .widget-area section.widget {
        padding: 35px 30px !important;
    }
}

/* RESPONSIVIDADE */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .single-post .content-area,
    .single-post #primary,
    .single-post .widget-area,
    .single-post #secondary {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    .single-post .widget-area {
        margin-top: 60px !important;
        padding-left: 0 !important;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .widget-area section.widget {
        padding: 25px 20px !important;
    }
}