
  .topbar { background: var(--brand); color: #fff; }
  .topbar h1 { font-size: 1.25rem; font-weight: 500; margin: 0; }
  .topbar .back { color: #fff; font-size: 1.5rem; line-height: 1; }

  .search-wrap { background: #fff;}
  .search-box { border: 1px solid #d5dae0; border-radius: .5rem; background: #fff; }
  .search-box .form-control { border: 0; box-shadow: none; background: transparent; }
  .search-box .bi { color: var(--muted); }

  /* Section head */
  .list-head h2 { font-size: 1.15rem; font-weight: 600; margin: 0; }
  .list-head .bi { font-size: 1.3rem; color: var(--muted); }

  /* Card */
  .course-card {
    background: #fff; height: 100%;
    display: flex; flex-direction: row; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid #e6e8eb;
  }
  .thumb-wrap { position: relative; flex: 0 0 38%; max-width: 170px; }
  .thumb {
    width: 100%; aspect-ratio: 1.4 / 1; border-radius: .35rem; overflow: hidden;
    color: #fff; padding: .5rem; font-size: .62rem; line-height: 1.25;
    display: flex; flex-direction: column; justify-content: center;
  }
  .thumb strong { font-size: .8rem; display: block; }
  .thumb.science { background: linear-gradient(135deg, #1b2a49, #0f6a8a); }
  .thumb.railway { background: linear-gradient(135deg, #b3121f, #5a1018); }
  .thumb.alt1 { background: linear-gradient(135deg, #3b2f8f, #1f1a5c); }
  .thumb.alt2 { background: linear-gradient(135deg, #0f7a4f, #0a3f2b); }

  .btn-coupon {
    position: absolute; left: 6%; right: 6%; bottom: -1.1rem;
    color: #fff; border: 0; border-radius: .25rem;
    font-size: .8rem; padding: .3rem .4rem;
    background: #dd9729
  }
  .btn-coupon:hover { background: #dc5a2e; color: #fff; }

  .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
  .tag { background: var(--tag-bg); color: var(--muted); font-size: .7rem; padding: .2rem .5rem; border-radius: .2rem; text-transform: uppercase;color: #000000b3; }
  .c-title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-bottom: .5rem; }
  .price { font-size: 1.25rem; font-weight: 700;color:#000000b3 }
  .mrp { color: var(--muted); text-decoration: line-through; font-size: .85rem; margin-left: .4rem; color:#000000b3}
  .off { color: var(--price-off); font-size: .85rem; margin-left: .4rem;color: #dd972a;font-weight: 600; }

  /* Tablet + desktop: vertical cards (2 per row on md, 4 per row on lg+) */
  @media (min-width: 768px) {
    .course-card {
      flex-direction: column; gap: .9rem; padding: 1rem;
      border: 1px solid #e6e8eb; border-radius: .6rem;
      transition: box-shadow .15s ease;
    }
    .course-card:hover { box-shadow: 0 6px 18px rgba(20, 40, 60, .12); }
    .thumb-wrap { flex: none; max-width: none; }
    .thumb { aspect-ratio: 16 / 10; font-size: .7rem; }
    .thumb strong { font-size: .95rem; }
    .btn-coupon { bottom: -0.5rem; left: .5rem; right: auto; padding: .3rem .8rem;background: #dd9729 }
    .c-title { font-size: 1.1rem; }
  }

  /* Phone: full-width list with dividers */
  @media (max-width: 767.98px) {
    .list-area { background: #fff; }
    .list-area .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }
    .course-card {
        background: #fff;
        border: 1px solid #e6e8eb;
        border-radius: .6rem;
        padding: 1rem;
        display: flex !important;
        flex-direction: row !important;
        gap: .9rem;
        margin-bottom: 1.5rem !important;
    }
    .coupon {
        bottom: 2.5rem !important;
    }
    .course-card{
        height: 141px !important; 
    }
  }
  .tag i.fa.fa-calendar {
    color: #f59500;
}
.tag i.fa.fa-cubes {
    color: #147fc0;
}
tr.packagelist th {
    padding: 14px 0px 14px 9px !important;
}

  /* Package card */
  .course-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: .6rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin-bottom: 1.5rem;
}
.course-card .thumb-wrap { position: relative; }
.course-card .thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: .35rem;
    color: #fff;
    padding: .75rem;
    font-size: .75rem;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.course-card .thumb strong { font-size: 1rem; display: block; }
.course-card .thumb.railway { background: linear-gradient(135deg, #b3121f, #5a1018); }

.btn-coupon {
    position: absolute;
    left: .5rem;
    bottom: .5rem;
    background: #f26a3d;
    color: #fff;
    border: 0;
    border-radius: .25rem;
    font-size: .8rem;
    padding: .3rem .8rem;
}
.btn-coupon:hover { background: #dc5a2e; color: #fff; }

.c-title { font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin-bottom: .5rem; }
.price { font-size: 1.25rem; font-weight: 700; }
.mrp { color: #6b7785; text-decoration: line-through; font-size: .85rem; margin-left: .4rem; }
.off { color: #f0a93b; font-size: .85rem; margin-left: .4rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.tag {
    background: #eaeff5;
    color: #6b7785;
    font-size: .75rem;
    padding: .25rem .55rem;
    border-radius: .2rem;
}
.tag .fa { color: #0a9bdc; }

/* Buy Now button */
.buy-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #f26a3d;
    color: #fff;
    font-weight: 600;
    padding: .7rem 1rem;
    border-radius: .4rem;
    margin-top: .8rem;
    text-decoration: none;
}
.buy-btn:hover { background: #dc5a2e; color: #fff; }
.mobile-buy-action { padding: .5rem 0 1rem; }



.mobile-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: #101820;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom, 0px));
}
.mobile-buy-bar .bar-price { line-height: 1.2; }
.mobile-buy-bar .bar-now { color: #fff; font-size: 1.5rem; font-weight: 700; display: block; }
.mobile-buy-bar .bar-mrp { color: #fff; text-decoration: line-through; font-size: .9rem; margin-right: .5rem; }
.mobile-buy-bar .bar-off { color: #f0a93b; font-size: .9rem; }
.mobile-buy-bar .bar-btn {
    flex: 0 0 52%;
    text-align: center;
    background: #f26b3d;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: .8rem 1rem;
    border-radius: .6rem;
    text-decoration: none;
}
.mobile-buy-bar .bar-btn:hover { background: #0877bd; color: #fff; }

/* bar ke piche content na chhupe */
@media (max-width: 991.98px) {
    .courses-details-area { padding-bottom: 6rem; }
}