@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Lato:wght@400;700&display=swap');

/* --- Variáveis de Cores: Tema Claro (Padrão) --- */
:root {
    --main-bg: #f8f9fa;
    --hero-bg: #f1f3f5;
    --primary-color: #0d47a1;
    --accent-color: #1e88e5;
    --navbarr: #1e88e53b;
    --card-bg: #ffffff;
    --card-bg-nav: #ffffff;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --input: #f1f1f1;
    --imput-ars: #c7dcecf5;

    --text-color-main: #212529;
    --text-color-heading: var(--primary-color);
    --text-color-muted: #6c757d;
    --text-color-card: #212529;
    --text-color-list: #212529;
    --particles-color: #0d47a1;
    --footer: #212529;
    --tougle-btn: #9e9e9e;

    --footer-bg-color: #1a1a1a;
    --footer-text-color: #f0f0f0;
    --footer-text-muted-color: #aaaaaa;
    --footer-link-color: #0d47a1;
    --footer-link-hover-color: #0d47a1;
    --footer-social-color: #ffffff;
    --footer-social-hover-color: #00bfff;
}

/* --- Variáveis de Cores: Tema Escuro --- */
.dark-theme {
    --main-bg: #090c0e;
    --hero-bg: #050b0f;
    --primary-color: #09bdb4;
    --accent-color: #03dac6;
    --navbarr: #03dac52f;
    --card-bg: rgb(20, 20, 20);
    --card-bg-nav: #0f1316;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --input: #101418;
    --imput-ars: #1e2329;

    --text-color-main: #e0e0e0;
    --text-color-heading: var(--primary-color);
    --text-color-muted: #9e9e9e;
    --text-color-card: #e0e0e0;
    --text-color-list: #e0e0e0;
    --particles-color: #73c2cc;
    --footer: #0c0c0c;
    --tougle-btn: #9e9e9e;

    --footer-bg-color: #1a1a1a;
    --footer-text-color: #f0f0f0;
    --footer-text-muted-color: #aaaaaa;
    --footer-link-color: #09bdb4;
    --footer-link-hover-color: #00ffff;
    --footer-social-color: #ffffff;
    --footer-social-hover-color: #09bdb4;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--imput-ars) inset !important;
  -webkit-text-fill-color: var(--text-color-list) !important;
}



/* --- Fontes Globais --- */
:root {
    --font-heading: "Roboto", sans-serif;
    --font-body: 'Lato', sans-serif;
}

.card-com-dropdown {
    overflow: visible;
}

/* Adicione esta regra ao seu arquivo de estilos.css */
.dropdown-with-zindex {
    z-index: 1000;
}

/*Chave de acesso Admin*/

#key-container h2 {
    text-align: center;
}

#footer-key {
    margin-top: 220px;
}

/* Estilos para o Modal de Confirmação */
.confirmation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
}

.confirmation-modal-content {
    background-color: var(--card-bg);
    color: var(--text-color-main);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

/* Estado visível do modal */
.confirmation-modal-overlay.visible {
    opacity: 1;
}

.confirmation-modal-overlay.visible .confirmation-modal-content {
    transform: scale(1);
}

.confirmation-modal-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.confirmation-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirmation-modal-buttons .btn {
    min-width: 100px;
}

/* Loading */
/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Fundo da sobreposição com transparência */
    display: none; /* A animação nasce escondida */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid transparent; /* Adiciona uma borda transparente para dar o espaço do anel */
  border-top-color: var(--primary-color);
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Container principal - Posiciona as mensagens */
#message-wrapper {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* Centraliza horizontalmente */
    z-index: 9999;
    display: flex;
    flex-direction: column; /* Mensagens novas aparecem abaixo das antigas */
    align-items: center; /* Alinha as mensagens ao centro */
    gap: 10px;
}

/* Estilo do card da mensagem */
.custom-message {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-width: 250px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre o ícone e o texto */
    
    /* Posição inicial fora da tela (topo) */
    transform: translateY(-110%);
    opacity: 0;
}

/* Ícones da mensagem */
.message-icon {
    font-size: 1.8rem;
    line-height: 1; /* Alinha o ícone verticalmente */
}

/* Texto da mensagem */
.message-content {
    flex-grow: 1;
    font-weight: 500;
}

/* Cores e ícones por tipo de mensagem */
.custom-message--success {
    background-color: #4CAF50; /* Verde */
}
.custom-message--success .message-icon {
    color: #e8f5e9;
}

.custom-message--error {
    background-color: #F44336; /* Vermelho */
}
.custom-message--error .message-icon {
    color: #ffebee;
}

.custom-message--info {
    background-color: #2196F3; /* Azul */
}
.custom-message--info .message-icon {
    color: #e3f2fd;
}

/* Animações de entrada e saída */
.custom-message.show {
    animation: slideInDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.custom-message.hide {
    animation: slideOutUp 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes slideInDown {
    from {
        transform: translateY(-110%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-110%);
        opacity: 0;
    }
}

/* Estilos para a formatação de texto do Trix Editor */
.trix-content {
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-color);
}

.trix-content p {
    margin-bottom: 1.5rem;
}

.trix-content strong {
    font-weight: bold;
    /* Garante que o negrito funcione */
}

/* Adicione outros estilos para listas, links, etc., se necessário */
.trix-content ul,
.trix-content ol {
    margin-bottom: 1rem;
}

/* Corrigir o negrito caso o trix.css não seja suficiente */
trix-editor strong {
    font-weight: bold;
}

li {
    color: var(--text-color-list);
}

/* --- Estilos Globais e Reset --- */
body {
    font-family: var(--font-body);
    background-color: var(--main-bg);
    color: var(--text-color-main);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

label {
    color: var(--text-color-list);
}



.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color-heading);
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

p {
    color: var(--text-color-main);
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* --- Header e Navbar --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .container {
    background-color: var(--card-bg-nav);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: var(--navbarr);
}

.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='%230d47a1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dark-theme .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='%2303dac6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 700;
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

/* Default */
/* Default */
.theme {
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}
  
  .theme__fill,
.theme__icon {
  transition: 0.3s;
  cursor: pointer;
}

.theme__fill {
  background-color: var(--bg);
  display: block;
  mix-blend-mode: difference;
  position: fixed;
  inset: 0;
  height: 100%;
  transform: translateX(-100%);
  pointer-events: none; /* Esta linha é a correção */
}
  
.theme__icon,
.theme__toggle {
z-index: 1;
}

.theme__icon,
.theme__icon-part {
position: absolute;
}

.theme__icon {
/* Ajuste para mover o contêiner dos ícones */
/* O objetivo é centralizar este contêiner dentro do espaço do thumb do toggle */
top: 0.18em;
left: 0.18em;
width: 1.6em;
height: 1.6em;
/* background-color: rgba(255,0,0,0.2); /* Para depuração, remova depois */
}

.theme__icon-part {
border-radius: 50%;
/* A sombra é o que desenha o "sol" ou "lua crescente" */
box-shadow: 0.25em -0.25em 0 0.25em hsl(0,0%,100%) inset;
/* Posição do círculo principal (sol/lua) dentro do contêiner .theme__icon */
top: calc(50% - 0.4em);
left: calc(50% - 0.4em);
width: 0.8em;
height: 0.8em;
transition: box-shadow var(--transDur) ease-in-out,
    opacity var(--transDur) ease-in-out,
    transform var(--transDur) ease-in-out;
transform: scale(0.65);
}

.theme__icon-part ~ .theme__icon-part {
background-color: hsl(0,0%,100%);
border-radius: 0.05em;
top: 50%;
left: calc(50% - 0.05em);
transform: rotate(0deg) translateY(0.4em);
transform-origin: 50% 0;
width: 0.09em;
height: 0.18em;
}

.theme__icon-part:nth-child(3) {
transform: rotate(45deg) translateY(0.35em);
}

.theme__icon-part:nth-child(4) {
transform: rotate(90deg) translateY(0.35em);
}

.theme__icon-part:nth-child(5) {
transform: rotate(135deg) translateY(0.35em);
}

.theme__icon-part:nth-child(6) {
transform: rotate(180deg) translateY(0.35em);
}

.theme__icon-part:nth-child(7) {
transform: rotate(225deg) translateY(0.35em);
}

.theme__icon-part:nth-child(8) {
transform: rotate(270deg) translateY(0.4em);
}

.theme__icon-part:nth-child(9) {
transform: rotate(315deg) translateY(0.4em);
}

.theme__label,
.theme__toggle,
.theme__toggle-wrap {
position: relative;
}

.theme__toggle,
.theme__toggle:before {
display: block;
}

.theme__toggle {
background-color: hsl(48,90%,85%);
border-radius: 25% / 50%;
box-shadow: 0 0 0 0.125em var(--primaryT);
padding: 0.15em;
width: 4em;
height: 2em;
-webkit-appearance: none;
appearance: none;
transition: background-color var(--transDur) ease-in-out,
    box-shadow 0.15s ease-in-out,
    transform var(--transDur) ease-in-out;
}

.theme__toggle:before {
background-color: hsl(48,90%,55%);
border-radius: 50%;
content: "";
width: 1.7em;
height: 1.7em;
transition: 0.3s;
}

.theme__toggle:focus {
box-shadow: 0 0 0 0.125em var(--primary);
outline: transparent;
}

/* Checked */
.theme__toggle:checked {
background-color: hsl(198,90%,15%);
}

.theme__toggle:checked:before,
.theme__toggle:checked ~ .theme__icon {
transform: translateX(2.05em); /* AJUSTE CRÍTICO AQUI: mova o ícone um pouco mais para a esquerda */
}

.theme__toggle:checked:before {
background-color: hsl(198,90%,55%);
}

.theme__toggle:checked ~ .theme__fill {
transform: translateX(0);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(1) {
/* Ajuste para a 'lua' */
/* Reajuste o box-shadow e a posição para melhor centralização */
box-shadow: 0.15em -0.15em 0 0.2em hsl(0,0%,100%) inset; /* AJUSTADO */
transform: scale(0.9);
margin-left: auto;
margin-right: auto;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part ~ .theme__icon-part {
opacity: 0;
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(2) {
transform: rotate(45deg) translateY(0.5em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(3) {
transform: rotate(90deg) translateY(0.5em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(4) {
transform: rotate(135deg) translateY(0.5em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(5) {
transform: rotate(180deg) translateY(0.5em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(6) {
transform: rotate(225deg) translateY(0.5em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(7) {
transform: rotate(270deg) translateY(0.5em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(8) {
transform: rotate(315deg) translateY(0.5em);
}

.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(9) {
transform: rotate(360deg) translateY(0.5em);
}

.theme__toggle-wrap {
margin: 0 0.75em;
}

@supports selector(:focus-visible) {
    .theme__toggle:focus {
        box-shadow: 0 0 0 0.125em var(--primaryT);
    }

    .theme__toggle:focus-visible {
        box-shadow: 0 0 0 0.125em var(--primary);
    }
}


/* --- Seção de Destaque (Hero) --- */
.hero-section {
    margin-top: -80px;
    padding: 120px 0;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero-section h1,
.hero-section p {
    color: var(--text-dark);
}

.hero-section .btn-primary {
    color: #fff;
}

.dark-theme .hero-section h1,
.dark-theme .hero-section p {
    color: var(--text-color-main);
}

.dark-theme .hero-section .btn-primary {
    color: var(--text-light);
}

#hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), var(--hero-image) no-repeat center center/cover;
    background-size: cover;
    background-position: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* --- Seções de Conteúdo --- */
.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background-color: #f1f3f5;
}

.dark-theme .content-section.bg-light {
    background-color: #212121;
}

.section-heading {
    text-align: center;
    margin-bottom: rem;
}

.section-heading h2 {
    color: var(--primary-color);
}

.section-heading p {
    color: var(--text-muted);
}

/* --- Estilos dos Cards --- */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row>[class*='col'] {
    display: flex;
    flex-direction: column;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    flex-grow: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

.card-text {
    color: var(--text-color-card);
    flex-grow: 1;
    display: -webkit-box;
    /* Adicionado para limitar o texto a um número de linhas */
    -webkit-line-clamp: 4;
    /* Limita o texto a 4 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text .text-muted {
    color: var(--text-color-list) !important;
    opacity: 70%;
}

.card-date {
    font-size: 0.8rem;
    color: var(--text-color-muted);
    margin-top: 1rem;
}

.card-body>.btn {
    margin-top: auto;
}


/* --- Blocos de Informação --- */
.info-block {
    text-align: center;
    padding: 30px;
}

.info-block .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* --- Depoimentos --- */
.testimonial-card {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-light);
}

.testimonial-card .author {
    font-weight: 700;
    margin-top: 1rem;
}

/* --- Botões --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #d4d4d4;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- Tabela da Grade Curricular --- */
.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.curriculum-table thead {
    background-color: var(--primary-color);
    color: var(--text-color-list);
}

.curriculum-table th,
.curriculum-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border-color);
    color: var(--text-color-list);
}

.curriculum-table tbody tr:hover {
    background-color: var(--border-color);
}

.curriculum-table .disciplines li {
    color: var(--text-dark);
}

/* --- Footer --- */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 4rem 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container for layout */
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive grid layout for columns */
.footer .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Style for column titles */
.footer h4 {
    color: var(--footer-text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    border-bottom: 2px solid var(--footer-link-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Style for general paragraphs and text */
.footer p {
    color: var(--footer-text-muted-color);
    margin-bottom: 0.5rem;
}

/* Style for links */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 4rem 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    border-top: 5px solid var(--footer-accent-color);
}

/* Container and layout */
.footer .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer .col-md-4 {
    flex: 1 1 300px;
    /* Allow columns to grow and wrap */
}

/* Headings */
.footer h4 {
    color: var(--footer-heading-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    text-align: center;
}

/* Underline effect for headings */
.footer h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--footer-accent-color);
    margin-top: 5px;
}

/* Link styling */
.footer a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.footer a:hover {
    color: var(--footer-link-hover-color);
}

.footer .footer-link {
    display: block;
    /* Make these links stack */
    margin-bottom: 0.5rem;
    color: var(--footer-accent-color);
    font-weight: 600;
}

/* Social icons section */
.footer-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.footer-socials a {
    font-size: 2rem;
    color: var(--footer-text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    transform: scale(1.1);
    color: var(--footer-social-hover-color);
}

/* Contact information styling */
.contact-item {
    color: var(--footer-text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: var(--footer-text-color);
}

.contact-item a:hover {
    color: var(--footer-link-hover-color);
    text-decoration: underline;
}

.contact-item .fas {
    font-size: 1.2rem;
    color: var(--footer-accent-color);
}

/* Separator line */
.footer hr {
    border: none;
    height: 1px;
    background-color: var(--footer-border-color);
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* Copyright text */
.footer p.text-center {
    font-size: 0.9rem;
    color: var(--footer-text-color);
}


/* --- Estilos do Trix Editor (Admin) --- */
trix-toolbar {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    font-family: var(--font-body);
}

trix-toolbar .trix-button-group {
    border-color: var(--border-color) !important;
}

trix-toolbar .trix-button {
    color: var(--text-color-list) !important;
    transition: background-color 0.2s ease;
}

trix-toolbar .trix-button:hover {
    background-color: var(--border-color) !important;
}

trix-toolbar .trix-active {
    background-color: var(--accent-color) !important;
    color: var(--text-light) !important;
}

trix-editor {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0 0 8px 8px !important;
    color: var(--text-color-card) !important;
    padding: 1rem !important;
    font-family: var(--font-body);
}

trix-editor a {
    color: var(--accent-color) !important;
}

/* --- Botão de Tema --- */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--tougle-btn);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.dark-theme .theme-toggle-btn {
    background-color: #245f66;
    color: var(--text-light);
}

.dark-theme .theme-toggle-btn:hover {
    background-color: var(--primary-color);
}

.dark-theme .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='%2303dac6' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Altera a cor do ícone do menu no tema claro */
.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='%230d47a1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--hero-bg);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1518770660439-46244b02ba14') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
}

.img-fluid {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

/* Estilo para a grade de imagens dentro das notícias */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    /* Espaçamento entre as imagens */
    margin: 2rem 0;
    /* Espaço acima e abaixo da grade */
}

/* Opcional: Adiciona margem entre as imagens quando a grade não se aplica */
.lead figure {
    margin: 1rem 0;
}

/* Garante que as imagens dentro da grade sejam responsivas */
.image-grid figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* Garante que o texto da legenda seja centralizado */
.image-grid figure figcaption {
    text-align: center;
    margin-top: 0.5rem;
}

/* Esconde o nome e o tamanho dos arquivos anexados no Trix Editor */
.trix-content .attachment .attachment__caption {
    display: none;
}

/* Esconde o nome e o tamanho dos arquivos anexados dentro do Trix Editor */
trix-editor .attachment-gallery .attachment__caption {
    display: none !important;
}

trix-editor trix-attachment .attachment__caption {
    display: none !important;
}

.trix-content {
    /* Garante que o texto tenha o estilo correto */
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-color);
}

/*
 * =======================================================
 * Estilos para o conteúdo do Trix Editor
 * =======================================================
 */

/* Garante que o texto tenha o estilo correto */
.trix-content {
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Garante que o negrito funcione corretamente */
.trix-content strong {
    font-weight: bold;
}

/* Estilos para a galeria de imagens (múltiplas imagens) */
.attachment-gallery {
    display: flex;
    /* Essencial para que as imagens fiquem lado a lado */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Estilos para cada imagem dentro da galeria */
.attachment-gallery .attachment {
    flex-basis: calc(33.333% - 1rem);
    max-width: 300px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
    flex-grow: 1;
    flex-shrink: 1;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.attachment-gallery .attachment:hover {
    transform: scale(1.05);
}

.attachment-gallery .attachment img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/*
 * =======================================================
 * Estilos para uma única imagem no conteúdo
 * =======================================================
 */
/* Seleciona o elemento 'figure' dentro de 'trix-content' se ele for o único filho
   e NÃO for parte de uma galeria. */
.trix-content figure:only-child {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    text-align: center;
}

.trix-content figure:only-child img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 5px;
}

/* Esconde o nome e o tamanho dos arquivos anexados */
.trix-content .attachment .attachment__caption {
    display: none;
}

trix-editor .attachment-gallery .attachment__caption {
    display: none !important;
}

trix-editor trix-attachment .attachment__caption {
    display: none !important;
}

.attachment img {
    display: block;
    width: auto;
    height: auto;
    max-height: 400px;
    height: auto;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
}

/* Adiciona um efeito de zoom ao passar o mouse */
.attachment:hover {
    transform: scale(1.03);
}


/*
 * =======================================================
 * Estilos para o modal de visualização de imagem
 * =======================================================
 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}

.modal-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #555;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.modal-close-button:hover {
    color: #333;
}

/* Estilo para listas roláveis no painel de administração */
.scrollable-list {
    max-height: 500px;
    /* Defina a altura máxima desejada */
    overflow-y: auto;
    /* Habilita a barra de rolagem vertical */
    padding-right: 10px;
    /* Adiciona um pequeno padding para a barra de rolagem não ficar colada */
}

/* Opcional: Adiciona um pequeno espaçamento entre os itens da lista para melhor leitura */
#noticias-list-admin>div,
#curriculo-list-admin>div {
    margin-bottom: 10px;
}

/* Garante uma altura mínima para o Trix Editor e permite a rolagem */
trix-editor {
    min-height: 200px;
    /* Altura mínima para o editor */
    max-height: 400px;
    /* Altura máxima para permitir a rolagem */
    overflow-y: auto;
    /* Adiciona a barra de rolagem vertical quando o conteúdo excede a altura */
    border: 1px solid #ced4da;
    padding: 1rem;
}

/* Esconde o nome e o tamanho dos arquivos anexados no Trix Editor */
.trix-content .attachment .attachment__caption {
    display: none;
}

.lead h1 {
    font-size: 1.50rem !important;
}

.lead div strong {
    font-weight: bold;
}

#noticias-container {
    display: flex;
    justify-content: center;
}

.text-date {
    color: var(--text-color-muted) !important;
    font-size: 1rem;
}

.turma-curiosidades-container {
    text-align: center;
    background: var(--card-bg);
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--border-color);
}

.turma-curiosidades-container h1 {
    color: var(--text-color);
}

#turma-curiosidades-pergunta {
    font-size: 1.2em;
    margin: 1em 0;
    color: var(--text-color-list);
}

#turma-curiosidades-resposta {
    font-size: 1.1em;
    margin-top: 1em;
    color: var(--primary-color);
    font-weight: bold;
}

.turma-curiosidades-escondida {
    display: none;
}

.turma-curiosidades-navegacao {
    margin: 1em 0;
}

#turma-curiosidades-anterior,
#turma-curiosidades-proximo {
    padding: 8px 16px;
    margin: 0 5px;
    font-size: 0.9em;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#turma-curiosidades-anterior:hover,
#turma-curiosidades-proximo:hover {
    background-color: var(--primary-color);
}

.form-control {
    background: var(--card-bg);
    color: var(--text-color-list);
}

.form-control:focus {
    background-color: var(--card-bg-nav);
    color: var(--text-color-list);
}

/* Animação para o conteúdo aparecer */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação para o conteúdo desaparecer */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Aplica a animação no conteúdo da pergunta e resposta */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}



/* --- Responsividade --- */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .header {
        background-color: var(--card-bg-nav);
    }

    .navbar .container {
        background-color: transparent;
        border-radius: 10px;
        box-shadow: none;
    }

    .hero-section {
        margin-top: 0;
    }

    .attachment img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Adiciona um efeito de zoom ao passar o mouse */
    .attachment:hover {
        transform: scale(1.03);
    }

}

@media (max-width: 768px) {
    .footer .col-md-4 {
        text-align: center;
        /* Center all content on small screens */
    }

    .footer .footer-socials {
        justify-content: center;
        /* Center social icons */
    }

    .footer h4::after {
        margin: 5px auto 0;
        /* Center the underline as well */
    }

    .hero-section {
        padding: 100px 20px;
    }

    .img-fluid {
        max-height: 300px;
        width: auto;
        object-fit: contain;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    #conttt {
        padding: 0;
        margin: 0;
    }

    #conttt div {
        margin: 0;
        padding: 0;
    }

    .curriculum-table th,
    .curriculum-table td {
        padding: 5px;
        font-size: 14px;
    }
}