/* ============================================
   Certificarte Carousel v1.2 - Flip Cards
   Primary #00114B | Accent #FE1427
   Font: Neue Haas Grotesk Display Pro
   ============================================ */

.elementor-widget-shortcode .elementor-shortcode .ctc-carousel-wrapper,
.ctc-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: visible;
    min-height: 400px;
}

.ctc-carousel-wrapper .ctc-swiper {
    overflow: hidden;
    padding: 0;
}

.ctc-carousel-wrapper .swiper-slide {
    height: auto !important;
}

/* ---- FLIP CARD ---- */
.ctc-carousel-wrapper .ctc-flip-card {
    display: block;
    perspective: 1000px;
    height: 400px;
    min-height: 400px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.ctc-carousel-wrapper .ctc-flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.ctc-carousel-wrapper .ctc-flip-card:hover .ctc-flip-card__inner {
    transform: rotateY(180deg);
}

.ctc-carousel-wrapper .ctc-flip-card__front,
.ctc-carousel-wrapper .ctc-flip-card__back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* ---- FRONT ---- */
.ctc-carousel-wrapper .ctc-flip-card__front {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #00114B;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 10% 11% 10%;
    z-index: 2;
}

/* Gradient overlay */
.ctc-carousel-wrapper .ctc-flip-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 17, 75, 0.15) 0%, rgba(0, 17, 75, 0.92) 100%);
    pointer-events: none;
    z-index: 1;
}

.ctc-carousel-wrapper .ctc-flip-card__title {
    position: relative;
    z-index: 2;
    font-family: "Neue Haas Grotesk Display Pro", sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---- BACK ---- */
.ctc-carousel-wrapper .ctc-flip-card__back {
    transform: rotateY(180deg);
    background-color: #00114B;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.ctc-carousel-wrapper .ctc-flip-card__excerpt {
    font-family: "Neue Haas Grotesk Display Pro", sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

/* ---- ARROWS ---- */
.ctc-carousel-wrapper .ctc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.ctc-carousel-wrapper .ctc-arrow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.ctc-carousel-wrapper .ctc-arrow svg {
    width: 25px;
    height: 25px;
    fill: #FE1427;
    display: block;
}

.ctc-carousel-wrapper .ctc-arrow--prev svg {
    margin-right: 2px;
}

.ctc-carousel-wrapper .ctc-arrow--next svg {
    margin-left: 2px;
}

.ctc-carousel-wrapper .ctc-arrow--prev {
    left: -20px;
}

.ctc-carousel-wrapper .ctc-arrow--next {
    right: -20px;
}

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (max-width: 1024px) {
    .ctc-carousel-wrapper .ctc-flip-card,
    .ctc-carousel-wrapper .ctc-flip-card__inner {
        height: 400px;
        min-height: 400px;
    }

    .ctc-carousel-wrapper {
        min-height: 400px;
    }

    .ctc-carousel-wrapper .ctc-flip-card__title {
        font-size: 20px;
    }

    .ctc-carousel-wrapper .ctc-flip-card__excerpt {
        font-size: 16px;
    }

    .ctc-carousel-wrapper .ctc-arrow {
        width: 36px;
        height: 36px;
    }

    .ctc-carousel-wrapper .ctc-arrow svg {
        width: 16px;
        height: 16px;
    }

    .ctc-carousel-wrapper .ctc-arrow--prev {
        left: 5px;
    }

    .ctc-carousel-wrapper .ctc-arrow--next {
        right: 5px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ctc-carousel-wrapper .ctc-flip-card,
    .ctc-carousel-wrapper .ctc-flip-card__inner {
        height: 420px;
        min-height: 420px;
    }

    .ctc-carousel-wrapper {
        min-height: 420px;
    }

    .ctc-carousel-wrapper .ctc-flip-card__title {
        font-size: 18px;
        padding-right: 10px;
    }

    .ctc-carousel-wrapper .ctc-flip-card__front {
        padding: 0 8% 10% 8%;
    }

    .ctc-carousel-wrapper .ctc-flip-card__excerpt {
        font-size: 15px;
    }

    .ctc-carousel-wrapper .ctc-flip-card__back {
        padding: 20px;
    }

    .ctc-carousel-wrapper .ctc-arrow {
        width: 32px;
        height: 32px;
    }

    .ctc-carousel-wrapper .ctc-arrow svg {
        width: 14px;
        height: 14px;
    }

    .ctc-carousel-wrapper .ctc-arrow--prev {
        left: 8px;
    }

    .ctc-carousel-wrapper .ctc-arrow--next {
        right: 8px;
    }
}