 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Poppins', sans-serif;
     background: linear-gradient(135deg, #1e3a8a, #3b82f6);
     color: #f1f5f9;
     line-height: 1.6;
     min-height: 100vh;

     /* Novas propriedades para o rodapé fixo */
     display: flex;
     flex-direction: column;
 }

 .ai-category {
        margin-top: 3rem;
        margin-bottom: 5rem;
 }

 .container {
     width: 95%;
     max-width: 1400px;
     margin: 0 auto;
     padding: 2rem 0;

     /* Faz este elemento crescer e ocupar o espaço vazio */
     flex-grow: 1;
 }

 header {
     text-align: center;
     margin-bottom: 3rem;
 }

 header h1 {
     font-size: 2.8rem;
     font-weight: 700;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
 }

 @media (max-width: 768px) {
     header h1 {
         font-size: 2rem;
     }
 }

 header p {
     font-size: 1.1rem;
     color: #dbeafe;
 }
 
 .link-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 1.5rem;
 }

 .link-card {
     background-color: rgba(255, 255, 255, 0.1);
     border-radius: 12px;
     text-decoration: none;
     color: #f1f5f9;
     border: 1px solid rgba(255, 255, 255, 0.2);
     backdrop-filter: blur(10px);
     box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     position: relative;
 }

 .link-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.25);
 }

 .card-main-link {
     display: block;
     padding: 2rem;
     text-decoration: none;
     color: inherit;
     height: 100%;
 }

 .link-card i {
     font-size: 3rem;
     color: #93c5fd;
     margin-bottom: 1rem;
 }

 .link-card h2 {
     font-size: 1.5rem;
     margin-bottom: 0.5rem;
     font-weight: 600;
 }

 .link-card p {
     font-size: 0.95rem;
     color: #dbeafe;
 }

 .info-trigger {
     position: absolute;
     top: 1rem;
     right: 1rem;
     cursor: pointer;
     z-index: 10;
 }

 .info-trigger .icon {
     font-size: 1.2rem;
     color: rgba(255, 255, 255, 0.7);
     transition: color 0.3s ease;
 }

 .info-trigger:hover .icon {
     color: #fff;
 }

 .tooltip-content {
     position: absolute;
     /* --- CORREÇÃO FINAL: ALINHAMENTO DO TOOLTIP --- */
     top: 2.5rem;
     /* Espaço abaixo do ícone */
     right: 0;
     /* Alinha a borda DIREITA do tooltip com a borda DIREITA do ícone */
     /* Isso impede que ele saia para fora da tela nos cantos */

     background-color: rgba(14, 28, 68, 0.95);
     backdrop-filter: blur(8px);
     padding: 1rem;
     border-radius: 8px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
     width: max-content;
     min-width: 230px;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     /* Animação inicial */
     transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
     z-index: 20;
 }

 .info-trigger:hover .tooltip-content {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
     /* Animação final */
 }

 .tooltip-content p {
     font-size: 0.9rem !important;
     margin-bottom: 0.75rem;
     color: #dbeafe !important;
 }

 .tooltip-content p:last-child {
     margin-bottom: 0;
 }

 .tooltip-content strong {
     color: #f1f5f9;
 }

 .tooltip-content a {
     color: #93c5fd;
     text-decoration: none;
     font-weight: 600;
 }

 .tooltip-content a:hover {
     text-decoration: underline;
 }

 .separator {
     border: none;
     height: 1px;
     background-color: rgba(255, 255, 255, 0.3);
     margin: 4rem 0 2rem 0;
 }

 .client-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
     gap: 1rem;
 }

 .client-card {
     background-color: rgba(255, 255, 255, 0.1);
     border-radius: 12px;
     padding: 1.5rem 1rem;
     text-decoration: none;
     color: #f1f5f9;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     border: 1px solid rgba(255, 255, 255, 0.2);
     backdrop-filter: blur(10px);
     transition: transform 0.3s ease, background-color 0.3s ease;
     min-height: 120px;
 }

 .client-card:hover {
     transform: translateY(-5px);
     background-color: rgba(255, 255, 255, 0.18);
 }

 .client-card i {
     font-size: 2rem;
     margin-bottom: 0.75rem;
     color: #93c5fd;
 }

 .client-card span {
     font-size: 0.9rem;
     font-weight: 600;
     line-height: 1.2;
 }

 footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1.5rem 0;
     margin-top: 4rem;
     width: 100%;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
 }

 /* Navegação do Cabeçalho */
 .header-nav {
     margin-bottom: 2rem;
 }

 .header-nav a {
     color: #f1f5f9;
     text-decoration: none;
     font-weight: 600;
     background-color: rgba(255, 255, 255, 0.15);
     padding: 0.5rem 1rem;
     border-radius: 8px;
     transition: background-color 0.3s ease;
 }

 .header-nav a:hover {
     background-color: rgba(255, 255, 255, 0.25);
 }

 /* --- ALTERAÇÃO 3: AJUSTE NO FOOTER --- */
 footer {
     width: 100%;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     padding: 1.5rem 0;
     /* A margem superior não é mais necessária */
 }

 .footer-content {
     width: 95%;
     max-width: 1400px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 0.9rem;
     color: #dbeafe;
 }

 .footer-links {
     display: flex;
     align-items: center;
     gap: 1.5rem;
     flex-wrap: wrap;
     /* Permite que os links quebrem a linha se não houver espaço */
     justify-content: center;
 }

 .admin-link {
     color: #dbeafe;
     text-decoration: none;
     font-weight: 600;
     transition: color 0.3s ease;
 }

 .admin-link:hover {
     color: #fff;
     text-decoration: underline;
 }

 @media (max-width: 800px) {

     /* Ponto de quebra ajustado para o rodapé */
     .footer-content {
         flex-direction: column;
         gap: 1.5rem;
         text-align: center;
     }
 }

 .section-title {
     text-align: center;
     font-size: 1.8rem;
     font-weight: 600;
     margin-bottom: 2rem;
     padding-bottom: 0.5rem;
     border-bottom: 2px solid rgba(255, 255, 255, 0.3);
     display: inline-block;
 }

 .section-header {
     text-align: center;
     margin-bottom: 2rem;
 }

 .separator {
     border: none;
     height: 1px;
     background-color: rgba(255, 255, 255, 0.3);
     margin: 4rem auto;
     width: 80%;
 }

 /* Estilos da Tabela de Downloads */
 .table-container {
     background-color: rgba(0, 0, 0, 0.1);
     border-radius: 12px;
     padding: 1rem;
     backdrop-filter: blur(5px);
 }

 .downloads-table {
     width: 100%;
     border-collapse: collapse;
 }

 .downloads-table th,
 .downloads-table td {
     padding: 1rem;
     text-align: left;
     border-bottom: 1px solid rgba(255, 255, 255, 0.1);
 }

 .downloads-table thead th {
     font-weight: 600;
     color: #f1f5f9;
 }

 .downloads-table tbody tr {
     transition: background-color 0.3s ease;
 }

 .downloads-table tbody tr:hover {
     background-color: rgba(255, 255, 255, 0.08);
 }

 .downloads-table td {
     color: #dbeafe;
 }

 .downloads-table td i {
     margin-right: 0.75rem;
     color: #93c5fd;
     width: 20px;
     text-align: center;
 }

 .btn-download {
     background-color: #3b82f6;
     color: #fff;
     padding: 0.4rem 0.8rem;
     border-radius: 6px;
     text-decoration: none;
     font-weight: 600;
     transition: background-color 0.3s ease;
     display: inline-block;
 }

 .btn-download:hover {
     background-color: #2563eb;
 }

 /* Estilos dos Links Úteis */
 .useful-links-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
     gap: 1rem;
 }

 .useful-link-card {
     background-color: rgba(0, 0, 0, 0.1);
     border-radius: 8px;
     transition: background-color 0.3s ease, transform 0.3s ease;
 }

 .useful-link-card:hover {
     background-color: rgba(0, 0, 0, 0.2);
     transform: translateY(-4px);
 }

 .useful-link-card a {
     display: flex;
     align-items: center;
     gap: 1rem;
     padding: 1rem;
     text-decoration: none;
     color: #f1f5f9;
 }

 .useful-link-card i {
     font-size: 1.5rem;
     color: #93c5fd;
     width: 30px;
     text-align: center;
 }

 .link-text strong {
     display: block;
     font-weight: 600;
 }

 .link-text span {
     font-size: 0.9rem;
     color: #dbeafe;
 }

 /* Responsividade da Tabela */
 @media (max-width: 800px) {
     .downloads-table thead {
         display: none;
     }

     .downloads-table,
     .downloads-table tbody,
     .downloads-table tr,
     .downloads-table td {
         display: block;
         width: 100%;
     }

     .downloads-table tr {
         margin-bottom: 1rem;
         border: 1px solid rgba(255, 255, 255, 0.1);
         border-radius: 8px;
     }

     .downloads-table td {
         text-align: right;
         padding-left: 50%;
         position: relative;
         border-bottom: 0;
     }

     .downloads-table td:before {
         content: attr(data-label);
         position: absolute;
         left: 1rem;
         width: 45%;
         padding-right: 1rem;
         text-align: left;
         font-weight: 600;
         color: #f1f5f9;
     }
 }