body {
  font-family: "Lato", sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: "Libre Baskerville", serif;
}

.relative.pl-10 {
  position: relative;
}

.relative.pl-10 .absolute {
  left: 0.5rem; /* Ajuste fino da posição dos pontos */
  top: 1.25rem; /* Alinhamento vertical melhorado */
}

.bg-white.p-5.rounded-lg.shadow-sm {
  transition: all 0.3s ease;
}

.bg-white.p-5.rounded-lg.shadow-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Remove a linha vertical do timeline antigo */
.timeline:before {
  display: none;
}

/* Ajusta o espaçamento geral */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.video-carousel {
  scroll-snap-type: x mandatory;
}
.video-carousel-item {
  scroll-snap-align: start;
}
.event-tag {
  transition: all 0.3s ease;
}
.event-tag:hover {
  transform: scale(1.05);
}

/* Base style */
.publication-filters button,
.theme-filters button,
.event-filters button {
  background-color: white;
  border: 2px solid #1a365d;
  color: #1a365d;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover effect */
.publication-filters button:hover,
.theme-filters button:hover,
.event-filters button:hover {
  background-color: #e6f0ff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Selected / active button */
.publication-filters button.bg-blue-900,
.theme-filters button.bg-blue-900,
.event-filters button.bg-blue-900 {
  background-color: #1a365d;
  color: white;
  border-color: #1a365d;
}

/* transition */
button {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

/* Estilos para os botões do carrossel */
.carousel-nav-buttons {
  position: relative;
  z-index: 20;
}

.carousel-prev-btn,
.carousel-next-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-prev-btn:hover,
.carousel-next-btn:hover {
  box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.carousel-prev-btn:active,
.carousel-next-btn:active {
  transform: scale(0.95);
}

/* Efeito de desativação quando não houver mais itens para rolar */
.carousel-prev-btn.disabled,
.carousel-next-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Indicador visual de scroll (opcional) */
.carousel-scroll-indicator {
  height: 4px;
  background: #e2e8f0;
  margin-top: 8px;
  border-radius: 2px;
}

.carousel-scroll-progress {
  height: 100%;
  background: #1a365d;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Estilos para a seção de orientações */
.filter-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #ebf4ff;
}

.filter-btn.active {
  background-color: #1a365d;
  color: white;
}

/* Barra de scroll personalizada */
.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Efeito nos itens da lista */
.upt-group,
.uab-group {
  margin-bottom: 2rem;
}

li.text-sm {
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

li.text-sm:hover {
  background-color: #f0f4f8;
}

/* Academic Orientations Card Styles */
.academic-group {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: block; /* Default state for filtering */
}

.academic-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.academic-group h5 {
  font-size: 0.95rem;
  color: #2c5282;
}

.academic-group ul {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.academic-group li {
  transition: background-color 0.2s;
  padding: 8px 4px;
  margin-bottom: 4px;
  border-radius: 4px;
}

.academic-group li:hover {
  background-color: #f8fafc;
}

/* Custom scrollbar for orientation lists */
.academic-group ul::-webkit-scrollbar {
  width: 6px;
}

.academic-group ul::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.academic-group ul::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 10px;
}

.academic-group ul::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Filter button styles */
.academic-filter-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}

.academic-filter-btn:hover {
  background-color: #ebf4ff;
}

.academic-filter-btn.active {
  background-color: #1a365d;
  color: white;
  border-color: #1a365d;
}

.activity-card {
  transition: all 0.3s ease;
}

.activity-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.photo-carousel {
  width: 100%;
  overflow: hidden;
}

.photo-carousel > div {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.photo-carousel > div > div {
  width: calc(100% / 3); /* Cada card ocupa 1/3 do espaço */
  display: inline-block; /* Permite que fiquem lado a lado */
  vertical-align: top; /* Alinha os cards no topo */
  box-sizing: border-box; /* Garante que padding não afete a largura */
  padding: 0 8px; /* Espaçamento entre os cards */
}

@media (min-width: 768px) {
  .photo-carousel > div > div {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1024px) {
  .photo-carousel > div > div {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}
