/* New Pricing Cards - Compact and Mobile Friendly */

.new-pricing-section {
    padding: 4rem 0 6rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: visible;
}

.new-pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.new-pricing-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color, #375E97);
    font-size: 2.5rem;
}

.new-pricing-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.new-pricing-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Card Styles */
.new-pricing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.new-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.new-pricing-card.popular {
    border: 2px solid var(--accent-color, #FB6542);
}

.new-card-header {
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
}

.plan-name {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color, #375E97);
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color, #FB6542);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.new-price {
    margin: 15px 0;
    text-align: center;
}

.new-price-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color, #375E97);
}

.new-period {
    font-size: 0.9rem;
    color: #777;
}

.new-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.new-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.new-features-list li {
    padding: 6px 0;
    position: relative;
    padding-left: 25px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.new-features-list li::before {
    content: '✓';
    color: var(--accent-color, #FB6542);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.new-features-list li strong {
    color: var(--primary-color, #375E97);
}

.new-cta-button {
    background-color: var(--primary-color, #375E97);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

.new-cta-button:hover {
    background-color: var(--secondary-color, #3F88C5);
}

.popular .new-cta-button {
    background-color: var(--accent-color, #FB6542);
}

.popular .new-cta-button:hover {
    background-color: #e55a38;
}

/* Mobile Swiper */
.new-pricing-swiper-container {
    display: none;
    position: relative;
    padding: 20px 0 40px;
    margin: 0 auto;
    overflow: visible !important; /* Allow navigation buttons to be visible outside container */
    touch-action: pan-y !important; /* Allow vertical scrolling */
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    max-width: 100%;
}

.new-pricing-swiper-container * {
    touch-action: pan-y !important;
}

.new-pricing-swiper-container .swiper-slide {
    transition: all 0.3s ease;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    height: auto !important;
    margin: 0 auto;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0.7;
    transform: scale(0.9);
    box-sizing: border-box;
    padding: 5px;
}

.new-pricing-swiper-container .swiper-slide-active,
.new-pricing-swiper-container .carousel-active-slide {
    transform: scale(1); /* Full size when active */
    opacity: 1;
    z-index: 2;
    transition: all 0.3s ease-out;
}

.new-pricing-swiper-container .swiper-wrapper {
    /* Add some height to ensure all slides are properly visible */
    min-height: 450px;
    align-items: center !important;
    justify-content: center !important; /* Center the active slide */
    transition: transform 0.3s ease-out !important; /* Smooth easing */
    will-change: transform; /* Performance optimization */
    overflow: visible;
    display: flex !important;
}

/* Pagination styling */
.new-pricing-swiper-container .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: 0;
    width: 100%;
    text-align: center;
    margin-top: 30px !important;
    padding-bottom: 20px !important;
    z-index: 100 !important;
    background: transparent !important;
}

.new-pricing-swiper-container .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.new-pricing-swiper-container .swiper-pagination-bullet-active {
    background-color: var(--primary-color, #375E97);
    opacity: 1;
    transform: scale(1.2);
}

/* Navigation buttons */
.new-pricing-swiper-container .swiper-button-next,
.new-pricing-swiper-container .swiper-button-prev {
    color: var(--primary-color, #375E97);
    background-color: rgba(255, 255, 255, 0.8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.new-pricing-swiper-container .swiper-button-next:after,
.new-pricing-swiper-container .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

.new-pricing-swiper-container .swiper-button-next:hover,
.new-pricing-swiper-container .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.new-pricing-swiper-container .swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Media Queries */
@media (max-width: 991px) {
    .new-pricing-grid {
        gap: 15px;
    }
    
    .new-pricing-card {
        padding: 15px;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .new-pricing-section {
        overflow-x: hidden; /* Prevent horizontal overflow issues */
        position: relative;
        z-index: 1; /* Ensure it's above other elements */
    }
    
    .new-pricing-grid {
        display: none;
    }
    
    .new-pricing-swiper-container {
        display: block !important;
        width: 100% !important;
        overflow: hidden !important; /* Contain slides properly */
        position: relative;
        z-index: 2;
        padding: 20px 0;
    }
    
    .new-pricing-swiper-container .swiper-wrapper {
        display: flex !important;
        user-select: none;
        width: 300% !important; /* For 3 slides */
        position: relative;
        transition: transform 0.3s ease !important;
        height: auto;
    }
    
    .new-pricing-swiper-container .swiper-slide {
        width: 33.333% !important;
        flex-shrink: 0;
        opacity: 0.7;
        transform: scale(0.9);
        transition: all 0.3s ease;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px;
        box-sizing: border-box;
    }
    
    .new-pricing-swiper-container .swiper-slide-active {
        opacity: 1 !important;
        transform: scale(1.05) !important;
        z-index: 5;
    }
    
    .new-pricing-card {
        height: auto;
        min-height: 400px;
        max-height: 450px;
        width: 100% !important;
        margin: 0 auto;
    }
    
    .new-features-list li {
        padding: 4px 0 4px 20px;
        font-size: 0.8rem;
    }
    
    .new-features-list li::before {
        font-size: 0.9rem;
    }
    
    .new-price-amount {
        font-size: 1.8rem;
    }
    
    .plan-name {
        font-size: 1.3rem;
    }
    
    .new-cta-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Navigation buttons styling */
    .new-pricing-swiper-container .swiper-button-next,
    .new-pricing-swiper-container .swiper-button-prev {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 28px !important;
        height: 28px !important;
        background-color: rgba(113, 69, 237, 0.9) !important;
        color: white !important;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 10 !important;
        cursor: pointer !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .new-pricing-swiper-container .swiper-button-next:after,
    .new-pricing-swiper-container .swiper-button-prev:after {
        font-size: 12px !important;
    }
    
    .new-pricing-swiper-container .swiper-button-next {
        right: 10px !important;
    }
    
    .new-pricing-swiper-container .swiper-button-prev {
        left: 10px !important;
    }
    
    /* Pagination bullets styling */
    .new-pricing-swiper-container .swiper-pagination {
        position: relative;
        bottom: 0;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .new-pricing-swiper-container .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(113, 69, 237, 0.3);
        margin: 0 5px;
        border-radius: 50%;
        cursor: pointer;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .new-pricing-swiper-container .swiper-pagination-bullet-active {
        background: rgba(113, 69, 237, 1);
        width: 12px;
        height: 12px;
    }
}
