/* Estilos para o grid de egressos */
.egressos-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    gap: 2rem;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .egressos-grid {
        grid-template-columns: 2fr;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .egressos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.egresso-card {
    background: transparent;
    border: none;
    border-radius: 30px;
    padding: 0;
    transition: border 0.3s ease;
}


.egresso-card.ajax-loaded {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.egresso-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 1rem;
}

.egresso-avatar {
    width: 160px;
    height: 160px;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
}

.egresso-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.egresso-info {
    flex: 1;
}

.egresso-info p.egresso-nome {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin-block: 0;
}

.egresso-info p.egresso-turma,
.egresso-info p.egresso-curso,
.egresso-info p.egresso-ocupacao {
    margin-bottom: 8px;
    color: var(--cor-escura);
    font-size: 0.9rem;
    margin-block: 0;
}

.egresso-info p.egresso-ocupacao {
    margin-top: 1rem;
}

.egresso-social {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 8px;
}

.social-link {
    display: inline-block;
    transition: opacity 0.2s ease;
    color: var(--azul-01);
    text-decoration: none;
    border: 1px solid var(--azul-01);
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #062d4e;
    border-color: #062d4e;
}

.social-link img {
    width: 36px;
    height: 36px;
}

.egresso-excerpt {
    color: var(--cor-escura);
    font-size: 0.9rem;
    line-height: 1.4;
}

.egressos-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-default {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-default:hover {
    background-color: #005a87;
    color: white;
    text-decoration: none;
}

.egressos-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.egressos-pagination a:hover {
    background-color: #f0f0f0;
}

.egressos-pagination .current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

.egressos-pagination img {
    width: 16px;
    height: 16px;
}

/* Estilos para carregamento AJAX */
.egressos-loading {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
}

.egressos-loading::after {
    content: "Carregando...";
    display: block;
    margin-top: 1rem;
    color: #666;
}

/* Estilos para filtros de ordenação */
.egressos-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Responsividade melhorada para mobile */
@media (max-width: 480px) {
    .egresso-card {
        padding: 1rem;
    }

    .egresso-nome {
        font-size: 1rem;
    }

    .egresso-turma,
    .egresso-ocupacao {
        font-size: 0.9rem;
    }

}

/* Melhoria na acessibilidade */
.social-link:focus,
.btn-default:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Estado de carregamento para paginação */
.egressos-pagination.loading {
    pointer-events: none;
    opacity: 0.5;
}

/* Ajuste para redes sociais dentro do egresso-info */
.egresso-info .egresso-social {
    justify-content: flex-start;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.egressos-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.egressos-pagination .page-numbers {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0px;
    border: 1px solid #000;
    border-radius: 50%;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.egressos-pagination .page-numbers.current {
    background-color: #000000;
    color: #fff;
    border-color: #000000;
}

.egressos-pagination img {
    width: 40px;
    height: 40px;
}

.egressos-pagination .next.page-numbers,
.egressos-pagination .prev.page-numbers {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin: 0px;
    border: none;
    border-radius: 50%;
    text-decoration: none;

    text-align: center;
}

.egressos-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 24px;
}

@media (max-width: 950px) {
    .egressos-filter {
        flex-direction: column;
        align-items: center;
    }
}

.egressos-filter .filter-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

@media (max-width: 560px) {
    .egressos-filter .filter-group {
        flex-direction: column;
    }
}

.egressos-filter .filter-group>label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--cor-escura);
}

.egressos-filter .radio-group {
    display: flex;
    gap: 16px;
}

.egressos-filter .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    cursor: pointer;
}

.egressos-filter .radio-label input[type="radio"] {
    margin: 0;
}

.egressos-filter .radio-text {
    font-size: 0.9rem;
    color: var(--cor-escura);
}

.egressos-filter input[type="radio"] {
    appearance: none;
    /* remove o estilo padrão */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.egressos-filter input[type="radio"]:checked {
    background-color: #FFF;
    /* preenchimento laranja */
}

.egressos-filter input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--laranja-01);
    border-radius: 50%;
}


.egressos-filter label {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    font-weight: 700;
}

.egressos-filter select {
    padding: 16px 48px 16px 24px;
    font-size: 1rem;
    cursor: pointer;
    background: #FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23546881" d="M6 8L0 0h12z"/></svg>') no-repeat right 24px center;
    border: 1px solid rgba(84, 104, 129, 0.25);
    border-radius: 120px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: var(--cor-escura);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Estilos para notificações */
.egresso-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    z-index: 1000;
}

.egresso-notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.egresso-notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-text {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 12px;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}