/* ===== HEADER STYLES ===== */
#main-header {
  background: var(--white);
  color: var(--text-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* LOGO E TEXTO INSTITUCIONAL */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--primary-blue);
  line-height: 1.2;
  font-weight: 700;
}

.logo-text p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--gray-medium);
  font-weight: 400;
}

/* NAVEGAÇÃO STYLES */
nav {
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 0;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link.active {
  color: var(--primary-blue);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary-red);
  border-radius: 2px;
}

.nav-link.active::after {
  background: var(--accent-yellow);
}

/* TOGGLE MOBILE */
.mobile-menu-toggle {
  display: none;
  background: var(--primary-blue);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* ===== FOOTER STYLES ===== */
#main-footer {
  background: var(--primary-dark);
  color: var(--white);
  margin-top: auto;
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h2, 
.footer-section h3 {
  color: var(--accent-yellow);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p, 
.footer-list {
  color: var(--gray-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-list li i {
  color: var(--secondary-red);
  margin-right: 10px;
}

.footer-list li a,
.contact-info li span,
.social-links a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-list li a:hover,
.contact-info li span:hover {
  color: var(--accent-yellow);
}

.footer-logo h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.social-links a {
  font-size: 1.5rem;
  margin-right: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-medium);
}

/* ===== TIMELINE STYLE ===== */
.timeline {
  position: relative;
  padding: 20px 0;
  margin-top: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gray-light);
  left: 20px;
  margin-left: -2px;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-blue);
  left: 20px;
  top: 5px;
  margin-left: -7px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--secondary-red);
}

.timeline-item h4 {
  margin-top: 0;
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ===== DATA TABLE STYLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: var(--shadow);
  background: var(--white);
  display: block;
}

.data-table thead {
  background: var(--primary-blue);
  color: var(--white);
}

.data-table th, .data-table td {
  padding: 15px;
  text-align: left;
  border: 1px solid var(--gray-light);
}

.data-table th {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--light-color);
}

.data-table tbody tr:hover {
  background-color: #f0f0f0;
}

/* ===== NEWS CARD STYLES ===== */
.news-card {
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.news-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.news-card a.news-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.news-card .read-more {
  color: var(--secondary-red);
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
}

.news-card .read-more i {
  margin-left: 5px;
  transition: margin-left 0.3s;
}

.news-card:hover .read-more i {
  margin-left: 10px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    color: var(--white);
    padding: 10px 0;
  }

  .timeline::before {
    left: 10px;
  }
  
  .timeline-item {
    padding-left: 40px;
  }
  
  .timeline-item::before {
    left: 10px;
  }
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    flex: 1 1 100%;
  }
}

/* Galeria de Fotos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #333;
    background: white;
}

/* Animações de entrada */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay para animação em cascata */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }
.gallery-item:nth-child(13) { animation-delay: 1.3s; }
.gallery-item:nth-child(14) { animation-delay: 1.4s; }
.gallery-item:nth-child(15) { animation-delay: 1.5s; }

/* Responsividade */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}