/* ===== FONT CONFIGURATION ===== */
* {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

/* Ajustes personalizados do menu */
#mainNav {
  width: 100vw;
  left: 0;
  right: 0;
  top: 0;
  position: fixed;
  z-index: 999;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(0, 24, 48, 0.7) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 8px 0 rgba(0,0,0,0.05);
  font-family: 'Outfit', sans-serif;
}
#mainNav .navbar-nav {
  flex-direction: row !important;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap !important;
}

/* Sobrescrever para mobile - menu vertical */
@media (max-width: 991.98px) {
  #mainNav .navbar-nav {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  
  #mainNav .nav-item {
    width: 100% !important;
    margin: 0.25rem 0 !important;
  }
  
  #mainNav .nav-link {
    width: 100% !important;
    text-align: left !important;
    padding: 0.75rem 1rem !important;
    display: block !important;
  }
  
  /* Garantir que dropdowns também fiquem verticais */
  #mainNav .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    background: rgba(0, 24, 48, 0.9) !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  #mainNav .dropdown-item {
    padding-left: 2rem !important;
    width: 100% !important;
  }
}
#mainNav .navbar-brand img {
  width: 100px !important; /* tamanho como antes */
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}
#mainNav .nav-item {
  margin: 0 0.5rem;
  white-space: nowrap;
}
#mainNav .nav-link {
  color: #fff !important;
  opacity: 0.85;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem !important;
  font-family: 'Outfit', sans-serif;
}
#mainNav .nav-link:hover, #mainNav .nav-link:focus {
  color: #fff !important;
  opacity: 1;
}
#mainNav .btn-primary {
  background: #d4ff5c !important;
  color: #222 !important;
  border-radius: 2em !important;
  font-weight: 600;
  padding: 0.5rem 1.5rem !important;
  box-shadow: none !important;
  border: none !important;
  transition: background 0.2s;
  font-size: 0.95rem;
  text-transform: none;
  margin-left: 1rem;
  vertical-align: middle;
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}
#mainNav .btn-primary:hover, #mainNav .btn-primary:focus {
  background: #c0e94a !important;
  color: #222 !important;
}

/* Ajustes da seção inicial (masthead) */
.masthead {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.masthead .container {
  max-width: 1200px;
}

.masthead h3 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.masthead h2 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #fff;
  opacity: 0.9;
}

/* Card Missão */
.missao-card {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
  border-radius: 15px;
  padding: 4px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255);
}

.missao-card h4 {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
}

.missao-card p {
  font-size: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
}

/* Botão Saiba mais */
.masthead .btn-primary {
  background: #d4ff5c !important;
  color: #222 !important;
  border-radius: 2em !important;
  font-weight: 500;
  padding: 0.75em 2em !important;
  box-shadow: none !important;
  border: none !important;
  font-size: 0.9rem;
  text-transform: none;
  margin-top: 1rem;
  display: inline-block;
}

.masthead .btn-primary:hover {
  background: #c0e94a !important;
  color: #222 !important;
}

/* Responsividade */
@media (max-width: 991px) {
  .masthead h3 {
    font-size: 2rem;
  }
  
  .masthead h2 {
    font-size: 1rem;
  }
  
  .missao-card {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }

  /* ===== Ajustes de NAVBAR para MOBILE ===== */
  #mainNav {
    background: rgba(0, 24, 48, 0.55) !important; /* um pouco mais claro no mobile */
  }
  #mainNav .navbar-brand img {
    width: 100px !important; /* garante tamanho no mobile */
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) !important; /* logo branca no mobile */
  }
  #mainNav .navbar-toggler {
    color: #ffffff !important; /* texto "Menu" mais claro */
    border-color: rgba(255, 255, 255, 0.5) !important;
  }
  #mainNav .navbar-toggler .fas {
    color: #ffffff !important; /* ícone do menu (hamburger) claro */
  }
  #mainNav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25) !important;
  }
  #mainNav .nav-link {
    color: #ffffff !important; /* links do menu mais claros */
    opacity: 0.95 !important;
    font-weight: 600;
  }
}

/* Ajustes para dropdowns */
#mainNav .dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: middle;
}

#mainNav .dropdown-menu {
  background: rgba(0, 24, 48, 0.7);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  padding: 0.5rem 0;
  min-width: 200px;
}

#mainNav .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
}

#mainNav .dropdown-item:hover,
#mainNav .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#mainNav .dropdown-item:active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Ajuste para hover nos itens com dropdown */
#mainNav .nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

#mainNav .dropdown:hover > .dropdown-toggle {
  color: #fff !important;
  opacity: 1;
}

/* Responsividade para dropdowns */
@media (max-width: 991px) {
  #mainNav .dropdown-menu {
    position: static !important;
    float: none;
    width: auto;
    margin-top: 0;
    background: rgba(0, 24, 48, 0.8);
    border: none;
    box-shadow: none;
  }
  
  #mainNav .dropdown-item {
    padding-left: 2rem;
  }
}

/* Área de ponte invisível para manter dropdown aberto */
#mainNav .dropdown:hover .dropdown-menu {
  display: block;
}

#mainNav .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

/* ===== MASTHEAD/HERO SECTION ===== */
.masthead {
  background-image: url('../images/capa_home.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end; /* Alinha no bottom */
  padding-top: 80px; /* Espaço para o menu fixo */
  padding-bottom: 3rem; /* Espaço do bottom */
}

.masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 24, 48, 0.3) 0%, rgba(0, 24, 48, 0.2) 100%);
  z-index: 1;
}

.masthead .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem; /* Espaçamento do bottom */
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Outfit', sans-serif;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-family: 'Outfit', sans-serif;
}

.hero-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero-content span {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  display: block;
  margin-bottom: 2rem;
}

.missao-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255);
  border-radius: 15px;
  padding: 10px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem; /* Espaçamento do bottom */
}

.missao-card h4 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #d4ff5c;
  font-family: 'Outfit', sans-serif;
}

.missao-card p {
  font-size: 12px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Outfit', sans-serif;
}

/* Card Alertas Meteorológicos */
.alertas-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255);
  border-radius: 15px;
  padding: 15px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
  min-height: 120px;
  transition: all 0.3s ease;
}

/* Variações de cor por nível de alerta */
.alertas-card.nivel-vermelho {
  background: rgba(220, 53, 69, 0.25);
  border-color: #dc3545;
  box-shadow: 0 0 25px rgba(220, 53, 69, 0.4);
}

.alertas-card.nivel-laranja {
  background: rgba(253, 126, 20, 0.25);
  border-color: #fd7e14;
  box-shadow: 0 0 25px rgba(253, 126, 20, 0.4);
}

.alertas-card.nivel-amarelo {
  background: rgba(255, 193, 7, 0.25);
  border-color: #ffc107;
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.4);
}

.alertas-card.sem-alertas {
  background: rgba(40, 167, 69, 0.25);
  border-color: #28a745;
  box-shadow: 0 0 25px rgba(40, 167, 69, 0.4);
}

.alertas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.alertas-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.alertas-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #d4ff5c;
  font-family: 'Outfit', sans-serif;
  flex: 1;
}

.alertas-toggle-icon {
  font-size: 14px;
  color: #d4ff5c;
  transition: transform 0.3s ease;
}

.alertas-content-wrapper {
  margin-top: 10px;
}

.alertas-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* NOVO SISTEMA DE CARDS DAS CIDADES */
.alertas-cards-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

.alertas-cards-container .alertas-header h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #d4ff5c;
  font-family: 'Outfit', sans-serif;
}

/* Cities Section */
.cities-section {
    background: transparent;
}

.cities-header {
    margin-bottom: 30px;
    text-align: center;
}

.cities-title {
    color: #1a252f;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cities-title i {
    color: #2980b9;
    font-size: 1.4rem;
    margin-right: 10px;
}

.cities-subtitle {
    color: #34495e;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Cities Cards Grid */
.cities-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.city-card {
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 100%);
    border: 2px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.city-card:hover::before {
    opacity: 1;
}

.city-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.city-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px 12px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(46, 204, 113, 0.08) 100%);
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.city-status-indicator {
    display: flex;
    align-items: center;
}

.status-dot {
    font-size: 10px;
    color: #2980b9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.city-weather-icon {
    color: #e67e22;
    font-size: 1.4rem;
}

.city-card-body {
    padding: 20px 25px;
}

.city-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a252f;
    margin: 0 0 15px 0;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.city-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-status {
    display: flex;
    align-items: center;
    color: #34495e;
    font-size: 1rem;
    font-weight: 600;
}

.city-status i {
    color: #2980b9;
    font-size: 1.1rem;
}

.status-text {
    font-weight: 600;
    color: #2c3e50;
}

.city-coords {
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

.city-card-footer {
    padding: 12px 25px 18px;
    border-top: 1px solid rgba(52, 152, 219, 0.1);
    background: rgba(248, 249, 250, 0.8);
}

.last-update {
    display: flex;
    align-items: center;
    color: #34495e;
    font-size: 0.85rem;
    font-weight: 500;
}

.last-update i {
    color: #2980b9;
    animation: spin 2s linear infinite;
    font-size: 0.9rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.city-alert-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.city-alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.city-card-content {
    flex: 1;
}

.no-cities-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

/* Gray state for cities without alerts */
.city-card-gray {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: rgba(108, 117, 125, 0.2);
}

.city-card-gray .status-dot {
    color: #6c757d;
}

.city-card-gray .city-weather-icon {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cities-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .cities-section {
        padding: 20px 15px;
    }
    
    .cities-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cities-title {
        font-size: 1.2rem;
    }
    
    .city-card {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .cities-section {
        padding: 15px 10px;
    }
    
    .cities-header {
        margin-bottom: 20px;
    }
    
    .city-card-header,
    .city-card-body,
    .city-card-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.city-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
}

.city-card-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
}

/* CORES DOS CARDS DAS CIDADES */

/* Cinza inicial (carregando) */
.city-card-gray {
  background: rgba(108, 117, 125, 0.8);
  border-color: #6c757d;
}

.city-card-gray .city-card-indicator {
  color: #6c757d;
}

/* Verde (sem alertas) */
.city-card-green {
  background: rgba(40, 167, 69, 0.3);
  border-color: #28a745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.city-card-green .city-card-indicator {
  color: #28a745;
}

/* Amarelo (alerta nível baixo) */
.city-card-yellow {
  background: rgba(255, 193, 7, 0.3);
  border-color: #ffc107;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.city-card-yellow .city-card-indicator {
  color: #ffc107;
}

/* Laranja (alerta nível médio) */
.city-card-orange {
  background: rgba(253, 126, 20, 0.3);
  border-color: #fd7e14;
  box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
}

.city-card-orange .city-card-indicator {
  color: #fd7e14;
}

/* Vermelho (alerta nível alto) */
.city-card-red {
  background: rgba(220, 53, 69, 0.3);
  border-color: #dc3545;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.city-card-red .city-card-indicator {
  color: #dc3545;
}

.no-cities-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Responsividade para cards das cidades */
@media (max-width: 768px) {
  .cities-cards-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 6px;
  }
  
  .city-alert-card {
    padding: 8px;
    min-height: 45px;
  }
  
  .city-name {
    font-size: 11px;
  }
}

.alerta-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  border-left: 3px solid;
}

.alerta-item.nivel-vermelho {
  border-left-color: #dc3545;
}

.alerta-item.nivel-laranja {
  border-left-color: #fd7e14;
}

.alerta-item.nivel-amarelo {
  border-left-color: #ffc107;
}

.alerta-item .alerta-nome {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 2px;
  color: #d4ff5c;
}

.alerta-item .alerta-nivel {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.alertas-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.3s ease-out;
}

.alertas-details h6 {
  color: #d4ff5c;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.alertas-details p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-bottom: 6px;
  line-height: 1.4;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

/* Animação para destacar marcador aleatório */
@keyframes markerPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.alertas-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 8px;
  text-align: center;
}

.alertas-sem-alertas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: white;
  border: 2px solid #28a745;
  border-radius: 8px;
  margin: 8px 0;
}

.alertas-sem-alertas i {
  font-size: 20px;
  color: #28a745;
  margin-bottom: 8px;
}

.alertas-sem-alertas .text-success {
  color: #28a745 !important;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.alertas-sem-alertas small {
  color: #666;
  font-size: 11px;
}

.btn-primary {
  background: #d4ff5c;
  border: none;
  color: #222;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #c0e94a;
  color: #222;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 255, 92, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-content h3 {
    font-size: 2rem;
  }
  
  .missao-card {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-content h3 {
    font-size: 1.5rem;
  }
  
  .missao-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .missao-card h4 {
    font-size: 1.3rem;
  }
  
  .masthead {
    padding: 2rem 0;
    padding-bottom: 2rem; /* Mantém espaço do bottom em mobile */
    background-attachment: scroll; /* Remove parallax em mobile */
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, #d4ff5c, #a8d448);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.2rem;
  animation: bounce 2s infinite;
  z-index: 3;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* ===== GLOBAL FONT OVERRIDE ===== */
/* Garante que toda a tipografia use Outfit */
body, 
.container, 
.row, 
.col, 
.nav, 
.navbar, 
.card, 
.btn, 
input, 
textarea, 
select, 
.form-control,
.text-white,
.text-black-50,
.small,
p, span, div, a {
  font-family: 'Outfit', sans-serif !important;
}

/* Pesos específicos para elementos */
.fw-bolder, 
strong, 
b {
  font-weight: 700 !important;
}

.text-uppercase {
  font-weight: 600 !important;
  letter-spacing: 1px;
}

/* ===== WEATHER SECTION STYLES ===== */
.about-section {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 0;
}

.weather-panel {
  background: #ffffff;
  padding: 2rem;
  height: calc(100vh - 100px);
  overflow-y: auto;
  font-family: 'Outfit', sans-serif;
}

.weather-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.weather-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.current-weather {
  margin-bottom: 2.5rem;
}

.location-info h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.condition-text {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.temperature-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.temp-value {
  font-size: 4rem;
  font-weight: 300;
  color: #2c3e50;
  line-height: 1;
}

.weather-icon {
  font-size: 3rem;
  color: #ffc107;
}

.weather-description {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 0;
}

.weather-details {
  background: #ffffff;
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.detail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 0.25rem;
  max-width: 100%;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-item {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  transition: all 0.3s ease;
  position: relative;
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
  border-left-color: #0056b3;
}

.detail-item:nth-child(2) {
  border-left-color: #28a745;
}

.detail-item:nth-child(2):hover {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
  border-left-color: #1e7e34;
}

.detail-item:nth-child(3) {
  border-left-color: #ffc107;
}

.detail-item:nth-child(3):hover {
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
  border-left-color: #e0a800;
}

.detail-item:nth-child(4) {
  border-left-color: #dc3545;
}

.detail-item:nth-child(4):hover {
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
  border-left-color: #c82333;
}

.detail-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.detail-label i {
  margin-right: 0.35rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.detail-value {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.2;
}

/* ===== MAP STYLES ===== */
.map-container {
  height: calc(100vh - 100px);
  position: relative;
  background: #e9ecef;
}

#angola-map {
  height: 100%;
  width: 100%;
}

/* Custom Leaflet Marker Styles */
.temperature-marker {
  background: #28a745;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
}

.leaflet-popup-content {
  margin: 8px 12px;
  font-size: 13px;
}

.popup-temperature {
  font-size: 18px;
  font-weight: 600;
  color: #28a745;
  margin-bottom: 4px;
}

.popup-location {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 2px;
}

/* ===== LEAFLET CONTROLS STYLING ===== */
.leaflet-control-layers {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-control-layers-toggle {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  width: 32px;
  height: 32px;
}

.leaflet-control-zoom {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-control-zoom a {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #2c3e50;
  font-weight: 600;
  border-radius: 6px;
  margin: 2px;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.leaflet-control-zoom a:hover {
  background-color: #007bff;
  color: white;
  transform: scale(1.05);
}

.leaflet-control-layers-expanded {
  padding: 8px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
}

.leaflet-control-layers-base label {
  margin-bottom: 4px;
  font-weight: 500;
  color: #2c3e50;
}

.leaflet-control-layers-base input[type="radio"] {
  margin-right: 6px;
}

/* ===== WEATHER LOADING STATES ===== */
.weather-loading {
  opacity: 0.6;
  pointer-events: none;
}

.weather-loading .temp-value,
.weather-loading .detail-value {
  position: relative;
}

.weather-loading .temp-value::after,
.weather-loading .detail-value::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== WEATHER NOTIFICATION STYLES ===== */
.weather-notification {
  transition: all 0.3s ease;
}

.weather-notification:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* ===== MARKER UPDATE INDICATOR ===== */
.marker-updating {
  position: relative;
}

.marker-updating::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #007bff;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .about-section {
    padding: 0;
  }
  
  .weather-panel {
    height: auto;
    padding: 1.5rem;
  }
  
  .map-container {
    height: 60vh;
    min-height: 400px;
  }
  
  .weather-header h2 {
    font-size: 2rem;
  }
  
  .temp-value {
    font-size: 3rem;
  }
  
  .weather-icon {
    font-size: 2.5rem;
  }
  
  .detail-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 0;
  }
  
  .weather-panel {
    padding: 1rem;
  }
  
  .weather-details {
    margin: 1rem;
    padding: 1rem;
    margin-top: 0;
  }
  
  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .detail-item {
    padding: 0.75rem;
    margin-bottom: 0;
  }
  
  .detail-label {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }
  
  .detail-value {
    font-size: 1rem;
  }
  
  .temperature-display {
    justify-content: center;
    gap: 2rem;
  }
}

/* ===== WEATHER DETAILS SIDEBAR STYLES ===== */
.weather-details-sidebar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.detail-row-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail-item-sidebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 8px;
  border-left: 3px solid #007bff;
  transition: all 0.3s ease;
}

.detail-item-sidebar:hover {
  background: rgba(248, 249, 250, 1);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.detail-item-sidebar:nth-child(2) {
  border-left-color: #28a745;
}

.detail-item-sidebar:nth-child(2):hover {
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.detail-row-sidebar:nth-child(3) .detail-item-sidebar:nth-child(1) {
  border-left-color: #ffc107;
}

.detail-row-sidebar:nth-child(3) .detail-item-sidebar:nth-child(1):hover {
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
}

.detail-row-sidebar:nth-child(3) .detail-item-sidebar:nth-child(2) {
  border-left-color: #dc3545;
}

.detail-row-sidebar:nth-child(3) .detail-item-sidebar:nth-child(2):hover {
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.detail-row-sidebar:nth-child(4) .detail-item-sidebar:nth-child(1) {
  border-left-color: #17a2b8;
}

.detail-row-sidebar:nth-child(4) .detail-item-sidebar:nth-child(1):hover {
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.1);
}

.detail-row-sidebar:nth-child(4) .detail-item-sidebar:nth-child(2) {
  border-left-color: #6f42c1;
}

.detail-row-sidebar:nth-child(4) .detail-item-sidebar:nth-child(2):hover {
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.1);
}

.detail-row-sidebar:nth-child(5) .detail-item-sidebar:nth-child(1) {
  border-left-color: #fd7e14;
}

.detail-row-sidebar:nth-child(5) .detail-item-sidebar:nth-child(1):hover {
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.1);
}

.detail-row-sidebar:nth-child(5) .detail-item-sidebar:nth-child(2) {
  border-left-color: #e83e8c;
}

.detail-row-sidebar:nth-child(5) .detail-item-sidebar:nth-child(2):hover {
  box-shadow: 0 2px 8px rgba(232, 62, 140, 0.1);
}

.detail-label-sidebar {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex: 1;
}

.detail-label-sidebar i {
  margin-right: 0.5rem;
  opacity: 0.8;
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}

.detail-value-sidebar {
  font-size: 0.9rem;
  color: #2c3e50;
  font-weight: 600;
  text-align: right;
}

/* Responsive adjustments for sidebar */
@media (max-width: 992px) {
  .weather-details-sidebar {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
  
  .detail-item-sidebar {
    padding: 0.6rem;
  }
  
  .detail-label-sidebar {
    font-size: 0.7rem;
  }
  
  .detail-value-sidebar {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .weather-details-sidebar {
    margin-top: 1rem;
  }
  
  .detail-row-sidebar {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .detail-item-sidebar {
    padding: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .detail-value-sidebar {
    text-align: left;
    font-size: 0.9rem;
  }
}

/* ===== PROJECTS SECTION STYLES ===== */
.projects-section {
  background: linear-gradient(to top, #f8f9fa 0%, #ffffff 100%);
  padding: 5rem 0;
  font-family: 'Outfit', sans-serif;
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.3) 50%, rgba(248, 249, 250, 0.8) 100%);
  z-index: 1;
}

.projects-section .container {
  position: relative;
  z-index: 2;
}

.projects-header h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #2c3e50;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.navigation-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navigation-hint i {
  font-size: 0.8rem;
}

.site-map-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.site-map-link:hover {
  color: #007bff;
}

.site-map-link i {
  font-size: 0.8rem;
}

/* ===== RESOURCE CARDS ===== */
.resource-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resource-card:hover .card-image img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 123, 255, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.resource-card:hover .card-overlay {
  opacity: 1;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card-content p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== CARD VARIATIONS ===== */
.card-climate:hover .card-overlay {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(40, 167, 69, 0.6));
}

.card-agriculture:hover .card-overlay {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.8), rgba(255, 193, 7, 0.6));
}

.card-water:hover .card-overlay {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.8), rgba(23, 162, 184, 0.6));
}

.card-knowledge:hover .card-overlay {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.8), rgba(108, 117, 125, 0.6));
}

.card-education:hover .card-overlay {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.8), rgba(220, 53, 69, 0.6));
}

.card-innovation:hover .card-overlay {
  background: linear-gradient(135deg, rgba(102, 16, 242, 0.8), rgba(102, 16, 242, 0.6));
}

/* ===== RESPONSIVE DESIGN FOR PROJECTS ===== */
@media (max-width: 992px) {
  .projects-header h2 {
    font-size: 2rem;
  }
  
  .projects-section {
    padding: 3rem 0;
  }
  
  .card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .projects-header h2 {
    font-size: 1.75rem;
  }
  
  .navigation-hint {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .site-map-link {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .card-image {
    height: 160px;
  }
  
  .card-content {
    padding: 1.25rem;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
  
  .card-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .projects-header h2 {
    font-size: 1.5rem;
  }
  
  .resource-card {
    margin-bottom: 1.5rem;
  }
  
  .card-image {
    height: 140px;
  }
}

/* ===== AGRICULTURE SECTION STYLES ===== */
.agriculture-section {
  background: #ffffff;
  padding: 5rem 0;
  font-family: 'Outfit', sans-serif;
}

.agriculture-section h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 3rem;
}

.agriculture-slider {
  position: relative;
  overflow: hidden;
}

.slider-container {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
}

.agriculture-card {
  flex: 0 0 250px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.agriculture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-image-placeholder {
  width: 60px;
  height: 60px;
  background: #e9ecef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon {
  font-size: 1.5rem;
  color: #6c757d;
}

.agriculture-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.slider-controls {
  position: absolute;
  bottom: -50px;
  right: 0;
  display: flex;
  gap: 0.5rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #28a745;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: #218838;
  transform: scale(1.1);
}

.slider-btn.prev-btn {
  background: #e9ecef;
  color: #6c757d;
}

/* ===== PARTNERSHIPS SECTION STYLES ===== */
.partnerships-section {
  padding: 5rem 0;
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(to top, #e9ecef 0%, #f8f9fa 100%);
  position: relative;
}

.partnerships-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.3) 50%, rgba(233, 236, 239, 0) 100%);
  z-index: 1;
}

.partnerships-section .container {
  position: relative;
  z-index: 2;
}

/* ===== ESTILOS ESPECÍFICOS PARA BIBLIOTECA E BLOG ===== */

/* Cards da biblioteca na seção projects */
.resource-card .card-content small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.resource-card .card-content small i {
  color: #007bff;
}

/* Estilos para seção de blog/notícias */
.section-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Cards de blog - post principal */
.partnership-card.main-card .card-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 0;
}

.partnership-card.main-card .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Cards de blog - posts secundários */
.partnership-card.small-card .card-info h5 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.partnership-card.small-card .card-info p.small {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #666;
  margin-bottom: 0;
}

.partnership-card.small-card .card-info small {
  font-size: 0.75rem;
  color: #999;
}

/* Card placeholder quando há poucos posts */
.text-center.p-3.border.rounded.bg-white {
  background: #ffffff !important;
  border: 1px dashed #dee2e6 !important;
  transition: all 0.3s ease;
}

.text-center.p-3.border.rounded.bg-white:hover {
  border-color: #007bff !important;
  background: #f8f9fa !important;
}

/* Melhorias para fallback alerts */
.alert.alert-info {
  border: none;
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  color: #1976d2;
  font-weight: 500;
}

.alert.alert-info i {
  color: #1976d2;
}

.alert.alert-info .btn {
  margin-top: 0.5rem;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
.contact-section {
  background: #ffffff;
  padding: 5rem 0;
  font-family: 'Outfit', sans-serif;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 15px;
  height: 100%;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  color: #ffffff;
  font-size: 1.2rem;
}

.contact-details h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

.contact-details a {
  color: #007bff;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.social-contact {
  margin-top: 2rem;
}

.social-contact h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.social-links-contact {
  display: flex;
  gap: 1rem;
}

.social-links-contact a {
  width: 40px;
  height: 40px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links-contact a:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Formulário de contato */
.contact-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.contact-form-container .form-label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.contact-form-container .form-control,
.contact-form-container .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.contact-form-container .form-control:focus,
.contact-form-container .form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form-container textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form-container .form-check-input {
  margin-top: 0.25rem;
}

.contact-form-container .form-check-label {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.4;
}

.contact-form-container .form-check-label a {
  color: #007bff;
  text-decoration: none;
}

.contact-form-container .form-check-label a:hover {
  text-decoration: underline;
}

.contact-form-container .btn-primary {
  background: #007bff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.contact-form-container .btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* ===== FORMULÁRIO DE NEWSLETTER ===== */
.newsletter-form {
  margin-top: 1rem;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #333;
  font-size: 0.9rem;
  border-radius: 8px 0 0 8px;
  font-family: 'Outfit', sans-serif;
}

.newsletter-input::placeholder {
  color: #999;
}

.newsletter-input:focus {
  background: #ffffff;
  border-color: #d4ff5c;
  box-shadow: 0 0 0 0.2rem rgba(212, 255, 92, 0.25);
  color: #333;
}

.btn-newsletter {
  background: #d4ff5c;
  border: 1px solid #d4ff5c;
  color: #222;
  padding: 0.6rem 1rem;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  background: #c0e94a;
  border-color: #c0e94a;
  color: #222;
  transform: translateY(-1px);
}

.newsletter-check {
  margin-top: 0.25rem;
}

.newsletter-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  margin-left: 0.5rem;
}

.footer-newsletter-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Alerts para formulários */
.alert-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.alert-success {
  background: rgba(212, 255, 92, 0.1);
  border: 1px solid rgba(212, 255, 92, 0.3);
  color: #155724;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #721c24;
}

.alert-info {
  background: rgba(23, 162, 184, 0.1);
  border: 1px solid rgba(23, 162, 184, 0.3);
  color: #0c5460;
}

/* Responsividade para formulários */
@media (max-width: 992px) {
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-info,
  .contact-form {
    margin-bottom: 2rem;
  }
  
  .contact-item {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contact-section h2 {
    font-size: 2rem;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-links-contact a {
    width: 35px;
    height: 35px;
  }
}

.partnerships-section h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 3rem;
}

.partnership-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.partnership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image-large {
  height: 300px;
  overflow: hidden;
}

.card-image-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-small {
  height: 120px;
  overflow: hidden;
}

.card-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partnership-card .card-info {
  padding: 1.5rem;
}

.project-year, .project-category {
  font-size: 0.8rem;
  color: #6c757d;
  display: block;
  margin-bottom: 0.5rem;
}

.partnership-card h4, .partnership-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.small-card {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.small-card .card-image-small {
  width: 120px;
  flex-shrink: 0;
}

.small-card .card-info {
  flex: 1;
  padding: 1rem;
}

.project-status {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.status-item {
  margin-bottom: 1rem;
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  display: block;
}

.status-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.status-progress {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #28a745);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ===== PUBLICATIONS SECTION STYLES ===== */
.publications-section {
  background: #ffffff;
  padding: 5rem 0;
  font-family: 'Outfit', sans-serif;
}

.publications-section h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 0;
}

.publication-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.publication-image {
  height: 200px;
  overflow: hidden;
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.publication-card:hover .publication-image img {
  transform: scale(1.05);
}

.publication-info {
  padding: 1.5rem;
}

.publication-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.publication-year {
  font-size: 0.8rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.publication-description {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

/* ===== DOWNLOADS SECTION STYLES ===== */
.downloads-section {
  padding: 5rem 0;
  font-family: 'Outfit', sans-serif;
}

.downloads-section h2 {
  font-size: 2.5rem;
  font-weight: 400;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.downloads-slider {
  position: relative;
  overflow: hidden;
}

.downloads-container {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
}

.download-card {
  flex: 0 0 250px;
  border-radius: 15px;
  padding: 2rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.green-card {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.green-large {
  background: linear-gradient(135deg, #28a745, #20c997);
  flex: 0 0 300px;
}

.gray-card {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.download-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.2rem;
  opacity: 0.7;
}

.download-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.download-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
}

/* ===== FOOTER STYLES ===== */
.footer-section {
  background: #28a745;
  color: white;
  padding: 3rem 0 1rem;
  font-family: 'Outfit', sans-serif;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-section h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-legal {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ===== RESPONSIVE DESIGN FOR NEW SECTIONS ===== */
@media (max-width: 992px) {
  .agriculture-section h2,
  .partnerships-section h2,
  .publications-section h2,
  .downloads-section h2 {
    font-size: 2rem;
  }
  
  .slider-container,
  .downloads-container {
    overflow-x: auto;
    padding-bottom: 1rem;
  }
  
  .card-image-large {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .agriculture-section,
  .partnerships-section,
  .publications-section,
  .downloads-section {
    padding: 3rem 0;
  }
  
  .agriculture-section h2,
  .partnerships-section h2,
  .publications-section h2,
  .downloads-section h2 {
    font-size: 1.75rem;
  }
  
  .small-card {
    flex-direction: column;
  }
  
  .small-card .card-image-small {
    width: 100%;
    height: 150px;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .footer-bottom .col-md-6:last-child {
    text-align: center !important;
    margin-top: 1rem;
  }
}

/* Correções específicas APENAS para o menu mobile - sem afetar cards */
@media (max-width: 991.98px) {
  /* Forçar empilhamento vertical dos itens do menu no mobile */
  body #page-top nav#mainNav.navbar .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  body #page-top nav#mainNav.navbar .nav-item {
    width: 100% !important;
    margin: 0.25rem 0 !important;
    display: block !important;
  }

  body #page-top nav#mainNav.navbar .nav-link {
    width: 100% !important;
    text-align: left !important;
    padding: 0.75rem 1rem !important;
    display: block !important;
  }

  /* Forçar o menu colapsado a aparecer em coluna quando expandido */
  body #page-top nav#mainNav.navbar .navbar-collapse.show .navbar-nav,
  body #page-top nav#mainNav.navbar .navbar-collapse.collapsing .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
  /* Correção do botão do menu mobile - maior especificidade */
  body #page-top nav#mainNav.navbar .navbar-toggler.navbar-toggler-right {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
  }
  
  body #page-top nav#mainNav.navbar .navbar-toggler.navbar-toggler-right:focus,
  body #page-top nav#mainNav.navbar .navbar-toggler.navbar-toggler-right:hover {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
  }
  
  /* Correção do ícone SVG do menu */
  body #page-top nav#mainNav.navbar .navbar-toggler.navbar-toggler-right .svg-inline--fa.fa-bars {
    color: #ffffff !important;
    margin-left: 0.5rem !important;
  }
  
  body #page-top nav#mainNav.navbar .navbar-toggler.navbar-toggler-right .svg-inline--fa.fa-bars path {
    fill: #ffffff !important;
  }
  
  /* Esconder o painel de alertas meteorológicos no mobile */
  div#alertas-card.alertas-card {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Ajustar APENAS o menu colapsado quando aberto */
  body #page-top nav#mainNav.navbar .navbar-collapse.collapse.show .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 1rem 0 !important;
    background-color: rgba(0, 24, 48, 0.95) !important;
    border-radius: 0 0 8px 8px !important;
  }
  
  body #page-top nav#mainNav.navbar .navbar-collapse.collapse.show .nav-item {
    margin: 0.25rem 0 !important;
    width: 100% !important;
  }
  
  body #page-top nav#mainNav.navbar .navbar-collapse.collapse.show .nav-link {
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    text-align: left !important;
    color: #ffffff !important;
  }
  
  /* Garantir que a logo apareça no menu colapsado */
  body #page-top nav#mainNav.navbar .navbar-collapse.collapse.show .nav-item:first-child {
    display: block !important;
    order: -1 !important;
  }
  
  body #page-top nav#mainNav.navbar .navbar-collapse.collapse.show .nav-item:first-child img {
    max-width: 80px !important;
    height: auto !important;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) !important;
  }
  
  /* Ajustar o botão CTA no menu colapsado */
  body #page-top nav#mainNav.navbar .navbar-collapse.collapse.show .btn-primary {
    margin-left: 1rem !important;
    margin-top: 0.5rem !important;
    width: auto !important;
    align-self: flex-start !important;
  }
}
