#categorias-title,
#intro-title,
#fracoes-title,
#algebra-title,
#geometria-title,
#contato-title,
#sobre-title {
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    list-style: none;
    margin: 0;
}

.card {
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    border: 1px solid #e6eef6;
    padding: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
}

.card h3 {
    margin: 0 0 0.5rem 0;
    font-family: Roboto, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card a {
    color: var(--accent);
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

.contact-cards {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.contact-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(11, 105, 255, 0.08), rgba(11, 105, 255, 0.02));
    border: 1px solid rgba(11, 105, 255, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card a {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    color: var(--accent);
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(16, 42, 67, 0.12);
    border-color: rgba(11, 105, 255, 0.4);
}

.contact-card:hover a {
    color: var(--accent);
}

@media (min-width: 720px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards > .card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 420px);
    }

    .card {
        padding: 1.25rem;
    }
}
