/* ================================
   New Pricing Packages Styles
   iOnline Theme
   ================================ */

.pricing-new {
    padding: 4rem 0;
    background-color: #f6f6f6;
    /* Matching overall background if applicable, else transparent */
    overflow: hidden;
    /* Important for mobile carousel */
}

/* Base structural adjustments for the track */
.pricing-new__track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

/* Columns */
.pricing-new__col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 380px;
    padding: 0;
}

/* Card Styling */
.pricing-new__card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 1rem 3rem -1rem rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Highlighted Popular Card */
.pricing-new__col--popular .pricing-new__card {
    border: 1px solid #293143;
    /* Darker border for emphasis */
    box-shadow: 0 1.5rem 4rem -1rem rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* Header Section */
.pricing-new__header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 2rem;
}

.pricing-new__title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pricing-new__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #293143;
    margin: 0;
    line-height: 1.2;
}

.pricing-new__badge {
    background: #b2c9ff;
    color: #293143;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 50px;
}

.pricing-new__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pricing-new__currency,
.pricing-new__price {
    font-size: 3rem;
    font-weight: 800;
    color: #293143;
    line-height: 1;
}

.pricing-new__price-note {
    font-size: 1rem;
    color: #747c90;
    font-weight: 500;
}

.pricing-new__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #ff6661;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    padding: .75rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.pricing-new__btn:hover {
    opacity: 0.9;
    color: #ffffff;
}

.pricing-new__btn:active {
    transform: scale(0.98);
}

/* Body Section - Icon List */
.pricing-new__body {
    padding-bottom: 2rem;
    flex-grow: 1;
}

.pricing-new__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pricing-new__list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #293143;
    font-size: 1rem;
    font-weight: 500;
}

.pricing-new__list-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-new__list-icon img {
    width: 100%;
    height: auto;
}

/* Footer Section - Simple List */
.pricing-new__footer {
    padding-top: 2rem;
    border-top: 1px solid #eef2f6;
}

.pricing-new__footer-title {
    font-size: 1rem;
    font-weight: 500;
    color: #293143;
    margin-bottom: 1rem;
}

.pricing-new__sublist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-new__sublist-item {
    color: #747c90;
    font-size: 0.875rem;
    font-weight: 400;
}


/* ================================
   Desktop View (≥ 1024px)
   ================================ */
@media (min-width: 1024px) {
    .pricing-new__track {
        justify-content: center;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .pricing-new__col {
        flex: 1;
        max-width: none;
        min-width: 0;
        /* Prevents overflow in flex child */
    }
}

/* ================================
   Mobile Infinite Carousel (≤ 1023px)
   ================================ */
@media (max-width: 1023px) {
    .pricing-new__container {
        overflow: hidden;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pricing-new__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        gap: 1rem;
        padding-top: 1rem;
        /* Buffer for translateY(-5px) */
        padding-bottom: 2rem;
        /* Buffer for shadow */
        scroll-behavior: auto;
    }

    .pricing-new__track::-webkit-scrollbar {
        display: none;
    }

    .pricing-new__col {
        flex: 0 0 85%;
        /* Shows a peek of the next card */
        max-width: 400px;
        scroll-snap-align: center;
        position: relative;
    }

    .pricing-new__col:first-child {
        margin-left: max(7.5vw, calc(50vw - 200px));
    }

    .pricing-new__col:last-child {
        margin-right: max(7.5vw, calc(50vw - 200px));
    }
}