.pc-221c88af-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #000; /* Added background color to prevent flash of empty space */
}

.pc-221c88af-backgrounds {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pc-221c88af-bg {
    position: absolute;
    inset: -2px; /* Slight negative inset to prevent edge artifacts */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 3s ease-in-out;
    transform: scale(1.05);
    z-index: 1;
}

.pc-221c88af-bg.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.pc-221c88af-cards-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 2px;
    padding: 20px;
    margin-top: auto;
}

.pc-221c88af-card {
    position: relative;
    flex: 1;
    padding: 20px;
    padding-top: 30px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pc-221c88af-card:hover {
    background: rgba(255, 255, 255, 0.95);
}

.pc-221c88af-card.has-glass:not(.is-active) {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.pc-221c88af-card.has-glass:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.25);
}

.pc-221c88af-card.is-active {
    background: #ffffff;
    flex: 1.2;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pc-221c88af-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.pc-221c88af-progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: var(--e-global-color-accent, #ffffff);
}

.pc-221c88af-card:not(.is-active) .pc-221c88af-progress-bar-fill {
    width: 0% !important;
    transition: none !important;
}

.pc-221c88af-badge-wrapper {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.pc-221c88af-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: var(--e-global-color-accent, #333);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.pc-221c88af-card.is-active .pc-221c88af-badge {
    background-color: #000;
    color: #fff;
}

.pc-221c88af-desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.pc-221c88af-card:not(.is-active) .pc-221c88af-desc {
    opacity: 0.8;
}

.pc-221c88af-card.has-glass:not(.is-active) .pc-221c88af-desc {
    color: #fff;
}

/* Card Layout Direction Control Support */
.pc-dir-rtl .pc-221c88af-cards-container {
    flex-direction: row-reverse;
}

/* Fallback RTL Support via general body class */
body.rtl .pc-221c88af-cards-container {
    flex-direction: row-reverse;
}
body.rtl .pc-dir-ltr .pc-221c88af-cards-container {
    flex-direction: row; /* Allow override */
}

/* Text Direction Control Support */
.pc-text-dir-rtl .pc-221c88af-card {
    text-align: right;
    direction: rtl;
}

.pc-text-dir-ltr .pc-221c88af-card {
    text-align: left;
    direction: ltr;
}

/* Badge/Pill Alignment Control Support */
.pc-pill-align-rtl .pc-221c88af-badge-wrapper {
    justify-content: flex-end;
}

.pc-pill-align-ltr .pc-221c88af-badge-wrapper {
    justify-content: flex-start;
}

/* Progress Bar Direction Control Support */
.pc-progress-dir-rtl .pc-221c88af-progress-bar-fill {
    float: right;
}

.pc-progress-dir-ltr .pc-221c88af-progress-bar-fill {
    float: left;
}

/* Mobile Layout Controls */
@media (max-width: 767px) {
    /* Stacked (Vertical) Layout */
    .pc-mobile-layout-stacked .pc-221c88af-cards-container {
        flex-direction: column;
    }
    .pc-mobile-layout-stacked .pc-221c88af-card.is-active {
        transform: translateX(-5px);
        margin-left: 5px;
    }
    .pc-dir-rtl.pc-mobile-layout-stacked .pc-221c88af-card.is-active,
    body.rtl.pc-mobile-layout-stacked .pc-221c88af-card.is-active {
        transform: translateX(5px);
        margin-left: 0;
        margin-right: 5px;
    }

    /* Slider (Horizontal) Layout */
    .pc-mobile-layout-slider .pc-221c88af-cards-container {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
    .pc-mobile-layout-slider .pc-221c88af-card {
        flex: 0 0 85%; /* Make cards almost full width so next one peeks in */
        scroll-snap-align: start;
        margin-right: 10px;
    }
    .pc-dir-rtl.pc-mobile-layout-slider .pc-221c88af-card,
    body.rtl.pc-mobile-layout-slider .pc-221c88af-card {
        margin-right: 0;
        margin-left: 10px;
    }
    /* Hide scrollbar for slider */
    .pc-mobile-layout-slider .pc-221c88af-cards-container::-webkit-scrollbar {
        display: none;
    }
    .pc-mobile-layout-slider .pc-221c88af-cards-container {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}