.supermembros-carousel-wrapper .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    border-radius: 8px; /* Bordas arredondadas */
    width: 40px; /* Define a largura */
    height: 40px; /* Define a altura */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.supermembros-carousel-wrapper .arrow.left {
    left: -20px; /* Metade da largura do botão */
}

.supermembros-carousel-wrapper .arrow.right {
    right: -10px; /* Metade da largura do botão */
}

.supermembros-carousel-wrapper .arrow i {
    font-size: 20px; /* Ajusta o tamanho do ícone */
}

.supermembros-carousel-wrapper .arrow:hover {
    background-color: rgba(255, 255, 255, 0.295); /* Fundo branco ao passar o mouse */
    color: black; /* Cor do ícone ao passar o mouse */
}

.supermembros-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.supermembros-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.supermembros-carousel::-webkit-scrollbar {
    height: 8px;
}

.supermembros-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.supermembros-carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.supermembros-carousel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.carousel-item {
    flex: 0 0 auto;
    width: 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.carousel-item.grayscale img {
    filter: grayscale(100%);
}

.course-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: auto; /* Mantém tamanho original da imagem */
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.no-image {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
}

.placeholder-image {
    width: 100%;
    height: 150px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    border: 2px dashed #ccc;
    box-sizing: border-box;
}

/* ========== FLIP BOX STYLES ========== */

.flip-box-enabled {
    perspective: 1000px;
    height: auto; /* Garante que a altura se ajuste ao conteúdo */
}

.elementor-flip-box {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-box-enabled:hover .elementor-flip-box {
    transform: rotateY(180deg);
}

.flip-box--direction-left:hover .elementor-flip-box {
    transform: rotateY(-180deg);
}

.flip-box--direction-up:hover .elementor-flip-box {
    transform: rotateX(180deg);
}

.flip-box--direction-down:hover .elementor-flip-box {
    transform: rotateX(-180deg);
}

.elementor-flip-box__layer {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    top: 0;
    left: 0;
}

.elementor-flip-box__front {
    z-index: 2;
    position: relative; /* Mudança importante */
}

.elementor-flip-box__back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: absolute;
}

.flip-box--direction-left .elementor-flip-box__back {
    transform: rotateY(-180deg);
}

.flip-box--direction-up .elementor-flip-box__back {
    transform: rotateX(180deg);
}

.flip-box--direction-down .elementor-flip-box__back {
    transform: rotateX(-180deg);
}

.elementor-flip-box__layer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Front side - estrutura simplificada sem overlay/inner */
.elementor-flip-box__front {
    z-index: 2;
    position: relative;
}

.elementor-flip-box__front img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.elementor-flip-box__front .no-image {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    text-align: center;
    border-radius: 10px;
}

/* Back side - com flex para centralizar botão */
.elementor-flip-box__back .elementor-flip-box__layer__inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Lock icon no flip box - agora direto no front */
.flip-box-enabled .elementor-flip-box__front .lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

.elementor-flip-box__button {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.elementor-flip-box__button:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Button Sizes */
.elementor-size-xs {
    padding: 6px 12px;
    font-size: 10px;
}

.elementor-size-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.elementor-size-md {
    padding: 12px 24px;
    font-size: 14px;
}

.elementor-size-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.elementor-size-xl {
    padding: 20px 40px;
    font-size: 18px;
}

/* Non-3D Effect (for when 3D is disabled) */
.flip-box-enabled:not(.flip-box--3d) .elementor-flip-box {
    transform-style: flat;
}

.flip-box-enabled:not(.flip-box--3d):hover .elementor-flip-box {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-item {
        width: 200px;
    }
    
    .elementor-flip-box__button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        width: 150px;
    }
    
    .supermembros-carousel {
        gap: 10px;
    }
    
    .elementor-flip-box__button {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .elementor-flip-box__layer__inner {
        padding: 15px;
    }
}