/* =========================== */
/*        CONFIGURAÇÃO GERAL   */
/* =========================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f4;
}

/* Ajuste do logotipo em telas pequenas */
@media (max-width: 768px) {
	#header .header-logo > a > img {
		width: 50px !important;
		height: 50px;
		margin-left: 10px;
	}
}

/* =========================== */
/*         LAYOUT PRINCIPAL    */
/* =========================== */
.grid-layout {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 2rem;
	padding: 20px;
}

/* =========================== */
/*        PAINEL LATERAL       */
/* =========================== */
.navigation-panel {
	grid-column: 1;
	grid-row: 1 / span 3;
	background: #f8f9fa;
	padding: 15px;
	overflow-y: auto;
	position: sticky;
	top: 20px;
	align-self: start;
	border-radius: 5px;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.publication-list {
	list-style: none;
	padding: 0;
}

.publication-list li {
	margin-bottom: 0.5rem;
}

.publication-list li.active a {
	font-weight: bold;
	color: #2c3e50;
}

/* =========================== */
/*    ÁREA DE EXIBIÇÃO DO PDF  */
/* =========================== */
.pdf-container {
	width: 100%;
	max-width: 95vw;
	height: 115vh;
	border: 1px solid #eee;
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
	border-radius: 5px;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	position: relative;
}

#pdf-viewer canvas {
	position: relative;
	top: -20px;
}

/* =========================== */
/*           RODAPÉ            */
/* =========================== */
.footer-space {
	margin-top: -90px;
	grid-column: 2;
	grid-row: 3;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	background: #f1f1f1;
	border-top: 1px solid #ccc;
}

/* Controles do rodapé */
.footer-controls-container {
	width: 100%;
	padding: 15px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-left {
	padding-left: 15px;
}

.footer-center {
	text-align: center;
}

.footer-right {
	padding-right: 15px;
}

/* =========================== */
/*      RESPONSIVIDADE         */
/* =========================== */
@media (max-width: 768px) {
	/* Layout ajustado para telas menores */
	.grid-layout {
		grid-template-columns: 1fr;
	}

	/* Deixa a navegação fixa no topo */
	.navigation-panel {
		position: static;
		width: 100%;
	}

	.pdf-container {
		min-height: 400px;
	}

	/* Controles do rodapé responsivos */
	.footer-controls-container {
		flex-direction: column;
		gap: 10px;
	}

	.footer-left,
	.footer-center,
	.footer-right {
		width: 100%;
		position: static;
		transform: none;
		padding: 0;
		margin: 5px 0;
		text-align: center;
	}
}

.card {
	background: #fff;
	max-width: 700px;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
	animation: fadeIn 0.5s ease-in-out;
}

/* Título */
.card-title {
	font-size: 1.2rem;
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 20px;
	text-align: center;
}

/* Conteúdo */
.post-content p {
	font-size: 1rem;
	color: #555;
	line-height: 1.6;
	text-align: justify;
}

.card {
        min-height: 180px;
    }

    .card a {
        position: absolute;
        bottom: 10px;
    }

    .col.flex-files > div {
        width: 18rem;
    }

    @media (min-width: 768px) {
        .col.flex-files {
            display: flex;
            justify-content: space-around;
        }
    }

    @media (max-width: 768px) {
        .col.flex-files > div {
            width: 100%;
            margin-bottom: 15px;
        }

        .card{
            padding: 0px !important;
        }
    }

    .card > .card-body > h6 > a {
        position: static;
    }

    .card > .card-body > h6:first-of-type > a {
        margin-top: 17px;
    }

    #certificados .card {
        max-width: 100% !important;
        width: 100% !important;
    }