:root {
    --primary: #F17F4B;   /* Laranja ACTOS */
    --secondary: #1B455C; /* Azul Escuro ACTOS */
    --light: #f8fafc;
    --dark: #1e293b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVBAR E LOGO --- */
.navbar-actos {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 12px 0;
}

.logo-img {
    height: 50px; /* Altura padrão para Desktop */
    width: auto;
    transition: 0.3s;
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 600;
    margin: 0 10px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* --- BOTÕES --- */
.btn-actos {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border-radius: 50px; /* Botão arredondado moderno */
    padding: 8px 25px;
    transition: 0.3s;
    border: 2px solid var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-actos:hover {
    background-color: transparent;
    color: var(--primary);
}

/* --- CARRINHO --- */
.cart-icon-wrapper {
    position: relative;
    margin-right: 15px;
    color: var(--secondary);
    transition: 0.2s;
    text-decoration: none;
}

.cart-icon-wrapper:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 991px) {
    .logo-img {
        height: 40px; /* Logo menor no celular */
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .btn-actos {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .cart-mobile-container {
        display: flex;
        justify-content: center;
        margin: 15px 0;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
}
/* --- CARD DO PROFESSOR --- */
.professor-card {
    background: white;
    border: none;
    border-radius: 20px; /* Bordas bem arredondadas */
    padding: 30px 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* Sombra bem suave */
    position: relative;
    overflow: hidden;
}

/* Efeito ao passar o mouse: sobe e aumenta a sombra */
.professor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(27, 69, 92, 0.15); /* Sombra azulada */
}

/* Círculo da Foto */
.professor-img-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    padding: 5px; /* Espaço entre a foto e a borda colorida */
    background: linear-gradient(135deg, var(--primary), var(--secondary)); /* Borda degradê */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.professor-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white; /* Borda branca interna */
    background-color: white;
}

/* Nome e Link */
.professor-name {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.professor-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    transition: 0.3s;
}

.professor-card:hover .professor-link {
    letter-spacing: 2px; /* Efeito de expandir texto */
}
/* --- PARCEIROS --- */
.partner-section {
    background-color: white;
    padding: 80px 0;
    border-top: 1px solid #eee;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* Altura fixa para alinhar todos */
    padding: 10px;
    transition: all 0.3s ease;
    filter: grayscale(100%); /* Deixa preto e branco */
    opacity: 0.6; /* Levemente transparente */
}

.partner-card img {
    max-height: 70px; /* Limita altura do logo */
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse */
.partner-card:hover {
    filter: grayscale(0%); /* Volta a cor original */
    opacity: 1;
    transform: scale(1.1); /* Aumenta levemente */
}
/* --- CARD DE CURSO PREMIUM --- */
.course-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Sombra leve */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(27, 69, 92, 0.1); /* Sombra azulada ao passar o mouse */
}

.course-img-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img {
    transform: scale(1.1); /* Zoom suave na imagem */
}

/* Badge (EAD, Presencial) */
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2;
}

.course-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    /* Limita a 2 linhas e põe ... */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Professor com Avatar */
.course-professor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.course-professor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

/* Caixa de Informações (Data/Local) */
.course-meta {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.course-meta i {
    width: 20px;
    text-align: center;
}

.course-price-wrapper {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.course-price {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
}

.course-price small {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: -3px;
}

/* Botão Comprar */
.btn-buy {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-buy:hover {
    background: #d96d3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 127, 75, 0.3);
}
/* --- FOOTER (RODAPÉ) --- */
footer {
    background-color: var(--secondary); /* Azul Escuro #1B455C */
    color: #cbd5e1; /* Cinza claro para texto */
    font-size: 0.95rem;
    position: relative;
    border-top: 5px solid var(--primary); /* Linha Laranja no topo */
    padding-top: 60px;
}

/* Logo no Footer */
.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
    /* Se sua logo for escura, use este filtro para deixá-la branca/brilhante, 
       ou use uma imagem de logo branca específica */
    filter: brightness(0) invert(1); 
}

/* Títulos das Colunas (FALE CONOSCO, REDES SOCIAIS) */
.footer-heading {
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* O sublinhado laranja abaixo do título */
.footer-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    margin-top: 8px;
}

/* Ícones de Contato */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}

.footer-contact-item i {
    color: white;
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

/* Botões de Redes Sociais (Quadrados com borda) */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: white;
    margin-right: 10px;
    transition: 0.3s;
    text-decoration: none;
    background-color: rgba(255,255,255,0.05);
}

.footer-social-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Barra Inferior (Copyright) */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    margin-top: 50px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.2s;
}

.footer-bottom a:hover {
    color: white;
}
/* --- PÁGINA DE DETALHES DO CURSO --- */

/* Cabeçalho "Hero" (Fundo Azul) */
.course-header {
    background-color: var(--secondary); /* #1B455C */
    color: white;
    padding: 60px 0 80px 0; /* Padding inferior maior para o conteúdo sobrepor se quiser */
    position: relative;
}

.course-badge-hero {
    background-color: var(--primary); /* #F17F4B */
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.course-meta-hero {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    flex-wrap: wrap;
}

.course-meta-hero i {
    color: var(--primary);
    margin-right: 8px;
}

/* Conteúdo Principal (Esquerda) */
.course-section-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.course-section-title {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Acordeão (Grade Curricular) */
.accordion-button:not(.collapsed) {
    background-color: rgba(241, 127, 75, 0.1); /* Laranja clarinho */
    color: var(--secondary);
    font-weight: 600;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}

/* Barra Lateral (Direita - Sticky) */
.course-sidebar {
    position: sticky;
    top: 100px; /* Para não colar no menu quando rolar */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    overflow: hidden;
    margin-top: -100px; /* Sobe para encavalar no banner azul */
}

@media (max-width: 991px) {
    .course-sidebar {
        margin-top: 20px;
        position: static;
    }
}

.sidebar-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8fafc;
}

.sidebar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-body {
    padding: 25px;
    text-align: center;
}

.course-price-large {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

.btn-buy-large {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 12px;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    border: none;
    transition: 0.3s;
}

.btn-buy-large:hover {
    background-color: #d96d3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(241, 127, 75, 0.4);
}
/* --- BOTÕES DE VÍDEO E MODAL --- */

/* Botão "Ver" na Grade Curricular (Pequeno) */
.btn-aula-demo {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.btn-aula-demo:hover {
    background: var(--primary);
    color: white;
}

/* Ícone de Play na Capa do Curso (Sidebar) */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Escurece levemente a imagem */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    cursor: pointer;
}

/* Se tiver vídeo, mostra o overlay levemente ou no hover */
.sidebar-img-wrapper:hover .video-overlay,
.sidebar-img-wrapper.has-video .video-overlay {
    opacity: 1;
}

.play-btn-large {
    width: 60px;
    height: 60px;
    background: rgba(241, 127, 75, 0.9); /* Laranja semi-transparente */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 0 0 0 rgba(241, 127, 75, 0.7);
    animation: pulse-orange 2s infinite;
    padding-left: 5px; /* Ajuste ótico do ícone play */
}

@keyframes pulse-orange {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 127, 75, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(241, 127, 75, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 127, 75, 0); }
}