.ce {
    position: sticky;
    top: 0;
    width: 100%;
    background: #2f3036;
    z-index: 9999;
}


.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================
   MODERN FLEX NAVIGATION
   ========================= */

/* Main nav container */
#menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Top-level items */
#menu > li {
    position: relative;
}

/* Top-level links */
#menu > li > a {
    display: block;
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    transition: background 0.2s ease;
}

/* Hover state */
#menu > li > a:hover {
    cursor: pointer;
}

/* Dropdown container */
#menu li ul {
    position: absolute;
    top: 50px;
    left: 0;
    background: #fff;
    min-width: 220px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

/* Dropdown items */
#menu li ul li a {
    display: block;
    padding: 12px 20px;
    color: #2f3036;
    text-decoration: none;
    transition: background 0.2s ease;
}

/* Dropdown hover */
#menu li ul li a:hover {
    background: #19c589;
    color: #fff;
}

/* Show dropdown on hover */
#menu li:hover > ul {
    display: none;
}

/* Prevent content from hiding behind sticky nav */
body {
    padding-top: 50px;
}

/* =========================
   MOBILE NAV
   ========================= */

.show-menu {
    display: none;
    background: #19c589;
    color: #fff;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
}

#show-menu {
    display: none;
}

@media (max-width: 768px) {

    #menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2f3036;
    }
    
  /* Ensure dropdowns are hidden by default and stack on mobile */
   #menu li ul {
        display: none; 
        position: static;
        width: 100%;
        background: #3e4048; /* Darker background for contrast */
    }
    
 /* Show the sub-menu when JS adds the 'show' class */
   #menu li ul.is-open {
    display: block !important;
}
  /* Disable hover on mobile to prevent flickering */
    #menu li:hover > ul {
        display: none;
    }

    #menu li ul li a {
        background: #f3f3f3;
    }

    /* Show menu toggle */
    .show-menu {
        display: block;
    }

    /* Toggle when checked */
    #show-menu:checked ~ #menu {
        display: flex;
    }
 }
/* This allows the JavaScript 'is-open' class to work on Desktop */
#menu li ul.is-open {
    display: block !important;
}









table {
    table-layout: fixed;
    width: 100%;
}

th, td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #118C4E;
    border-radius: 4px;
}

.table-responsive {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

#iboTable th:first-child,
#iboTable td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 2;
}





/* ======================
   NERDWALLET STYLE CARDS
   ====================== */

.ibo-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #118C4E;  /* your brand green */
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.ibo-card:hover {
    transform: translateY(-3px);  /* optional lift only */
}



.ibo-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.ibo-header h4 {
    margin: 10px 0 0;
    font-weight: 700;
}

.ibo-header a {
    color: #118C4E;
    text-decoration: none;
}

.rating {
    font-size: 22px;
    color: #f39c12;
}

.ibo-body {
    padding: 20px;
    flex-grow: 1;
}

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

.ibo-features li {
    margin-bottom: 8px;
    font-size: 14px;
}

.ibo-badges {
    margin-top: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin: 4px 4px 0 0;
}

.badge.green { background: #e6f7ee; color: #118C4E; }
.badge.blue { background: #eaf3ff; color: #007bff; }
.badge.dark { background: #eee; color: #333; }

.ibo-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.compare-select {
    font-weight: 600;
    cursor: pointer;
}

.compare-select input {
    margin-right: 8px;
}




/* Sticky Compare Bar */
#compareBar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #118C4E;
    color: white;
    padding: 15px;
    display: none;
    z-index: 9999;
}

.compare-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}




.gold-card {
    border: 2px solid #d4af37;
}

.ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #d4af37;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}


.featured-card {
    background: linear-gradient(135deg, #fff9e6, #ffffff);
    border: 2px solid #d4af37;
    padding: 30px;
    border-radius: 15px;
}



.badge{
display:inline-block;
padding:6px 10px;
border-radius:20px;
font-size:12px;
font-weight:600;
margin:4px 4px 0 0;
}

.badge.green{background:#e6f7ee;color:#118C4E;}
.badge.blue{background:#eaf3ff;color:#007bff;}
.badge.purple{background:#f2eaff;color:#6f42c1;}
.badge.dark{background:#333;color:#fff;}
.badge.teal{background:#e0f7f5;color:#0f766e;}
.badge.gray{background:#f0f0f0;color:#555;}
.badge.gold{background:#fff4cc;color:#b8860b;border:1px solid #d4af37;}