/* Elementor Stacked Cards Styles */

.elementor-stacked-cards-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
}

.stacked-cards-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Card Styles */
.stacked-card {
    position: sticky;
    width: 90%;
    max-width: 1200px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

.stacked-card:nth-child(1) {
    top: 80px;
    z-index: 100;
}

.stacked-card:nth-child(2) {
    top: 110px;
    z-index: 90;
}

.stacked-card:nth-child(3) {
    top: 140px;
    z-index: 80;
}

.stacked-card:nth-child(4) {
    top: 170px;
    z-index: 70;
}

.stacked-card:nth-child(5) {
    top: 200px;
    z-index: 60;
}

/* Card Content */
.stacked-card-content {
    padding: 60px;
}

/* Badge */
.stacked-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Main Content Layout */
.stacked-card-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.stacked-card-main:not(:has(.stacked-card-left)) {
    grid-template-columns: 1fr;
}

/* Typography */
.stacked-card-title {
    font-size: 48px;
    font-weight: 700;
    color: inherit;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.stacked-card-description {
    font-size: 18px;
    line-height: 1.6;
    color: inherit;
    opacity: 0.8;
    margin: 0 0 30px 0;
}

/* List Styles */
.stacked-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stacked-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
}

.stacked-card-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #4caf50;
}

/* Chart Styles */
.stacked-card-chart-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.chart-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donut-chart {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.chart-percentage {
    font-size: 28px;
    font-weight: 700;
    fill: currentColor;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Chart Card */
.chart-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 30px;
    color: #ffffff;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.9;
}

.chart-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.line-chart {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    opacity: 0.7;
}

/* Activity Card Specific */
.stacked-card[data-card-index="0"] .stacked-card-badge {
    color: #ff6b35;
}

/* Business Owners Card Specific */
.stacked-card[data-card-index="1"] .stacked-card-badge {
    color: #4f7cff;
}

/* Scroll Animations */
.stacked-card.card-scaling {
    transform: scale(0.95);
    opacity: 0.8;
}

.stacked-card.card-exit {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stacked-card-content {
        padding: 40px;
    }
    
    .stacked-card-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stacked-card-title {
        font-size: 36px;
    }
    
    .stacked-card-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .elementor-stacked-cards-wrapper {
        padding: 40px 15px;
    }
    
    .stacked-card {
        width: 95%;
    }
    
    .stacked-card-content {
        padding: 30px 25px;
    }
    
    .stacked-card-title {
        font-size: 28px;
    }
    
    .stacked-card-description {
        font-size: 15px;
    }
    
    .stacked-card-list li {
        font-size: 14px;
    }
    
    .stacked-card:nth-child(1) {
        top: 60px;
    }
    
    .stacked-card:nth-child(2) {
        top: 80px;
    }
    
    .stacked-card:nth-child(3) {
        top: 100px;
    }
    
    .stacked-card:nth-child(4) {
        top: 120px;
    }
    
    .stacked-card:nth-child(5) {
        top: 140px;
    }
    
    .donut-chart {
        width: 150px;
        height: 150px;
    }
    
    .chart-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .stacked-card-content {
        padding: 25px 20px;
    }
    
    .stacked-card-title {
        font-size: 24px;
    }
    
    .stacked-card-description {
        font-size: 14px;
    }
    
    .stacked-card-badge {
        font-size: 12px;
    }
}

/* Animation Keyframes */
@keyframes cardSlideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cardScale {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

/* Initial Animation */
.stacked-card {
    animation: cardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.stacked-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stacked-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stacked-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stacked-card:nth-child(4) {
    animation-delay: 0.4s;
}

.stacked-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.elementor-stacked-cards-wrapper::-webkit-scrollbar {
    width: 8px;
}

.elementor-stacked-cards-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.elementor-stacked-cards-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.elementor-stacked-cards-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
