:root {
    --primary-blue: #173f64;
    --bg-mid: #bdeffc;
    --bg-gray: #f4f6f8;
    --border-color: #d1d5db;
    --safe-top: env(safe-area-inset-top, 0px);
    --mobile-header-height: 56px;
}

.feature-label img{
    max-width: 47%;
    height: auto;
    object-fit: contain; /* Prevents image distortion */
    display: block;
}

.pricing-container {
    max-width: 1200px;
    margin: auto;
    border: 1px solid var(--border-color);
}
.pricing-container4 {
    max-width: 1400px;
    margin: auto;
    border: 1px solid var(--border-color);
}
.header-row {
    position: sticky;
    top: 0; /* Sticks to the top of the viewport */
    z-index: 100; /* Ensures it stays above the table body */
    background: white; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Visual cue for stickiness */
}

.header-row .feature-label {
    background: #fff; 
    padding: 0; /* Remove padding to let image fill space */
    justify-content: center;
    overflow: hidden;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}
.pricing-row4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.tier-box {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-left: 1px solid var(--border-color);
}

.feature-label {
    padding: 15px;
    background: var(--bg-gray);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.tier-data {
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid var(--border-color);
}

.buy-btn {
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


/* Typography & Box Layout */
.tier-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    color: #333;
}

.tier-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.tier-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    min-height: 60px; /* Ensures alignment across boxes */
}

/* Pricing Styles */
.save-tag {
    color: #0056b3;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.old-price {
    color: #e31e24;
    font-size: 1.2rem;
    text-decoration: line-through;
}

.current-price {
    font-size: 2.2rem;
    color: #000;
}

/* Button Refinement */
.buy-btn {
    border: 1px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    padding: 12px 40px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.buy-btn:hover {
    background: var(--primary-blue);
    color: white;
}


.section-header-row {
    position: sticky;
    top: 20.5rem;
    z-index: 90; 
    background-color: #fef0f0; /* Light highlight for section */
    font-weight: bold;
    border-bottom: 2px solid var(--primary-blue);
}
.section-header-row div {
    background-color: var(--bg-mid);
    grid-column: 1 / -1; /* Spans across all columns */
    padding: 12px 15px;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 0.95rem;
}

 .mb-head {
    display: none;
 }
 .feature-head{
    width: 36.5rem;
    padding: 15px;
    background: var(--bg-gray);
    font-weight: bold;
    display: flex;
    align-items: center;
}
.feature-head4{
    width: 21.4rem;
    padding: 15px;
    background: var(--bg-gray);
    font-weight: bold;
    display: flex;
    align-items: center;
}
.tb-sec{
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border-color);
}
.tb-tab{
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}
.tb-tab div{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    border-left: 1px solid var(--border-color);
}


/* Wrapper to contain the absolute badge */
.tier-wrapper {
    position: relative; 
    display: flex;
    flex-direction: column;
}

/* The "Best Value Saver" Badge */
.boh {
    position: absolute;
    top: -25px; /* Pulls it above the box */
    left: 0;
    right: 0;
    background-color: var(--primary-blue); /* Dark blue/black from image */
    color: #ffffff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 0;
    text-transform: uppercase;
    z-index: 2;
    border-radius: 4px 4px 0 0;
}

/* Ensure the tier-box inside the wrapper still looks correct */
.tier-wrapper .tier-box {
    height: 100%; /* Fill the wrapper height */
    border-top: 4px solid var(--bg-mid); /* Red accent for the highlighted tier */
}



/* trust section  */
.trust-by {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 15px;
}

.trust-bcard {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.trust-bcard:hover {
    transform: translateY(-5px);
}

.trust-bicon {
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-bicon img {
    max-height: 100%;
    width: auto;
}

.trust-btitle {
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.trust-bdesc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}
@media (max-width: 768px){
    .trust-by{
        flex-direction: column;
    }
}





/* ===============================
   RESPONSIVE PRICING TABLE
   =============================== */

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
    .pricing-container {
        max-width: 100%;
    }
    .pricing-container4 {
        max-width: 100%;
    }

    .pricing-row {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }
    .pricing-row4 {
        grid-template-columns: 1.2fr 1fr 1fr 1fr;
    }

    .tier-title {
        font-size: 1.3rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .tier-desc {
        min-height: auto;
    }
    .sec4{
        display: none;
    }
    .section-header-row{
        top: 19.5rem;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {

    /* Sticky must see viewport */
    .pricing-container,
    .table-body {
        overflow: visible;
    }
    .pricing-container4,
    .table-body {
        overflow: visible;
    }

    /* Disable desktop sticky */
    .header-row {
        position: static;
        box-shadow: none;
    }

    /* Mobile top header */
    .mb-head {
        display: flex;
        position: sticky;
        top: var(--safe-top);
        height: var(--mobile-header-height);
        z-index: 999;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        font-weight: 600;
        padding: 0 1rem;
        align-items: center;
        justify-content: space-between;
    }

    /* Section headers stick UNDER mobile header */
    .section-header-row {
        position: sticky;
        top: calc(var(--mobile-header-height) + var(--safe-top));
        z-index: 998;
        background: var(--bg-mid);
    }

    /* Layout stacking */
    .pricing-row {
        display: block;
        border: none;
    }
    .pricing-row4 {
        display: block;
        border: none;
    }

    .feature-label img {
        display: none;
    }

    .header-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .tier-box,
    .tier-wrapper {
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .current-price { font-size: 2rem; }
    .old-price { font-size: 1rem; }

    .buy-btn {
        width: 100%;
        padding: 14px;
    }
}


/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {

    .tier-title { font-size: 1.2rem; }
    .tier-desc { font-size: 0.85rem; }
    .save-tag { font-size: 0.9rem; }

    .tier-data { border: none; }

    .tb-sec {
        flex-direction: column;
        overflow: hidden;
    }

    .tb-tab {
        justify-content: space-between;
        padding: 0.5rem 1rem;
    }

    .tb-tab div {
        border: none;
    }
}
