.sticky-section {
    position: sticky;
    top: 118px;
    background: #f8f9fa;
    z-index: 999;
    padding: 0 0;

}
.sticky-img {
    position: sticky;
    top: 250px;
}
.best-for-box{
    border: 1px solid #fff;
    padding: 15px;
    border-radius: 8px;
    background-color: white;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.meal-item-type {
    border-radius: 0.75rem;
}
.macro-card {
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    height: 100%;
}
.macro-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.macro-label {
    font-weight: bold;
    font-size: 18px;
}
.macro-value {
    font-size: 16px;
    color: #666;
}

/* Chart container: maintain square ratio to match left image height */
.row.align-items-center { display: flex; align-items: stretch; }
.chart-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
#macroChart {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.kcal-text { text-align: center; margin-top: 0.5rem; font-weight: bold; }
/* Chart container: maintain square ratio to match left image height */

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.plan-item.active {
    background: #e9f8ee;
    border-color: #28a745;
}

.plan-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 6px;
    margin-right: 16px;
    cursor: pointer;
    position: relative;
}

.plan-item input[type="radio"]:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.plan-item input[type="radio"]:checked::after {
    content: "\2713";
    color: #fff;
    font-size: 16px;
    position: absolute;
    top: 2px;
    left: 4px;
}

.plan-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.label-section {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
}

.old-price {
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
    text-decoration: line-through;
    margin-top: 8px;
}

.prices .final-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    position: relative;
    text-align: center;
}

.final-price .amount {
    display: block;
    margin-bottom: 8px; /* Adjust as needed */
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
}

.discount-ribbon {
    background: #169331;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.trial-ribbon {
    background: #ffc107;
    color: #222;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 6px;
    display: inline-block;
    width: fit-content;
}

.proceed-btn {
    width: 100%;
    padding: 14px 0;
    background: #28a745;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    transition: background 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.proceed-btn:hover {
    background: #218838;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.proceed-btn:active {
    background: #1e7e34;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.2);
}


.custom-hr {
    border: 0;
    border-top: 1px solid #5555552e;
    margin: 25px 0;
    opacity: 0.8;
}

/*-----------------*/

.meal-item {
    flex: 0 0 auto;
    width: auto;
    text-align: center;
    background-color: #dfe4da;
    border: 1px solid #dfe4da;
    border-radius: 8px;
}

.meal-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.meal-item:hover {
    transform: scale(1.03);
}

.meal-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 6px 0 2px;
    height: 2.6em; /* Fix height for exactly 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3em;
}

.meal-title:hover {
    color: #4CAF50;
}

.meal-type {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    margin-top: 10px;
}

.meal-kcal {
    font-size: 0.8rem;
    padding: 6px;
    margin-top: 12px;
    border: 1px solid #525b36;
    border-radius: 4px;
    background-color: #525b36;
    font-weight: 600;
    color: white;
}

.details{
    padding: 12px 10px;
}

.padding{
    padding: 50px 0 50px !important;
}

.padding h2{
    font-size: 46px;
    line-height: 40px;
    color: #000;
    font-weight: 900;
    margin-bottom: 17px;
}


/*------------*/
.how-it-works .icon i {
    color: #ff9d6d;
}
.how-it-works h5 {
    color: black;
    font-weight: bold;
    font-size: 20px;
    margin-top: 10px;
}
.how-it-works p {
    color: rgba(0, 0, 0, 0.85);
    font-size: 17px;
    margin-top: 8px;
}
.how-it-works .step {
    background: #fff;
    margin: 15px 20px;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s ease;
}
.how-it-works .step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #80aa6c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    z-index: 1;
}
.how-it-works .step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/*----------------*/

.benefits-section .benefit-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.benefits-section .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.benefits-section .benefit-icon i {
    color: #173f3b;
}
.benefits-section .benefit-title {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}
.benefits-section .benefit-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}


/*-----------*/

.custom-text{
    font-size: 30px !important;
}

.partners-img-size{
    width: 150px;
}


.meal-plan-section {
    padding: 40px 20px 15px 20px;
    background-color: #fff;
    text-align: center;
}
.meal-plan-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.meal-plan-section p.subheading {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #444;
}

.meal-plan-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 11px #00000040;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.meal-plan-card .content {
    flex: 1;
    min-width: 200px;
}

.meal-plan-card .discount {
    background: #e50914;
    color: white;
    float: right;
    font-weight: 700;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    display: inline-block;
    margin-left: 10px;
}

.meal-plan-card .macros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.macro-box {
    background: #f0f0f0;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.meal-plan-card .price {
    font-weight: 700;
    font-size: 18px;
    color: #1e5234;
    margin-top: 12px;
}

.meal-plan-card .old-price {
    text-decoration: line-through;
    font-size: 13px;
    color: #000000;
    font-weight: 600;
    margin-top: 10px;
}

.meal-plan-card .start-label {
    font-size: 0.85rem;
    color: #000000;
    font-weight: 500;
    margin-top: 5px;
}

.meal-plan-card .explore-btn {
    background: #1e5234;
    color: white;
    font-weight: bold;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.meal-plan-card .image {
    flex: 0 0 180px;
    max-width: 180px;
    border-radius: 12px;
    overflow: hidden;
}

.meal-plan-card .image img {
    width: 100%;
    height: auto;
    display: block;
}
.meal-plan-card .content h3 {
    font-size: 17px;
    font-weight: bold;
    text-align: left;
}
.meal-plan-card .content p {
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    margin-top: 10px;
    line-height: 20px;
}
.meal-plan-padding{
    padding: 0 30px;
}
.meal-plan-padding-2{
    padding: 0 35px;
}

@media (max-width: 768px) {
    .meal-plan-padding{
        padding: 0 0;
    }
    .meal-plan-padding-2{
        padding: 0 0;
    }

    .meals-count {
        display: none !important;
    }

    .meal-plan-card {
        flex-direction: row !important;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }

    .meal-plan-card .image {
        flex: 0 0 100%;
        max-width: 120px;
    }

    .meal-plan-card .content h3 { font-size: 1rem; }
    .meal-plan-card .content p,
    .meal-plan-card .start-label,
    .meal-plan-card .old-price,
    .meal-plan-card .price { font-size: 0.85rem; }
    .meal-plan-card .discount,
    .macro-box { font-size: 0.75rem; }

    .px-3, .px-4 { padding-left: 0 !important; padding-right: 0 !important; }

    .meal-plan-card .content p, .meal-plan-card .start-label, .meal-plan-card .old-price, .meal-plan-card .price{
        text-align: center;
    }
}

.meal-plan-card .image {
    width: 100% !important;
    max-width: 100% !important;
}
.meal-plan-card .content h3 {
    font-size: 16px;
}
.meal-plan-card .content p,
.meal-plan-card .start-label,
.meal-plan-card .old-price,
.meal-plan-card .price {
    font-size: 14px;
}
.meal-plan-card .discount,
.macro-box {
    font-size: 12px;
}
@media (max-width: 767.98px) {
    .best-for-box img {
        display: none !important;
    }
    .meal-item {
        width: 100%;
    }
    .meal-item img {
        height: 130px;
    }
    .meal-title {
        font-size: 0.75rem;
    }
    .sticky-section{
        top: 175px;
    }
    .chart-container {
        width: 150px !important;
        height: 150px !important;
    }
    #macroChart {
        width: 100% !important;
        height: 100% !important;
    }
    .benefits-section h2 {
        font-size: 1.3rem;
    }
    section.padding.mt-4.py-5.bg-light h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    section.padding.py-5.mt-4.bg-white h2.mb-3 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    section.padding.py-5.mt-4.bg-white h2.custom-text {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    section.padding.mt-4.mb-5.py-4.bg-light h2.text-center {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    .meal-item img {
        width: 100% !important;         /* Full width on all devices */
        height: auto;         /* Maintain aspect ratio */
        object-fit: cover;    /* Prevent image distortion */
        border-radius: 8px;   /* Optional: smooth corners */
    }
}