/* Reset e Variáveis CSS */
:root {
    --color01: #183883;
    --color-text: #333;
    --spacing-unit: 1rem;
    --border-radius: 12px;
    --header-footer-height: 6vh;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout Principal */
.cabecalho,
.rdp {
    background-color: var(--color01);
    width: 100%;
    height: var(--header-footer-height);
}

.principal {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-unit);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Seção DSLeste
 */
.DSLeste {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-unit);
    width: 100%;
}

.logom {
    width: min(300px, 100%);
    height: auto;
    margin: var(--spacing-unit) 0;
}

.DSLeste p {
    text-align: center;
    margin: calc(var(--spacing-unit) / 2) 0;
    font-size: clamp(0.8rem, 3vw, 1rem);
}

/* Container dos Cartões */
.cards-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    margin: var(--spacing-unit) 0;
}

/* Estilo dos Cartões */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-5px);
}

.card-logo {
    width: min(150px, 100%);
    height: auto;
    margin-bottom: var(--spacing-unit);
}

.card-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Estilos dos Links */
.a_links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color01);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: calc(var(--border-radius) / 2);
    transition: all 0.3s ease;
    background-color: rgba(24, 56, 131, 0.05);
    justify-content: center;
}

.a_links:hover {
    color: #fff;
    background-color: var(--color01);
    transform: translateY(-2px);
}

/* Ícones */
.a_links img {
    width: 28px;
    height: 24px;
    /* filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(2000%) hue-rotate(210deg) brightness(90%) contrast(90%);
        }

        .a_links:hover img {
            filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%); */
}

/* Rodapé */
.rdp {
    margin-top: auto;
}

/* Media Query para Desktop (acima de 768px) */
@media (min-width: 768px) {
    .cards-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .card {
        width: calc(33% - 2rem);
        min-width: 250px;
        max-width: 300px;
        min-height: 300px;
        justify-content: space-between;
    }
}

/* Ajustes para mobile pequeno */
@media (max-width: 400px) {
    .a_links {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .card {
        padding: 1.25rem;
    }
}
