/* Estilos gerais */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
}


/* Estilo para o idioma ativo no header */
.language-selector a.active,
.language-selector a.language-active {
  color: #e7f802 !important;

  font-weight: 900 !important;

  position: relative;
  text-shadow: 0 0 0.5px #c10023;

  letter-spacing: 0.05em;
  transform: scale(1.1);
}

.language-selector a.active::after,
.language-selector a.language-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #c10023;
}

.language-selector a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0 3px;
}

.language-selector a:hover {
  color: #f8f9fa;
}

.top-bar {
  background-color: #0c2340 !important;
  padding: 8px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
  font-weight: 500;
  /* Aumentado de normal para 500 */
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-bar-info {
  display: flex;
  align-items: center;
}

.top-bar-info span {
  margin-right: 20px;
  font-size: 14px;
  font-weight: 500;
  /* Aumentado para dar mais destaque */
}

.top-bar-info i {
  margin-right: 8px;
}

.language-selector {
  text-align: center;
}

.language-selector a {
  font-size: 14px;
  padding: 0 5px;
}

.language-selector a.active {
  font-weight: 700;
  /* Aumentado de 600 para 700 */
}

.social-icons a {
  margin-left: 10px;
  font-size: 14px;
}

/* Espaçador para compensar a topbar fixa */
.top-bar-spacer {
  height: 5px;
}

/* Navbar fixo */
.navbar {
  position: fixed;
  top: 40px;
  /* Altura da top bar */
  left: 0;
  right: 0;
  z-index: 1030;
  transition: all 0.3s ease;
  padding: 15px 0;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Espaçador para compensar a altura do navbar fixo */
.navbar-spacer {
  height: 130px;
  /* Altura da topbar + navbar */
}

/* Navbar compacto ao rolar */
.navbar.navbar-shrink {
  padding: 8px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-shrink .navbar-brand img {
  max-height: 50px;
  transition: all 0.3s ease;
}

.navbar-brand img {
  max-height: 60px;
  transition: all 0.3s ease;
}

.navbar-nav {
  align-items: center;
}

.nav-item {
  margin: 0 3px;
  /* Aumentado para dar mais espaço */
}

.nav-link {
  color: #333 !important;
  font-weight: 600 !important;
  /* Aumentado de 500 para 600 */
  padding: 8px 15px !important;
  position: relative;
  font-size: 15px;
  transition: color 0.3s;
  letter-spacing: 0.2px;
  /* Adicionado para melhorar legibilidade */
}

.nav-link:hover {
  color: #c10023 !important;
}

.nav-item.active .nav-link {
  color: #c10023 !important;
  font-weight: 700 !important;
  /* Item ativo ainda mais destacado */
}

.nav-item.active .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  height: 3px;
  /* Aumentado de 2px para 3px */
  width: calc(100% - 30px);
  background-color: #c10023;
}

/* Mega Menu - VERSÃO ATUALIZADA */
.mega-menu-container {
  position: static !important;
}

.mega-menu {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  padding: 40px 0;
  border: none;
  border-radius: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.mega-menu-title {
  font-size: 16px;
  font-weight: 700;
  color: #0c2340;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
}

.mega-menu-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: #c10023;
  bottom: -2px;
  left: 0;
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list li {
  margin-bottom: 10px;
}

.mega-menu-list li a {
  color: #555;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
  position: relative;
  padding-left: 15px;
}

.mega-menu-list li a::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 5px;
  color: #c10023;
  opacity: 0;
  transition: all 0.3s ease;
}

.mega-menu-list li a:hover {
  color: #c10023;
  text-decoration: none;
  padding-left: 20px;
}

.mega-menu-list li a:hover::before {
  opacity: 1;
}

/* Dropdown normal */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.dropdown-item {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  /* Aumentado para destacar */
  transition: all 0.3s;
}

.dropdown-item:hover {
  background-color: rgba(193, 0, 35, 0.1);
  color: #c10023;
  padding-left: 25px;
  font-weight: 600;
  /* Aumentado no hover */
}

.admin-btn {
  background-color: transparent;
  border: 2px solid #c10023;
  color: #c10023 !important;
  border-radius: 4px;
  padding: 7px 15px !important;
  font-weight: 600 !important;
  /* Aumentado */
  transition: all 0.3s;
}

.admin-btn:hover {
  background-color: #c10023;
  color: #fff !important;
}

/* Estilos para o ícone de busca e dropdown */
.search-icon-container {
  position: relative;
}

.search-icon {
  font-size: 18px;
  cursor: pointer;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  transition: all 0.3s ease;
}

.search-dropdown.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-form {
  position: relative;
  margin: 0;
  width: 100%;
}

.search-form .form-control {
  border-radius: 30px;
  padding: 10px 15px;
  padding-right: 40px;
  background-color: #f5f5f5;
  border: none;
  font-size: 14px;
  width: 100%;
  transition: all 0.3s;
  font-weight: 500;
}

.search-form .form-control:focus {
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.search-form button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6c757d;
  padding: 0;
  font-size: 14px;
}

/* Estilos do Rodapé */
footer {
  background-color: #0c2340 !important;
  color: white;
  padding: 70px 0 20px;
  background-image: linear-gradient(rgba(12, 35, 64, 0.9), rgba(12, 35, 64, 0.9)), url('/api/placeholder/1920/1080');
  background-size: cover;
  background-position: center;
}

footer .logo-footer {
  max-width: 250px;
  margin-bottom: 20px;
}

footer h4 {
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
}

footer h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 2px;
  background: #c10023;
}

footer .footer-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

footer ul.links li {
  margin-bottom: 10px;
}

footer ul.links li a {
  color: #f8f9fa;
  transition: all 0.3s;
  display: inline-block;
}

footer ul.links li a:hover {
  color: #c10023;
  transform: translateX(5px);
  text-decoration: none;
}

footer .contact-info {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

footer .contact-info i {
  color: #c10023;
  font-size: 18px;
  min-width: 25px;
  margin-top: 4px;
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s;
}

footer .social-icons a:hover {
  background: #c10023;
  transform: translateY(-3px);
}

footer .copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

footer .copyright span {
  color: #c10023;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 50%;
  /* Posiciona o lado esquerdo do elemento no centro da página */
  transform: translateX(-50%);
  /* Desloca o elemento para a esquerda em 50% da sua própria largura */
  width: 40px;
  height: 40px;
  background: #c10023;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 3px;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s;
  display: none;
}

.back-to-top:hover {
  background: #0c2340;
}

.news-section {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/api/placeholder/1920/1080');
  background-size: cover;
  background-position: center;
  opacity: 0.02;
  z-index: 0;
}

.section-heading {
  position: relative;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background-color: rgba(193, 0, 35, 0.1);
  color: #c10023;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 15px;
  border-radius: 30px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #0c2340;
  margin-bottom: 20px;
  position: relative;
}

.section-divider {
  height: 3px;
  width: 60px;
  background-color: #c10023;
  margin: 0 auto 20px;
  border-radius: 3px;
}

.section-subtitle {
  font-size: 16px;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

.news-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(193, 0, 35, 0.1);
}

.news-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.news-card:hover .news-img-container img {
  transform: scale(1.05);
}

.news-img-placeholder {
  background-color: #e9ecef;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 50px;
}

.news-category {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 2;
}

.news-category a {
  background-color: #c10023;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 15px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(193, 0, 35, 0.3);
  transition: all 0.3s ease;
}

.news-category a:hover {
  background-color: #0c2340;
  box-shadow: 0 5px 15px rgba(12, 35, 64, 0.3);
}

.news-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  min-width: 60px;
}

.news-day {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: #c10023;
}

.news-month {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0c2340;
  text-transform: uppercase;
}

.news-content {
  padding: 25px;
  position: relative;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  height: 50px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-title a {
  color: #0c2340;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: #c10023;
}

.news-meta {
  display: flex;
  margin-bottom: 15px;
  font-size: 13px;
  color: #6c757d;
}

.news-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.news-meta span i {
  margin-right: 5px;
  color: #c10023;
}

.news-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 20px;
  height: 67px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
}

.news-read-more {
  color: #c10023;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.news-read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.news-read-more:hover {
  color: #0c2340;
  text-decoration: none;
}

.news-read-more:hover i {
  transform: translateX(5px);
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #c10023;
  color: white;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(193, 0, 35, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-view-all::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.btn-view-all:hover {
  background-color: #0c2340;
  box-shadow: 0 8px 25px rgba(12, 35, 64, 0.4);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
}

.btn-view-all:hover::before {
  left: 100%;
}

.btn-view-all span {
  position: relative;
  z-index: 1;
}

.btn-view-all i {
  margin-left: 10px;
  font-size: 14px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-view-all:hover i {
  transform: translateX(5px);
}

.empty-state {
  background-color: white;
  border-radius: 12px;
  padding: 60px 30px;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
  font-size: 60px;
  color: #e9ecef;
  margin-bottom: 20px;
}

.empty-state-title {
  font-size: 24px;
  font-weight: 600;
  color: #0c2340;
  margin-bottom: 15px;
}

.empty-state-text {
  font-size: 16px;
  color: #6c757d;
  max-width: 500px;
  margin: 0 auto;
}



/* Estilo para destacar o nome do desenvolvedor no rodapé */
footer .copyright a {
  color: #c10023;
  font-weight: 600;
  position: relative;
  padding: 0 5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

footer .copyright a:hover {
  color: #fff !important;
  transform: translateY(-3px);
  text-decoration: none;
}

/* Efeito de destaque no hover */
footer .copyright a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

footer .copyright a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Efeito de brilho no hover */
footer .copyright a:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Animação mais rápida e intensa de pulsação para o coração */
footer .copyright span i {
  color: #c10023;
  animation: heartbeat 1s infinite ease-in-out;
  margin: 0 5px;
  display: inline-block;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}


/* Modificações para tornar navbar e topbar fixos em dispositivos pequenos */

@media (max-width: 991px) {

  /* Topbar fixa no topo */
  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 5px 0;
  }

  /* Navbar fixa logo abaixo da topbar */
  .navbar {
    position: fixed;
    top: 38px;
    /* Altura da top bar em mobile */
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Espaçador para compensar os elementos fixos */
  .navbar-spacer {
    height: 100px;
    /* Ajuste conforme necessário (topbar + navbar height) */
  }

  /* Melhoria visual para topbar em mobile */
  .top-bar-info {
    margin-bottom: 0;
  }

  .top-bar-info span {
    font-size: 12px;
    margin-bottom: 0;
  }

  /* Mega menu ajustado para posicionamento fixo */
  .mega-menu {
    top: 92px;
    /* Ajuste conforme a altura combinada do topbar+navbar */
    max-height: calc(100vh - 100px);
  }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 576px) {
  .top-bar {
    padding: 0 0;
  }

  .navbar {
    top: 50px;
    /* Pode precisar de ajuste fino */
  }

  .navbar-spacer {
    height: 90px;
    /* Ajuste conforme necessário */
  }

  /* Ajuste do mega menu para telas muito pequenas */
  .mega-menu {
    top: 82px;
    /* Ajuste conforme necessário */
  }
}