/* =========================================
   SWIPER DOCS - CARROSSEL DE CAPAS
========================================= */
.swiperDocs {
    width: 100%;
    overflow: hidden;

    padding: 25px 20px 55px;
}

/* Título principal do card */
.swiper-main-title {
    width: 100%;

    text-align: center;

    font-size: 1.3rem !important;
    font-weight: 700 !important;

    letter-spacing: .3px;

    margin: 0 auto;
    padding: 0;
    line-height: 1.2;
}

.card-header {
    background: #fff;
    border-bottom: 0;
    padding-top: 0.75rem;
    padding-bottom: 0.4rem;
}

/* Wrapper horizontal */
.swiperDocs .swiper-wrapper {
    display: flex !important;
    align-items: stretch;
}

/* Slide */
.swiperDocs .swiper-slide {
    flex-shrink: 0;
    height: auto;
    display: flex;
}

/* Card */
.swiperDocs .card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: none;
    background: #000;
}

/* Link da capa */
.swiperDocs .card > a {
    display: block;
}

/* Imagem */
.swiperDocs .capa-slide {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: top;
    display: block;
    background: #000;

    transition: transform .4s ease;
}

/* Zoom suave */
.swiperDocs .card:hover .capa-slide {
    transform: scale(1.04);
}

/* Rodapé do card (abaixo da capa) */
.swiperDocs .card-body {
    padding: 14px;
    background: #000;
    color: #fff;
}

/* Título */
.swiperDocs .card-title {
    margin-bottom: 8px;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}

.swiperDocs .card-body small {
    display: block;
    text-align: center;
}

.swiperDocs .card-title a {
    color: #fff !important;
    text-decoration: none;
}

/* Autor */
.swiperDocs small,
.swiperDocs small a {
    color: rgba(255,255,255,.85) !important;
    text-decoration: none;
}

/* Navegação */
.swiperDocs .swiper-button-prev,
.swiperDocs .swiper-button-next {
    color: #fff;
    transform: scale(.7);
}

/* Bolinhas */
.swiperDocs .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
}

.swiperDocs .swiper-pagination-bullet-active {
    opacity: 1;
}


/* =========================================
   PLACEHOLDER SEM CAPA
========================================= */

.capa-placeholder {
    aspect-ratio: 2 / 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    background:
        linear-gradient(
            135deg,
            #1f2937,
            #374151,
            #111827
        );

    color: #fff;

    position: relative;

    overflow: hidden;
}

/* brilho suave */
.capa-placeholder::before {
    content: "";

    position: absolute;

    top: -30%;
    left: -30%;

    width: 160%;
    height: 160%;

    background:
        radial-gradient(
            rgba(255,255,255,.08),
            transparent 70%
        );

    transform: rotate(25deg);
}

.placeholder-content {
    position: relative;

    z-index: 2;

    text-align: center;

    padding: 20px;
}

.placeholder-content i {
    font-size: 4rem;

    display: block;

    margin-bottom: 18px;

    opacity: .9;
}

.placeholder-title {
    font-size: 1.1rem;
    font-weight: 700;

    line-height: 1.4;

    max-width: 220px;

    margin: 0 auto;
}

/* Card sem capa real: o placeholder ocupa toda a altura do slide,
   alinhado com a altura dos slides que têm capa + rodapé. */
.swiperDocs .card.card-placeholder {
    height: 100%;
}

.swiperDocs .card.card-placeholder > a {
    flex: 1;
    display: flex;
}

.swiperDocs .card.card-placeholder .capa-placeholder {
    flex: 1;
    aspect-ratio: auto;
}
