.container-cards {
    position: relative;
    /* Certifique-se de que o contêiner pai tenha essa propriedade */
}

.products-section {
    max-width: 1536px;
    padding: 30px 64px;
    text-align: center;
    margin: 100px auto 30px;
}

.products-section h2 {
    font-size: 32px;
    margin-bottom: 35px;
    font-weight: bold;
}

.intro-text {
    font-size: 20px;
    margin-bottom: 70px;
    padding: 0 200px;
}

.card-description {
    font-size: 20px;
    margin-bottom: 40px;
}

.tabs {
    border-bottom: 2px solid #E8E8E8;
    width: 90%;
    margin: 10px auto 60px;
}

.tab-link {
    background: none;
    border: none;
    padding: 10px 50px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s;
    margin: 0 10px;
    border-bottom: 2px solid transparent;
    font-weight: 400;
}

.tab-link.active {
    color: #e74c3c;
    border-color: #e74c3c;
    font-weight: 600;
}

.tab-link:focus {
    outline: none;
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Acordeão de descrição das tabs */
.tab-description-accordion {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.tab-description-accordion:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accordion-toggle {
    width: 100%;
    align-items: center;
    padding: 16px 20px;
    background-color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.accordion-toggle:hover {
    background-color: #F8F9FA;
}

.accordion-toggle:focus {
    outline: none;
}

.accordion-toggle[aria-expanded="true"] {
    background-color: #F8F9FA;
}

.accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    color: #e74c3c;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-toggle[aria-expanded="true"] .accordion-icon {
    transform: rotate(90deg);
}

.accordion-toggle[aria-expanded="true"] .accordion-icon i {
    color: #e74c3c;
}

.accordion-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    flex: 1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #fff;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 0 20px 20px;
    transition: max-height 0.5s ease-in, padding 0.4s ease-in;
}

.accordion-text {
    padding-top: 20px;
    color: #495057;
    line-height: 1.7;
}

.accordion-text p {
    margin-bottom: 16px;
    font-size: 15px;
}

.accordion-text p:last-child {
    margin-bottom: 0;
}

.accordion-text p strong {
    color: #212529;
    font-weight: 600;
}

.accordion-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 16px 0;
}

.accordion-text li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.accordion-text li strong {
    color: #212529;
    font-weight: 600;
}

.card-products {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    height: 350px;
    /* Altura fixa para todos os cards */
    width: 260px;
    /* Largura fixa para todos os cards */
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    text-align: left;
    transition: transform 0.3s;

    flex: 0 0 auto;
    /* Ajuste o tamanho conforme necessário */
    margin-right: 20px;
}

.card-products:hover {
    transform: translateY(-5px);
}

.card-products .icon {
    background-color: #FEF2F1;
    width: 64px;
    /* Ajuste conforme necessário */
    height: 64px;
    /* Ajuste conforme necessário */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    /* Para bordas arredondadas, se desejar */
    margin-bottom: 16px;
}

.card-products .icon i {
    font-size: 24px;
    /* Ajuste conforme necessário */
    color: #FF6F61;
    /* Ajuste a cor do ícone conforme necessário */
}

.card-products .icon-colunistas {
    position: relative;
    overflow: hidden;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.card-products .icon-colunistas img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 6px;
}

.card-products h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.card-products p {
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-products a:hover {
    color: #dd2713;
}

.card-products a i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.card-products a:hover i {
    transform: translateX(2px);
}

.cards-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    /* Oculta o excesso de conteúdo */
}

.cards-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: auto;
    max-width: 100%;
    /* Ajuste para o espaço dos botões */
    padding: 0 50px 20px 50px;
    margin: 0;
    /* Ajuste a margem para alinhar com as tabs */
    gap: 0px;
    box-sizing: border-box;
}

.cards-container::-webkit-scrollbar {
    display: none;
    /* Oculta a barra de rolagem no Webkit (Chrome, Safari) */
}


.scroll-button {
    background: none;
    border: none;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.scroll-button:focus {
    outline: none;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}

.scroll-button i {
    font-size: 24px;
    color: #333;
}


@media (max-width: 1024px) and (min-width: 769px) {
    .intro-text {
        padding: 0 85px;
    }

    .tab-description-accordion {
        max-width: 95%;
    }
}

/* Celular: até 768px */
@media (max-width: 768px) {
    .intro-text {
        padding: 0 10px;
    }

    .products-section {
        padding: 0px 24px;
    }

    .tab-description-accordion {
        max-width: 100%;
        margin-bottom: 20px;
        border-radius: 6px;
    }

    .accordion-toggle {
        padding: 14px 16px;
    }

    .accordion-title {
        font-size: 15px;
    }

    .accordion-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .accordion-content.active {
        padding: 0 16px 16px;
    }

    .accordion-text {
        padding-top: 16px;
    }

    .accordion-text p {
        font-size: 14px;
        margin-bottom: 14px;
    }
}