/* Trilhas de Conhecimento - Scoped Styles */
.trilhas-section {
    padding: 3rem 5%;
    background: var(--bg-color);
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
}

.trilhas-badge {
    display: none; /* Removed based on the clean design in reference image */
}

.trilhas-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.trilhas-grid {
    display: grid;
    /* Create a dense grid of small cards */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
}

.trilha-card {
    position: relative;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #000;
}

.trilha-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.trilha-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.trilha-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.4);
}

.trilha-card span {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: left;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.trilha-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    z-index: 1;
}

@media (max-width: 768px) {
    .trilhas-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .trilhas-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    .trilha-card {
        height: 80px;
    }
    .trilha-card span {
        font-size: 0.85rem;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}
