:root {
    --color-primary: #01d14f; 
    --color-background: #f1f5f9;
    --color-surface: #1e2b3b;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-border: #553333;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-background); 
    color: #4d4d4d;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    height: 100%;
}

/* --- CORREÇÃO DO CONTEÚDO COLADO NA ESQUERDA --- */
main {
    flex-grow: 1;
    width: 90%;           /* Ocupa 90% da tela (desgruda das laterais) */
    max-width: 1200px;    /* Limita a largura em telas grandes */
    margin: 30px auto;    /* Centraliza horizontalmente e dá espaço no topo */
    padding: 0 15px;      /* Garante respiro interno em celulares */
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, .font-teko {
    font-family: 'Open Sans', sans-serif;
}

/* --- CORREÇÃO DA LUPA GIGANTE --- */
/* Garante que o container da busca tenha referência para posicionamento */
.filters .relative {
    position: relative;
    width: 100%;
    max-width: 600px; /* Limita a largura da barra de pesquisa */
    margin: 0 auto;   /* Centraliza a barra */
}

/* Força o tamanho do ícone SVG (Lupa) */
.filters svg {
    width: 20px !important;
    height: 20px !important;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none; /* O clique passa pela lupa e vai pro input */
}

/* Ajuste no input para o texto não ficar embaixo da lupa */
#search-input {
    padding-right: 45px !important; 
    width: 100%;
    box-sizing: border-box;
}

/* --- FIM DAS CORREÇÕES DE LAYOUT --- */

header {
  background: #fff;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin: 0 auto;
  padding: 12px 30px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 24px;
  cursor: pointer;
}

/* 1. Overlay (fundo escuro) */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* 2. Sidebar (conteúdo do menu) */
.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 80%;
  max-width: 300px;
  background-color: #fff;
  z-index: 1001;
  width: 260px;
  display: flex;
  flex-direction: column;
  
  transform: translateX(-100%);
  transition: transform 0.35s ease-out;
}
.mobile-menu-sidebar.active {
  transform: translateX(0);
}

/* 3. Cabeçalho do Sidebar */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-header .logo {
  height: 30px;
  margin: 0;
  margin-left: 5px;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* 4. Navegação do Sidebar */
.mobile-menu-nav {
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
}
.mobile-menu-nav a {
  color: #4d4d4d;
  padding: 16px 20px;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-nav a:first-child {
  border-top: 1px solid #f0f0f0;
}
.mobile-menu-nav a:hover {
  background-color: #f9f9f9;
}

/* 5. Rodapé do Sidebar */
.mobile-menu-footer {
  padding: 20px;
  text-align: center;
}
.mobile-menu-footer p {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { 
  height: 40px; 
  margin-top: -2px;
}

.nav-buttons {
  display: flex;
  gap: 15px;
  margin-top: 2px;
  transform: scale(0.999);
}

.nav-buttons button {
  padding: 5px 14.8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.nav-buttons button:hover {
  background-color: #f8f9fa;
  color:#00cc4e
}

.btn-entrar {
  background-color: #01d14f;
  color: white;
}

.btn-inicio, .btn-contato {
    background-color: #01d14f;
    color: white;
}

.btn-entrar:hover {
  background-color: #218838;
}

.update-card-content p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.update-card-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.update-card-content li {
    margin-bottom: 0.25rem;
}

.category-tag {
    transition: all 0.2s ease-in-out;
}

.category-tag.active,
.category-tag:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.media-placeholder {
    background-color: #334155;
}

.major-update-badge {
    display: inline-block;
    background-color: #EA580C;
    color: white;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    animation: pulseGlow 1.5s infinite;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.7); 
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(234, 88, 12, 0.6); opacity: 1; }
    50% { box-shadow: 0 0 20px rgba(234, 88, 12, 1); opacity: 0.7; }
    100% { box-shadow: 0 0 5px rgba(234, 88, 12, 0.6); opacity: 1; }
}

.update-card-content .collapse,
.update-card-content .card,
.update-card-content .card-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    background: transparent !important;
}

.update-card-content {
    background-color: #ffffff;
    color: #4d4d4d;
    padding: 1rem;
    border-radius: 0.5rem;
}

.update-card-content p,
.update-card-content li,
.update-card-content span,
.update-card-content div,
.update-card-content h1,
.update-card-content h2,
.update-card-content h3,
.update-card-content h4,
.update-card-content h5,
.update-card-content h6,
.update-card-content strong {
    color: #4d4d4d;
}

.update-card-content ul,
.update-card-content ol {
    color: #4d4d4d;
}

.footer {
  background-color: #000;
  color: #28a745;
  padding: 20px 40px;
  font-family: 'Open Sans', sans-serif;
  height: auto;
  overflow: visible;
  font-size: 14px;
}

.footer a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.3s;
  letter-spacing: -1px; 
}

.footer a:hover {
  color: #ffffff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.logo-area img {
  max-height: 30px;
  margin-right: 10px;
  margin-top: 3px;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-right: 30px;
}

.social-icons img {
 width: 37px;
    height: 37px;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover img {
  opacity: 0.8;
  transform: scale(1.1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: -40px; 
  font-size: 12px;
}

.footer-bottom a {
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #28a745;
    transform: none;
    margin-top: -15px;
    margin-bottom: 15px;
}

.whatsapp-float {
  position: fixed;
  bottom: 31px;
  right: 15px;
  z-index: 1000;
}

.whatsapp-float img {
  width: 40px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 0;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.video-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.video-popup-content {
    position: relative;
    background-color: #000;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 800px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.video-popup-overlay.visible .video-popup-content {
    transform: scale(1);
}
.video-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 24px;
    font-weight: bold;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}
.video-popup-close:hover {
    transform: scale(1.1);
}
.video-popup-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}
.video-popup-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: flex-start; 
        align-items: center;
        gap: 15px; 
        padding: 12px 15px; 
    }
    
    .nav-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo {
        height: 30px; 
        margin: 0;
        margin-left: 70%
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        height: auto; 
        padding: 20px 15px; 
    }

    .footer-top {
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #333; 
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        width: 100%;
        margin-top: 0;
    }

    .logo-area img {
        max-height: 25px;
        margin: 0;
    }

    .social-icons {
        justify-content: flex-end; 
        width: auto;
        margin: 0;
        gap: 10px;
    }
    
    .social-icons img {
        width: 30px; 
        height: 30px;
    }

    .footer-bottom a {
        margin: 0;
        transform: none; 
        color: #28a745;
        font-size: 14px;
    }

    .footer-bottom p,
    .footer-bottom .fante-dev {
        display: none;
    }

    .whatsapp-float {
      bottom: 15px;
      right: 15px;
    }

    .whatsapp-float img {
      width: 50px;
      height: 50px;
      margin-top: 0;
    }
}
.fante-dev {
    display: flex;
    align-items: center;
}

.update-card {
    border-left: 3px solid var(--color-primary);
}
.social-icons img:hover {
  background-color: #fffdfd;
  transform: scale(1.1);
}