#filter-count,
.headline,
.line span,
.price-info p {
    font-weight: 500;
}

body,
html {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.include-header {
    padding-top: 6%;
}

.head-quick-links {
    width: 90%;
    margin: 3% auto 2%;
}

.head-quick-links p {
    font-size: 0.8rem;
}

.section-1 {
    width: 100vw;
    height: auto;
    background: linear-gradient(180deg, #f7dde0 0, #f5f5f5 100%) no-repeat padding-box;
    display: flex;
    flex-direction: column;
}

.img-card,
.line {
    align-items: center;
    display: flex;
}

.headline {
    text-align: center;
}

.product-section {
    width: 80%;
    margin: 0 auto;
}

.bged {
    background-color: #ededed;
}

.img-card {
    justify-content: center;
}

.line {
    justify-content: space-between;
    padding-top: 2%;
}

.price-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge {
    background-color: #ded7e5;
    color: #000;
}

@media (max-width: 1400px) {
    .product-section {
        width: 90%;
    }
}

.filter-sidebar {
    padding: 25px;
    height: 100%;
}

#filter-count {
    font-size: 1rem;
    color: #333;
}

.filter-group {
    margin-bottom: 1.75rem;
}

.filter-group h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
    color: #111;
}

.form-check-label {
    font-size: 1rem;
    color: #555;
}

.form-check-input {
    background-color: transparent;
    border: 1px solid #9f9f9f;
}

.form-check-input[type="checkbox"] {
    border-radius: 0;
}

.form-check-input:checked {
    background-color: #e8364e;
    border-color: #e8364e;
}

.form-check {
    margin-bottom: 0.5rem;
}

.select-subject-label {
    font-weight: 600;
    margin-right: 15px;
    vertical-align: middle;
}

.subject-filter-btn {
    margin-right: 8px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 6px 15px;
    transition: 0.2s ease-in-out;
}

.img-card,
.product-card-wrapper {
    background-color: #ededed;
    display: flex;
}

.subject-filter-btn:hover {
    background-color: #efefef;
    border-color: #ccc;
    border-radius: 40px;
}

.subject-filter-btn.active {
    background-color: rgba(240, 89, 105, 0.1);
    color: #414042;
    border-radius: 40px;
}

.product-card-wrapper {
    overflow: hidden;
    transition: 0.3s ease-in-out;
    position: relative;
    height: 100%;
    flex-direction: column;
    min-height: 400px;
    /* Set minimum height for consistency */
}

.product-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-card-link {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.img-card {
    padding: 10% 8%;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    /* background-color: #ededed; */
    height: 300px;
    /* Fixed height for image container */
    min-height: 300px;
    max-height: 300px;
}

.img-card img {
    width: 300px;
    object-fit: contain;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    /* Reduced to fit within container */
    object-fit: contain;
}

.product-info {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    /* Prevent shrinking */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    /* Minimum height for content area */
}

.product-name {
    font-weight: 700;
    color: #111;
    font-size: 1rem;
    line-height: 1.3;
    min-height: 2.6em;
    /* Accommodate 2 lines of text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-name,
.author-name a {
    font-size: .9rem;
    color: #666;
    text-decoration: none;
}

.author-name a:hover {
    text-decoration: underline;
}

.price-info {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-current {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #000;
}

.price-original {
    text-decoration: line-through;
    margin-left: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: -1px;
    background-color: #f7475e;
    color: #fff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.badge-custom {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.badge-custom.badge-lectures {
    background-color: #e6e0f1;
    color: #5e4094;
}

.badge-custom.badge-book {
    background-color: #ddf0f1;
    color: #3a7a7f;
}

.badge-custom.badge-test_series {
    background-color: #f1e2dd;
    color: #7f5b3a;
}

.badge-custom.badge-pdf {
    background-color: #e2f1dd;
    color: #4b7f3a;
}

#product-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Ensure all items stretch to same height */
}

#product-list>div {
    display: flex;
    /* Make column containers flex */
    flex-direction: column;
}

@media (max-width: 991.98px) {
    #filterCollapse .filter-sidebar {
        background: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        padding: 25px 20px 30px;
        margin-top: 0;
    }

    #filterCollapse:not(.show) {
        display: none;
    }

    #filterCollapse.collapsing {
        transition: height 0.35s;
    }

    .img-card img {
        max-height: 180px;
    }

    .author-name,
    .product-name,
    .text-muted {
        font-size: 0.9rem;
    }

    .price-current,
    .price-original {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .include-header {
        padding-top: 20%;
    }

    .product-section {
        width: 100%;
    }

    .headline h2 {
        font-size: 1.5rem;
    }

    .headline p {
        font-size: 0.8rem;
    }

    .img-card {
        padding: 10% 6%;
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }

    .resp {
        margin-top: 2%;
    }
}

.page-link {
    border-radius: 6px !important;
    font-weight: 400 !important;
    transition: background-color 0.2s, color 0.2s;
    color: gray !important;
    background-color: transparent !important;
    border: none !important;
}

.page-item.active .page-link {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #000 !important;
    font-weight: 500 !important;
}

.product-card {
    position: relative;
}

.img-card {
    position: relative;
    overflow: visible;
}

.product-badge {
    position: absolute;
    padding: 4px 12px;
    height: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
    background: #FF4D7F;
    color: white;
    border-radius: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-wrap: balance;
}

/* HTML: <div class="ribbon">Your text content</div> */
.ribbon {
    font-size: 13px;
    padding-right: 2%;
    padding-left: 2%;
    /* font-weight: bold; */
    color: #fff;
}

.ribbon {
    --f: .5em;
    /* control the folded part*/
    --r: .8em;
    /* control the ribbon shape */

    position: absolute;
    top: 5px;
    right: calc(-0*var(--f));
    /* padding-inline: .29em; */
    line-height: 1.8;
    background: #e1535a;
    border-bottom: var(--f) solid #0005;
    border-left: var(--r) solid #0000;
    clip-path:
        polygon(0 0, 100% 0, 100% calc(100% - var(--f)), calc(100% - var(--f)) 100%,
            calc(100% - var(--f)) calc(100% - var(--f)), 0 calc(100% - var(--f)),
            var(--r) calc(50% - var(--f)/2));
}

/* new Reb */
/* HTML: <div class="ribbon">Your text content</div> */
.Tribbon {
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}

.Tribbon {
    --c: #d81a14;
    /* control the Tribbon shape (adjust each variable to understand what it does) */
    --a: 56deg;
    --r: 6deg;
    /* --s: 1.6em; */

    padding: .6em 1.3em;
    /* you may need to adjust this based on your content */
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    text-align: center;
    position: relative;
    z-index: 0;
    width: fit-content;
    box-sizing: border-box;
}

.Tribbon:before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: calc(50% - var(--s)/2) -150% auto;
    /* you can also adjust the 150% to control the shape */
    border-radius: 999px 999px 0 0;
    aspect-ratio: 2;
    border: var(--s) solid color-mix(in srgb, var(--c), #000 35%);
    border-bottom: none;
    clip-path: polygon(100% 0,
            calc(50% + 50%*cos(var(--a))) calc(100% - 100%*sin(var(--a))),
            calc(50% + (50% - var(--s)/2)*cos(var(--a) + var(--r))) calc(100% - (100% - var(--s)/2)*sin(var(--a) + var(--r))),
            calc(50% + (50% - var(--s))*cos(var(--a))) calc(100% - (100% - var(--s))*sin(var(--a))),
            50% 100%,
            calc(50% - (50% - var(--s))*cos(var(--a))) calc(100% - (100% - var(--s))*sin(var(--a))),
            calc(50% - (50% - var(--s)/2)*cos(var(--a) + var(--r))) calc(100% - (100% - var(--s)/2)*sin(var(--a) + var(--r))),
            calc(50% - 50%*cos(var(--a))) calc(100% - 100%*sin(var(--a))),
            0 0);
}

.Tribbon:after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(35% 35%, #0000 96%, #0003 97% 99%, #0000) var(--c);
    clip-path: polygon(100.00% 50.00%, 89.66% 55.22%, 98.30% 62.94%, 86.96% 65.31%, 93.30% 75.00%, 81.73% 74.35%, 85.36% 85.36%, 74.35% 81.73%, 75.00% 93.30%, 65.31% 86.96%, 62.94% 98.30%, 55.22% 89.66%, 50.00% 100.00%, 44.78% 89.66%, 37.06% 98.30%, 34.69% 86.96%, 25.00% 93.30%, 25.65% 81.73%, 14.64% 85.36%, 18.27% 74.35%, 6.70% 75.00%, 13.04% 65.31%, 1.70% 62.94%, 10.34% 55.22%, 0.00% 50.00%, 10.34% 44.78%, 1.70% 37.06%, 13.04% 34.69%, 6.70% 25.00%, 18.27% 25.65%, 14.64% 14.64%, 25.65% 18.27%, 25.00% 6.70%, 34.69% 13.04%, 37.06% 1.70%, 44.78% 10.34%, 50.00% 0.00%, 55.22% 10.34%, 62.94% 1.70%, 65.31% 13.04%, 75.00% 6.70%, 74.35% 18.27%, 85.36% 14.64%, 81.73% 25.65%, 93.30% 25.00%, 86.96% 34.69%, 98.30% 37.06%, 89.66% 44.78%);
    /* from https://css-generators.com/starburst-shape/ */
}


.badge-book {
    top: 15px;
    right: 15px;
    width: 90px;
    background-color: #010101;
}

.badge-hours {
    top: 15px !important;
    width: 90px;
    left: 15px;
    background-color: #357166;
}


.badge-attempts {
    bottom: 15px;
    left: 15px;
    width: 90px;
    background-color: #6a00ff;
}

/* Circular Hours Badge */
.badge-circle-hours {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 55px;
    height: 55px;
    background: forestgreen;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: badgePop 0.3s ease-out;
    transition: all 0.3s ease;
}

.badge-circle-hours .hours-number {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.badge-circle-hours .hours-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#pagination-container {
    justify-content: center;
}

/* Ribbon tails */
/* .product-badge::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 5px solid #D95566;
    border-right: 5px solid transparent;
} */

/* Tablet devices */
/* Large desktop screens */
@media (min-width: 1200px) {
    .badge-circle-hours {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;

    }

    .badge-circle-hours .hours-number {
        font-size: 15px;
    }

    .badge-circle-hours .hours-text {
        font-size: 10px;
    }
}

/* Desktop and small desktop screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .badge-circle-hours {
        width: 45px;
        height: 45px;
        bottom: 12px;
        left: 12px;
    }

    .badge-circle-hours .hours-number {
        font-size: 12px;
    }

    .badge-circle-hours .hours-text {
        font-size: 8px;
    }
}

/* Tablet devices */
@media (min-width: 768px) and (max-width: 991px) {
    .product-badge {
        padding: 3px 11px;
        height: 19px;
        font-size: 9.5px;
    }

    .badge-circle-hours {
        width: 55px;
        height: 55px;
        bottom: 10px;
        left: 10px;
    }

    .badge-circle-hours .hours-number {
        font-size: 16px;
    }

    .badge-circle-hours .hours-text {
        font-size: 10px;
    }

    .badge-book {
        top: 15px;
        right: 15px;
        width: 70px;
    }

    .badge-hours {
        top: 15px;
        width: 80px;
        left: 15px;
    }


    .badge-attempts {
        bottom: 15px;
        left: 15px;
        width: 75px;
    }

    .badge-circle-hours {
        width: 45px;
        height: 45px;
    }

    .badge-circle-hours .hours-number {
        font-size: 14px;
    }

    .badge-circle-hours .hours-text {
        font-size: 9px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .product-badge {
        padding: 3px 10px;
        height: 18px;
        font-size: 9px;
    }

    .badge-book {
        top: 15px;
        right: 15px;
        width: 70px;
    }

    .badge-hours {
        top: 15px;
        width: 70px;
        left: 15px;
    }


    .badge-attempts {
        bottom: 15px;
        left: 15px;
        width: 80px;
    }

    .product-badge::before {
        border-top-width: 4px;
        border-right-width: 4px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .product-badge {
        padding: 2px 10px;
        height: 18px;
        font-size: 9px;
    }

    .badge-circle-hours {
        width: 50px;
        height: 50px;
        bottom: 8px;
        left: 8px;
    }

    .badge-circle-hours .hours-number {
        font-size: 15px;
        margin-bottom: 1px;
    }

    .badge-circle-hours .hours-text {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    #pagination-container {
        justify-content: normal;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .badge-circle-hours {
        width: 38px;
        height: 38px;
        bottom: 5px;
        left: 5px;
    }

    .badge-circle-hours .hours-number {
        font-size: 12px;
        margin-bottom: 0;
    }

    .badge-circle-hours .hours-text {
        font-size: 7px;
    }
}

@keyframes badgePop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes badgePop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.package-builder-card {
    background: linear-gradient(135deg, #57baea 0%, #f05969 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 225px;
    transition: all 0.3s ease;
    border: none;
}

.package-builder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.package-builder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .package-builder-card h3{
        font-size: 1.5rem;
    }
    .package-builder-card p{
        font-size: 0.9rem;
    }
}
.price-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-details {
    display: flex;
    flex-direction: column;
}
.cashback-info {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
    margin-top: -5px;
}