/* ========================================================================== */
/* 1. Apresentação (conteudo_apresentacao.php)                                                    */
/* ========================================================================== */
/* Banner */
.banner-unati {
  background: url("../img/banner.jpg") center 60% / cover no-repeat;
  background-size: cover;
  background-position: 70% 50%;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  box-sizing: border-box;
}

.banner-unati::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 51, 102, 0.7) 0%,
    rgba(0, 77, 153, 0.7) 100%
  );
  opacity: 85%;
  z-index: 1;
}

.banner-unati-content {
  position: relative;
  z-index: 2;
}

.banner-unati-content h2 {
  font-family: "Lora", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
}

.banner-unati-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0;
  opacity: 0.9;
}

/* Título */
.unati-section-title {
  font-family: "Lora", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #003f8a;
  text-align: center;
  margin-bottom: 48px;
  padding: 0 24px;
  letter-spacing: 0.01em;
}

/* Rolagem Horizontal da Linha do Tempo */
.timeline-scroll-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 48px 48px;
  scrollbar-width: thin;
  /* Remove barra no Firefox */
  scrollbar-color: #003366 #f1f5f9;
  /* -ms-overflow-style: none; */
  /* Remove barra no IE e Edge */
}

.timeline-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 4px;
}

.timeline-track {
  position: relative;
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding-top: 56px;
  min-width: max-content;
}

/* Linha horizontal conectora */
.timeline-line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: #003366;
}

/* Cada Nó do Histórico */
.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 310px;
  flex-shrink: 0;
}

/* Ponto Dourado na Linha */
.timeline-dot {
  position: absolute;
  top: -42px;
  width: 18px;
  height: 18px;
  background: #d4af37;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #003366;
  z-index: 2;
}

/* Flip Card 3D */
.flip-card-wrapper {
  width: 310px;
  height: 420px;
  perspective: 900px;
  cursor: pointer;
  outline: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  border-radius: 16px;
}

/* Efeito de giro via Hover e Focus */
.flip-card-wrapper:hover .flip-card-inner,
.flip-card-wrapper:focus .flip-card-inner,
.flip-card-wrapper:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

/* Frente */
.flip-card-front {
  background: #003366;
}

.flip-card-front-logo {
  background: #f0f4fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-card-logo-img {
  width: 70%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.flip-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.flip-card-wrapper:hover .flip-card-img,
.flip-card-wrapper:focus .flip-card-img {
  transform: scale(1.04);
}

.flip-card-front-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 25, 60, 0.95) 0%,
    rgba(0, 25, 60, 0.6) 70%,
    transparent 100%
  );
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flip-card-year-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.25);
  color: #ffd700;
  font-family: "Lora", serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flip-card-front-title {
  font-family: "Lora", serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.flip-card-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  opacity: 0.9;
}

/* Verso (Fundo Branco e Texto Escuro) */
.flip-card-back {
  background: #ffffff;
  border: 2px solid #003366;
  transform: rotateY(180deg);
  display: flex;
  align-items: flex-start;
}

.flip-card-back-inner {
  padding: 22px 20px;
  overflow-y: auto;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #003366 #f1f5f9;
}

.flip-card-back-inner::-webkit-scrollbar {
  width: 4px;
}

.flip-card-back-inner::-webkit-scrollbar-thumb {
  background: #003366;
  border-radius: 2px;
}

.flip-card-back-year {
  font-family: "Lora", serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #003366;
  /* Azul escuro */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flip-card-back-title {
  font-family: "Lora", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 12px;
}

.flip-card-back-text p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 10px;
  text-align: justify;
}

.flip-card-back-text p:last-child {
  margin-bottom: 0;
}

.flip-card-back-text a {
  color: #0059b3;
  font-weight: 600;
  text-decoration: underline;
}

/* Responsividade Mobile */
@media (max-width: 640px) {
  .unati-banner {
    padding: 32px 24px;
  }

  .timeline-scroll-wrapper {
    padding: 0 24px 40px;
  }

  .flip-card-wrapper,
  .timeline-node {
    width: 260px;
  }

  .flip-card-wrapper {
    height: 360px;
  }

  .flip-card-back-text p {
    font-size: 0.82rem;
  }
}

/* ========================================================================== */
/* 2. Atividades Ofertadas (conteudo_atividades.php)                                                    */
/* ========================================================================== */

.disciplinas-card {
  border: 1px solid #dee2e6;
  border-left: 4px solid #dca92a;
  border-radius: 6px;
  padding: 1.2rem;
  cursor: pointer;
  background-color: #ffffff;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.disciplinas-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.disciplinas-acronym {
  color: #0c4284;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.disciplinas-label {
  color: #495057;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Estilos do PopUP (Modal) */
.modal-disciplinas-content {
  border: 6px solid #ffc107;
  border-radius: 16px;
}

.modal-disciplinas-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.btn-close-custom {
  background-color: #e9ecef;
  border-radius: 50%;
  padding: 0.5rem;
  opacity: 1;
}

.modal-disciplinas-title {
  color: #0c4284;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.modal-disciplinas-desc {
  color: #212529;
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-divider {
  border-top: 2px solid #6c757d;
  opacity: 0.5;
  margin: 1.5rem 0;
}

.board-member-row {
  margin-bottom: 0.8rem;
  color: #198754; /* Cor verde para remeter ao ícone da imagem */
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
}

.board-member-row i {
  font-size: 1.4rem;
  margin-right: 12px;
}

.professores-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 1rem;
}

.prof-dept {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: normal;
  margin-left: 6px;
}

/* Centralizador de ícone do modal */
.modal-icon-container {
  color: #0c4284;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

/* ========================================================================== */
/* 3. Contatos (conteudo_contato.php)                                                    */
/* ========================================================================== */

.contact-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.contact-card:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.icon-circle {
  background-color: #f1f5f9;
  color: #006ce6;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-title {
  color: #004d99;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-info {
  color: #64748b;
  font-size: 0.9rem;
}

/* ========================================================================== */
/* 4. Depoimentos (conteudo_depoimentos.php)                                                    */
/* ========================================================================== */

/* Estilos para a seção de Depoimentos */
.testimonial-card {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  transition:
    transform 0.2s ease,
    shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.quote-icon {
  font-size: 2rem;
  color: #0059b3;
  opacity: 0.3;
  line-height: 1;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  background-color: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  font-style: italic;
}

.highlight-quote {
  background-color: #eff6ff;
  border-left: 4px solid #0059b3;
  padding: 0.8rem 1rem;
  border-radius: 0 8px 8px 0;
  font-weight: 600;
  color: #1e3a8a;
  margin-top: 0.8rem;
}

/* ========================================================================== */
/* 5. Documentos (conteudo_documentos.php)                                          */
/* ========================================================================== */

.section-subtitle-editais {
  color: #1f2937;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.edital-card {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  margin-bottom: 1rem;
  background-color: #fff;
}

.edital-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
}

.edital-icon {
  font-size: 1.2rem;
  color: #003366;
}

.edital-title-card {
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.edital-subtitle-card {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.edital-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.edital-link-item {
  border-top: 1px solid #e2e8f0;
}

.edital-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem 0.8rem 3.5rem;
  color: #0059b3;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.edital-link:hover {
  background-color: #f1f5f9;
  color: #003366;
  text-decoration: none;
}

.external-links-list {
  list-style: none;
  padding-left: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.external-links-list li {
  margin-bottom: 1rem;
}

.external-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #0059b3;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.external-link:hover {
  color: #003366;
  text-decoration: underline;
}

.ref-details {
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 0.2rem;
  padding-left: 1.4rem;
  line-height: 1.4;
}

/* ========================================================================== */
/* 6. Quem Somos (conteudo_quemSomos.php)                                          */
/* ========================================================================== */

#equipe-unati {
  overflow-x: hidden;
  width: 100%;
}

/* Caixa cinza dos ícones (Prédio e Quebra-cabeça) */
.team-icon-box {
  background-color: #e5e5e5;
  width: 55px;
  height: 55px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-icon-box i {
  font-size: 22px;
  color: #333333;
}

/* Etiqueta azul para destaques e cargos ativos */
.role-badge {
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 3px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
  white-space: normal;
  text-align: left;
}

/* Etiqueta neutra para histórico de ex-coordenadores */
.role-badge-history {
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 3px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
}

/* Nomes em negrito com ajuste de margem para telas pequenas */
.team-member-name {
  color: #333333;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
  word-wrap: break-word;
}

/* Título das seções */
.section-title-team {
  font-size: 15px;
  font-weight: 800;
  color: #555555;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Ajustes específicos para mobile */
@media (max-width: 576px) {
  .team-icon-box {
    width: 45px;
    height: 45px;
  }
  .team-icon-box i {
    font-size: 18px;
  }
}

/* ========================================================================== */
/* 7. Sobre a UNATI (conteudo_sobre.php)                                          */
/* ========================================================================== */

/* Estilos visuais para os cards de Missão e Filosofia */
.about-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.08) !important;
}

.about-badge-missao {
  background-color: rgba(0, 51, 102, 0.1);
  color: #003366;
  border: 1px solid rgba(0, 51, 102, 0.2);
  font-weight: 700;
}

.about-badge-filosofia {
  background-color: rgba(212, 175, 55, 0.15);
  color: #8a6d0b;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-weight: 700;
}

.about-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.about-text-highlight {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
  text-align: justify;
}

.about-text-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  text-align: justify;
}
