/* Luis Oliveira Novembro 2025 - STYLE.CSS INTEGRAL CORRIGIDO (SEM SOMBRA NO MENU) */

body, html {
    margin: 0;
    padding: 0;
    font-family: Barlow, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    font-size: 15px; 
    line-height: 1.6;
    height: 100%; 
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- CABEÇALHO (HEADER) --- */
.site-header {
    background: url('imagens/banner.jpg') no-repeat center center;
    background-size: cover;
    background-color: #ffffff; /* Fallback se a imagem falhar */
    padding: 20px 0;
    border-bottom: 5px solid #f39c12; 

    position: sticky;      
    position: -webkit-sticky; 
    top: 0;                 
    z-index: 1020;         
    width: 100%;            
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    transition: all 0.3s ease-in-out;
}

.header-placeholder {
    height: var(--header-height, 130px); 
}

/* ESTADO SCROLLED */
.scrolled .site-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    
    background: #ffffff !important; 
    background-image: none !important; 
    
    border-bottom: 5px solid #f39c12 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    padding: 10px 0;
    z-index: 1050;
}

/* --- NAVBAR --- */
.navbar {
    background-color: transparent !important;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-toggler {
    border-color: #777f8f !important;
	margin-top: 5px; 
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23777f8f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-brand {
    display: flex; 
    align-items: flex-end; 
    text-decoration: none;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 50px; 
    width: auto;
    margin-right: 15px; 
}

.navbar-brand span {
    font-size: 17px;
    font-weight: bold;
    color: #777f8f;
    line-height: 1;       
    margin-bottom: 0px;   
}

.navbar .container-fluid {
    align-items: flex-end !important;
}

.navbar-nav .nav-link {
    color: #777f8f; /* Cor cinza base */
    font-weight: bold;
    padding: 10px 15px !important; 
    border-radius: 5px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px; 
}

.navbar-nav .nav-link svg {
    width: 20px;
    height: 20px;
    fill: #777f8f;
}

.navbar-nav .nav-link svg.icon-external {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    gap: 0;
    margin-left: -5px; 
}

.navbar-nav .nav-link:hover {
    background-color: rgba(243, 156, 18, 0.9);
    color: #fff !important; /* Garante contraste no hover */
}
.navbar-nav .nav-link:hover svg {
    fill: #fff !important;
}


@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        border-radius: 8px;
        padding: 15px;
        margin-top: 15px;
        border: 1px solid #f39c12;
    }
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
}

main {
    flex-grow: 1; 
    background-color: #f8f9fa; 
    padding-top: 20px;
    padding-bottom: 20px;
}

/* --- GERAIS / COMPONENTES --- */

.search-form .form-label {
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
}

.table {
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.table th, .table td {
    font-size: 0.9em; 
    vertical-align: middle;
}
.table-dark th {
    background-color: #343a40; 
}

.btn-details {
    background-color: #f39c12 !important; 
    border-color: #f39c12 !important;
    color: white !important;
    font-weight: bold;
}
.btn-details:hover {
    background-color: #e67e22 !important; 
    border-color: #e67e22 !important;
}

.pagination .page-item.active .page-link {
    background-color: #f39c12;
    border-color: #f39c12;
    color: white;
}
.pagination .page-link {
    color: #004a99; 
}
.pagination .page-link:hover {
    color: #f39c12;
}

#content h1.title {
    color: #004a99;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
#content h2 {
    color: #333;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
    border-left: 5px solid #f39c12;
    padding-left: 10px;
}
#content .text p, #content .text ul {
    line-height: 1.6;
}

.btn-orange {
    background-color: #f39c12;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    margin-bottom: 20px;
}
.btn-orange:hover {
    background-color: #e67e22;
    color: white;
}

/* --- POPUPS --- */
.popup {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.popup-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}
.popup-content .close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
}
.popup-content .close:hover,
.popup-content .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.form-group.small {
    font-size: 0.9em;
    display: flex;
    align-items: center;
}
.form-group.small label {
    margin: 0;
    margin-left: 10px;
}

/* --- RODAPÉ --- */
.site-footer-bottom {
    background-color: #343a40; 
    color: #ccc;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: 30px;
}

/* --- CONTACTOS / MAPAS --- */
.map-card {
    padding: 25px;
    background: #ffffff; 
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; 
}
.map-card h2 {
    border-left: 0;
    padding-left: 0;
    margin-top: 0;
    color: #004a99;
    font-size: 1.7em;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.map-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-grow: 1; 
    min-height: 400px; 
    border-radius: 8px;
}
.map-responsive iframe {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border: 0;
}

.contact-info {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
   
}
.contact-info h2 {
    border-left: 0; 
    padding-left: 0;
    margin-top: 0;
    color: #004a99;
    font-size: 1.7em;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}
.contact-info p {
    margin-bottom: 18px;
    font-size: 1.05em;
    line-height: 1.6;
}
.contact-info p strong {
    color: #333;
    margin-right: 5px;
    display: block; 
}

.contact-form-container {
    padding: 30px 35px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact-form-container h2 {
    color: #004a99;
    font-size: 1.7em;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* --- CURSOS / SIDEBAR --- */
.course-detail-page {
    background-color: #ffffff;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.course-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}
.course-header h1.title {
    color: #004a99; 
    font-weight: bold;
    margin-bottom: 5px;
}
.course-header .area {
    color: #f39c12; 
    font-size: 1.3em;
    font-weight: normal;
    margin-bottom: 15px;
}
.course-header .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.course-header .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.sidebar-area {
    position: relative;
}
.summary-card {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    position: sticky; 
    top: 20px;
}
.summary-card h3 {
    font-size: 1.4em;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.summary-card .info-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}
.summary-card .info-list li {
    font-size: 1em;
    color: #555;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start; 
    line-height: 1.5;
}

.summary-card .info-list li svg {
    width: 20px !important;       
    height: 20px !important;      
    min-width: 20px;             
    max-width: 20px;             
    margin-right: 12px;
    fill: #004a99; 
    flex-shrink: 0;
    margin-top: 3px;
}

.summary-card .btn-orange {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
}

.main-content-area h2 {
    font-size: 1.7em;
    font-weight: bold;
    color: #004a99;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    border-left: none; 
    padding-left: 0;
}
.main-content-area h2:first-child {
    margin-top: 0;
}
.main-content-area .text-content {
    line-height: 1.7;
    color: #444;
    font-size: 1.05em;
}
.main-content-area .text-content p,
.main-content-area .text-content ul {
    margin-bottom: 1.2rem;
}
.main-content-area .text-content ul {
    padding-left: 20px;
}

.access-conditions {
    background-color: #fffaf0; 
    border: 1px solid #fdeec9;
    border-left: 5px solid #f39c12; 
    padding: 20px 25px;
    border-radius: 5px;
    margin-top: 30px;
}
.access-conditions h2 {
    border-bottom: none;
    margin-top: 0;
    padding-bottom: 0;
    margin-bottom: 10px;
    color: #e67e22; 
}
.access-conditions ul {
    margin-bottom: 0;
    padding-left: 25px;
    color: #555;
    font-size: 1em;
    line-height: 1.6;
}

/* --- SECÇÕES ESPECÍFICAS (ABOUT / QUICK ACCESS) --- */
.about-section h2,
.quick-access-section h2 {
    font-size: 1.7em;
    font-weight: bold;
    color: #2b3559;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    border-left: none; 
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.about-section h2 svg,
.quick-access-section h2 svg {
    width: 30px;
    height: 30px;
    fill: #2b3559;
    flex-shrink: 0;
}

.about-section {
    background-color: #ffffff;
    padding: 30px 35px;
    margin: 20px 0; 
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.about-section p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.2rem;
}
.about-section .lead {
    font-size: 1.2em;
    color: #333;
    font-weight: 500;
}

.about-section ul {
    list-style-type: none; 
    padding-left: 0;
    margin-bottom: 1.2rem;
}
.about-section ul li {
    position: relative;
    padding-left: 30px; 
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.6;
}

.about-section ul li::before {
    content: '►'; 
    position: absolute;
    left: 0;
    top: 3px;
    color: #f39c12; 
    font-size: 0.9em;
}

.about-section .blockquote {
    background-color: #f8f9fa;
    border-left: 5px solid #f39c12;
    padding: 20px 25px;
    font-size: 1.1em;
    color: #555;
    margin-top: 20px;
}

/* --- CARROUSSEL --- */
#heroCarousel .carousel-item {
    height: 450px; 
    background-color: #555; 
}
#heroCarousel .carousel-item img {
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.6); 
}
#heroCarousel .hero-caption-content {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center; 
    justify-content: center;
    text-align: left; 
    padding-bottom: 0; 
    padding-top: 0; 
}

#heroCarousel .hero-caption-content h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
#heroCarousel .hero-caption-content p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    #heroCarousel .carousel-item {
        height: 500px; 
    }
    #heroCarousel .hero-caption-content .container-fluid {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    #heroCarousel .hero-caption-content h1 {
        font-size: 1.8rem; 
    }
    #heroCarousel .hero-caption-content p {
        font-size: 1rem; 
    }
}

#heroCarousel .hero-caption-content a {
    color: #fff;
    text-decoration: none;
    font-weight: bold; 
}

#heroCarousel .hero-caption-content a:hover {
    color: #f39c12;
}

#heroCarousel .hero-button-container {
    text-align: center;
    padding-top: 20px; 
}
#heroCarousel .btn-details {
    font-size: 1.1rem; 
    padding: 12px 28px; 
    border-radius: 30px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
#heroCarousel .btn-details:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px); 
}

/* --- QUICK ACCESS --- */
.quick-access-section {
    margin-top: 0; 
    margin-bottom: 20px;
}

.quick-access-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%; 
    position: relative; 
}
.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}
.quick-access-card .card-icon {
    margin-right: 20px;
    flex-shrink: 0;
}
.quick-access-card .card-icon svg {
    width: 40px;
    height: 40px;
    fill: #f39c12; 
}
.quick-access-card .card-content h3 {
    color: #004a99; 
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}
.quick-access-card .card-content p {
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 0;
}

.quick-access-card svg.icon-external-card {
    width: 18px;
    height: 18px;
    fill: #aaa;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: fill 0.3s ease;
}
.quick-access-card:hover svg.icon-external-card {
    fill: #f39c12;
}

/* --- BOTÕES FLUTUANTES --- */
#scrollToTopBtn {
    display: none;
    position: fixed; 
    bottom: 25px;
    right: 25px;
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: #f39c12;
    color: white; 
    cursor: pointer; 
    padding: 0;
    border-radius: 50%; 
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#scrollToTopBtn:hover {
    background-color: #e67e22; 
    transform: translateY(-2px); 
}
#scrollToTopBtn svg {
    width: 30px; 
    height: 30px;
    fill: #ffffff;
}

.footer-link {
    color: #ccc; 
    text-decoration: none;
    transition: color 0.3s ease; 
}

.footer-link:hover {
    color: #f39c12 !important; 
    text-decoration: none;
}