@media (min-width: 576px) and (max-width: 991.98px) {
    .plan-card {
        /* Use full width cards on small/medium tablets to avoid overlap */
        min-width: auto;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
/* Styling for the overall page background - off-white from image */
body {
    background-color: #f8f9fa;
}

.pricing-header {
    max-width: 700px;
}

/* Common styling for all cards */
.plan-card {
    transition: transform 0.3s ease-in-out;
}

/* Ensure the pricing features list looks clean and aligned to the icons */
.pricing-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
    line-height: 1.25;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Large text for pricing title */
.pricing-card-title {
    font-size: 2.5rem;
}

/* * Highlighted Card Styles 
 */

.plan-card.highlighted {
    border-color: #2955d4; /* Matching standard blue used in project login.css */
    /* Remove color: white !important; to restore normal text color */
    transform: scale(1.05); /* Slight lift effect */
    z-index: 10;
}

/* If you want only the badge to be white, keep this: */
.plan-card.highlighted .badge-popular {
    color: white !important;
}

.plan-card.highlighted .card-header {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white;
}

.plan-card.highlighted small.text-body-secondary,
.plan-card.highlighted .text-body-emphasis,
.plan-card.highlighted .text-body-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Change boundary borders of list items in highlighted card */
.plan-card.highlighted .pricing-features li {
    /* Keep same subtle grey divider used for other cards */
    border-bottom: 1px solid #e9ecef !important;
}

/* Hover effect for side cards to make them pop slightly */
.plan-card:not(.highlighted):hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
}

/* Ensure the last feature list item has no bottom border, including in highlighted cards */
.plan-card .pricing-features li:last-child,
.plan-card.highlighted .pricing-features li:last-child {
    border-bottom: none !important;
}

/* Mobile: Add breathing room to card-body */
@media (max-width: 575.98px) {
    .plan-card {
        margin: 0;
    }
    .plan-card.highlighted {
        margin: 1.5rem 0.5rem 1.5rem 0.5rem;
    }

    #pro-plan {
        margin-top: 0.25rem !important;
        margin-bottom: 2.25rem;
    }

    /* Add margin to the column wrapper for more vertical spacing */
    .row.row-cols-1 .col.mb-3 {
        margin-top: 3.25rem;
        margin-bottom: 2.25rem;
    }
    .plan-card .card-body {
        padding: 1.5rem 1.25rem;
    }
}