/* Container */
#cc-most-read .swiper {
    overflow: hidden;
    /* deixa sombras dos cards visíveis */
}

/* Card */
#cc-most-read .cc-card {
    padding: 8px;
    border-radius: 24px;
}

#cc-most-read .cc-card:hover {
    background-color: var(--color-primary-50);
}

/* Garante que a imagem respeite o aspecto 16:9 e permita animação */
#cc-most-read .cc-card .cc-thumb {
    position: relative;
    width: 100%;
    /* padding-top: 56.25%; */
    /* 16:9 */
    overflow: hidden;
    border-radius: 8px;
    min-height: 150px;
    /* opcional */
}

#cc-most-read .cc-card .cc-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Efeito hover */
#cc-most-read .cc-card:hover .cc-thumb img {
    transform: scale(1.1);
}

#cc-most-read .cc-thumb-ph {
    width: 100%;
    height: 220px;
    background: #e9ecef;
    border-radius: 18px;
}

/* Container da seção */
.cc-most-read {
    margin-top: 2rem;
}

/* Wrapper para manter o aspecto 16:9 */
.cc-most-read .card-img-top-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 = 9/16 = 0.5625 = 56.25% */
    overflow: hidden;
    border-radius: 8px;
    /* opcional: cantos arredondados */
}

/* Imagem dentro do wrapper */
.cc-most-read .card-img-top-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* garante corte proporcional */
    display: block;
}


/* Linha categoria • data */
#cc-most-read .cc-category {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
    line-height: 1em;
}

#cc-most-read .cc-sep {
    color: var(--color-gray-600, #757575);
    line-height: 1;
    font-size: 12px;
    /* ajusta o bullet */
}

#cc-most-read .cc-date {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 14px;
    line-height: 1em;
    color: var(--color-gray-600, #757575);
}

/* Rank + Título */
#cc-most-read .cc-rank {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 24px;
    color: var(--color-secondary, #EF6000);
    line-height: 1em;
}

#cc-most-read .cc-news-title {
    font-family: var(--font-primary, "Kanit");
    font-weight: 300;
    font-size: 16px;
    line-height: 1.3em;
    color: var(--color-black, #26323f);
    margin: 0;
    display: -webkit-box;
    /* corta em 2 linhas com reticências (além do PHP) */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ler Mais */
#cc-most-read .cc-readmore {
    font-family: var(--font-primary, "Kanit");
    font-weight: 500;
    font-size: 16px;
    line-height: 1em;
    text-decoration: underline;
    color: var(--color-primary-700, #1b7727);
}

/* Swiper controls */
#cc-most-read .swiper-button-prev,
#cc-most-read .swiper-button-next {
    color: var(--color-gray-300, #c5c5c5);
}

#cc-most-read .swiper-button-prev:hover,
#cc-most-read .swiper-button-next:hover {
    color: var(--color-semiwhite, #fefefe);
}

#cc-most-read .swiper-pagination-bullet {
    background: var(--color-gray-300, #c5c5c5);
    opacity: .8;
}

#cc-most-read .swiper-pagination-bullet-active {
    background: var(--color-primary-700, #1b7727);
    opacity: 1;
}

/* Mobile: mantém 1.5 cards visíveis */
@media (max-width: 575.98px) {
    #cc-most-read .swiper {
        padding-right: 15%;
    }
}