:root {
  --azul-principal: #1E3D59;
  --verde-escuro: #2F5D3A;
  --azul-claro: #4A90E2;
  --branco: #FFFFFF;
  --cinza-claro: #F5F5F5;
  --cinza-escuro: #333333;
  --sombra: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--branco);
  color: var(--cinza-escuro);
  line-height: 1.6;
}

.btn-primary {
  @apply bg-[var(--azul-principal)] text-[var(--branco)] font-bold py-3 px-6 rounded-full hover:bg-[var(--azul-claro)] transition-all duration-300 shadow-md hover:shadow-lg transform hover:-translate-y-1;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Galeria de Imagens */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 64px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .galeria {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

.galeria-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 320px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.galeria-item:hover img {
  transform: scale(1.05);
}

.galeria-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 61, 89, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-item:hover .galeria-item-overlay {
  opacity: 1;
}

.galeria-item-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.galeria-item:hover .galeria-item-title {
  transform: translateY(0);
  opacity: 1;
}

/* Responsividade dos editais */
@media (max-width: 768px) {
  .editais-table {
    display: none;
  }
  .editais-cards {
    display: grid;
    gap: 1rem;
  }
}

@media (min-width: 769px) {
  .editais-table {
    display: block;
  }
  .editais-cards {
    display: none;
  }
}

/* Cards de Editais */
.edital-card {
  @apply bg-white rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1;
}

.edital-card-title {
  @apply text-[var(--azul-principal)] font-bold text-xl mb-4 flex items-center gap-2;
}

.edital-info-item {
  @apply text-[var(--cinza-escuro)] mb-2 flex items-center gap-2;
}

.edital-download-link {
  @apply text-[var(--azul-principal)] hover:text-[var(--azul-claro)] transition-colors duration-300 flex items-center gap-2 mt-4;
}

/* Ícones */
.icon {
  @apply text-[var(--azul-principal)] h-6 w-6;
}

.icon-light {
  @apply text-[var(--branco)] h-6 w-6;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: zoom 0.3s ease-in-out;
}

@keyframes zoom {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.lightbox-caption {
  margin: 20px auto 0;
  width: 80%;
  text-align: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--azul-claro);
}