/* 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;
}

/* --- NOVOS ESTILOS MODERNOS (PLANO DE ATIVIDADES) --- */

.filter-card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.modalidade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modalidade-chip {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modalidade-chip.active {
    background-color: #004a99;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 74, 153, 0.3);
}

.modalidade-chip.inactive {
    background-color: #f8f9fa;
    color: #555;
    border-color: #eee;
}

.modalidade-chip:hover {
    transform: translateY(-2px);
    color: #fff;
    background-color: #f39c12;
    border-color: #f39c12;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.course-card {
    background: #ffffff;
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.course-card .card-body {
    padding: 25px;
    flex-grow: 1;
}

.course-card-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.course-ref {
    font-size: 0.75rem;
    font-weight: bold;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.course-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 15px;
    line-height: 1.3;
}

.course-meta {
    margin-bottom: 20px;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.course-meta-item svg {
    width: 18px;
    height: 18px;
    fill: #f39c12;
    flex-shrink: 0;
}

.course-card-footer {
    padding: 20px 25px;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-level-badge {
    background: #eef4ff;
    color: #004a99;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.course-status-inline {
    display: block;
    margin-top: auto;
}

.course-status-inline .badge {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card .btn-details {
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-shadow: none;
}

@media (max-width: 576px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* --- 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 / DESTAQUES) --- */
.about-section h2,
.quick-access-section h2,
.destaques-list 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,
.destaques-list h2 svg {
    width: 30px;
    height: 30px;
    fill: #2b3559;
    flex-shrink: 0;
}

.destaques-list h3 {
    color: #004a99;
    font-weight: bold;
}

.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;
}

/* --- PREMIUM RECRUITMENT CTA --- */
.recruitment-cta-wrapper {
    padding: 70px 15px;
    background-color: #f8f9fa;
}

.recruitment-premium-card {
    background: linear-gradient(145deg, #001f3f 0%, #004a99 100%);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 25px 50px rgba(0, 74, 153, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Decorative background elements */
.recruitment-premium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.12) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.recruitment-premium-card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.recruitment-content {
    flex: 1;
    z-index: 2;
    max-width: 650px;
    text-align: left;
}

.recruitment-content h2 {
    color: #ffffff !important;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    line-height: 1.15;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px;
    border: none !important;
    padding: 0 !important;
}

.recruitment-content h2 span {
    color: #f39c12;
    /* Adicionando um leve gradiente ao texto laranja para premium look */
    background: linear-gradient(90deg, #f39c12, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recruitment-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 300;
}

.recruitment-content p strong {
    font-weight: 700;
    color: #ffffff;
}

.recruitment-actions {
    z-index: 2;
    flex-shrink: 0;
}

.btn-premium-cta {
    background-color: #f39c12;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.35);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid #f39c12;
}

.btn-premium-cta:hover {
    background-color: transparent;
    color: #f39c12;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-premium-cta svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.btn-premium-cta:hover svg {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .recruitment-premium-card {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }
    .recruitment-content {
        text-align: center;
    }
    .recruitment-content h2 {
        font-size: 2.2rem !important;
    }
}

/* --- CARROUSSEL --- */
#heroCarousel .carousel-item {
    height: 450px;
    background-color: #555;
}

#heroCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
}

#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;
}

/* --- VIEW TOGGLE --- */
.view-toggle-container {
    display: flex;
    gap: 5px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid #ddd;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #777;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.view-toggle-btn:hover {
    color: #f39c12;
}

.view-toggle-btn.active {
    background-color: #ffffff;
    color: #004a99;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- COURSE LIST VIEW --- */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-list-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid transparent;
}

.course-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-left-color: #f39c12;
}

.list-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.list-item-info {
    flex-grow: 1;
}

.course-list-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #004a99;
}

.list-item-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .list-item-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-item-actions {
        width: 100%;
        margin-top: 10px;
    }
    
    .list-item-actions .btn {
        width: 100%;
    }
    
    .list-item-meta {
        flex-direction: column;
        gap: 5px !important;
    }
}

/* =========================================================
   FICHA DE CANDIDATURA / INSCRIÇÃO COMPLETA (MOD. 363 L)
   ========================================================= */
.btn-ficha-opcional {
    background: linear-gradient(135deg, #0b3c68 0%, #1e5a8f 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-ficha-opcional:hover {
    background: linear-gradient(135deg, #072a4a 0%, #14446e 100%);
    box-shadow: 0 4px 12px rgba(11, 60, 104, 0.25);
    transform: translateY(-1px);
}

.modal-ficha-dialog {
    max-width: 950px;
}

.ficha-modal-header {
    background: linear-gradient(135deg, #0b3c68 0%, #164a78 100%);
    color: #ffffff;
    border-bottom: 3px solid #f39c12;
    padding: 1.25rem 1.5rem;
}

.ficha-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.ficha-section-card {
    background-color: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease;
}

.ficha-section-card:hover {
    border-color: #cbd5e1;
}

.ficha-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #f1f5f9;
}

.ficha-section-number {
    width: 28px;
    height: 28px;
    background-color: #0b3c68;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ficha-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b3c68;
    margin: 0;
}

.ficha-rgpd-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0b3c68;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.ficha-rgpd-box.required-box {
    border-left-color: #f39c12;
    background-color: #fffdfa;
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 0.25rem;
}

.form-control-custom,
.form-select-custom {
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    padding: 0.45rem 0.65rem;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: #0b3c68;
    box-shadow: 0 0 0 0.2rem rgba(11, 60, 104, 0.15);
}