/* =================================== */
/* ====   CÓDIGO CSS COMPLETO   ==== */
/* =================================== */
.tabs-card-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

/* === ESTILOS PARA AS ABAS (TABS) === */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
    margin-bottom: 25px;
}
.tab-nav-btn {
    padding: 15px 25px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: all 0.3s;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    white-space: nowrap; /* Evita quebra de linha no texto da aba */
}
.tab-nav-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}
.tab-nav-btn.active {
    background-color: #c1272d;
    color: white;
}
.tab-nav-btn.active:hover {
    background-color: #c1272d;
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === ESTILOS PARA OS CARTÕES INTERATIVOS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #4b5563;
    text-decoration: none;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    min-height: 120px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    border-color: #c1272d;
    color: #c1272d;
}
.card-link .card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #c1272d;
    transition: color 0.2s;
}

/* ================================================= */
/* ====   BLOCO DE CSS RESPONSIVO   ==== */
/* ================================================= */

/* Tablets (até 992px) */
@media (max-width: 992px) {
    .tabs-card-wrapper {
        padding: 0 15px;
    }
    .card-grid {
        gap: 15px;
    }
    .tab-nav-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Celulares (até 600px) */
@media (max-width: 600px) {
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        border-bottom: 2px solid #ddd;
    }
    .tab-nav::-webkit-scrollbar {
        display: none;
    }
    .tab-nav-btn {
        flex: 0 0 auto;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
