body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #002D72; /* Azul Royal (igual ao rodapé) */
    color: #FFD700; /* Amarelo */
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Screen Reader Only Class - SEO & Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 900px; /* Limita a largura para melhor visualização */
}

.social-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    flex: 1 1 calc(33% - 40px); /* Para 3 colunas em desktop */
    min-width: 250px; /* Largura mínima para cards */
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.social-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4169E1; /* Azul Royal */
}

.social-card span:first-of-type {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-card span:last-of-type {
    font-size: 0.9rem;
    color: #666;
}

footer {
    background-color: #002D72; /* Azul Royal mais escuro para o rodapé */
    color: #FFD700; /* Amarelo */
    text-align: center;
    padding: 1rem 0;
    margin-top: auto; /* Empurra o rodapé para baixo */
}

/* Responsividade */
@media (max-width: 768px) {
    header img {
        max-height: 60px; /* Reduz tamanho do logo em tablets */
        max-width: 90%; /* Garante que não estoure a largura */
    }

    h1 {
        font-size: 2rem;
    }

    .social-card {
        flex: 1 1 calc(50% - 40px); /* 2 colunas em tablets */
    }
}

@media (max-width: 480px) {
    header img {
        max-height: 50px; /* Reduz mais em celulares */
    }

    h1 {
        font-size: 1.8rem;
    }

    .social-card {
        flex: 1 1 100%; /* 1 coluna em celulares */
        padding: 20px;
    }

    .social-card i {
        font-size: 2.5rem;
    }
}
