/* Estilos para os termos */
.term-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Alertas personalizados */
.alert-light {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Cabeçalho dos termos */
h1 {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
}

h2, h3, h4 {
    color: var(--secondary-color);
}

.lead {
    font-size: 1.25rem;
    color: var(--p-color);
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .term-item {
        padding-bottom: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .ps-5 {
        padding-left: 2.5rem !important;
    }

    .term-number {
        margin-right: 1rem !important;
    }

    .alert-warning {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 576px) {
    .ps-5 {
        padding-left: 1.5rem !important;
    }

    .term-number .badge {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }

    .d-flex.flex-md-row {
        flex-direction: column;
        text-align: center;
    }

    .d-flex.flex-md-row > div {
        margin-bottom: 1rem;
    }

    .d-flex.flex-md-row > div:last-child {
        margin-bottom: 0;
    }
}

@media print {
    .custom-btn,
    button {
        display: none !important;
    }

    .alert {
        border: 1px solid #ddd !important;
        background-color: #f9f9f9 !important;
    }

    .term-item {
        page-break-inside: avoid;
    }
}
