h2.category-title {
    font-size: 1.8rem;
    border-radius: 6px;
    color: rgb(255, 255, 255);
    width: auto;
    padding: 8px;
    padding-left: 18px;
    padding-right: 18px;
    background-color: #b42121d2;
}

h2.category-title.clearance {
    color: rgb(255, 255, 255);
    background-color: #198cb6;

}

@media (max-width: 767px) {
    h2.category-title {
        width: 100%;
    }
}

.circular-button {
    align-items: center;
    /* Centers content horizontally */
    text-align: center;
    width: 50px;
    height: 34%;
    background-color: #616161;
    color: #f0f0f0;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    line-height: 1.1;
}

.circular-button strong {
    font-size: 1.5rem;
    color: #fff;
}

.circular-button:hover {
    background-color: #535353;
}

#seeMoreButton {
    display: flex;
    justify-content: center;
    /* Centers container horizontally */
    align-items: center;
    /* Centers container vertically */
    text-align: center;
    padding: 0 !important;
}

#seeMoreButton p {
    margin: 0 !important;
}

.return-button {
    background-color: black;
    color: white;
    border-radius: 10px;
}

.return-button:hover {
    background-color: rgb(0, 0, 0);
    color: white;
}

.return-button:active {
    background-color: rgb(0, 0, 0) !important;
    color: white !important;
    border: 1px solid rgba(0, 0, 0, 1) !important;
}

.return-button a {
    color: white;
    transition: color 0.1s ease;
}

.return-button a:hover {
    color: rgb(209, 56, 56);
}

/* Active page item */
.pagination .numbers.page-item.active .page-link {
    background-color: rgb(172, 1, 1) !important;
    border-color: rgb(172, 0, 0) !important;
    color: white;
}

/* Disabled page item */
.pagination .arrows.page-item.disabled .page-link {
    background-color: rgb(218, 218, 218) !important;
    border-color: rgb(211, 211, 211) !important;
    color: #505050;
}

/* Disabled page item */
.pagination .arrows.page-item .page-link {
    color: rgb(151, 0, 0);
}

/* Not active page items */
.pagination .numbers.page-item .page-link {
    color: rgb(151, 0, 0);
}

.top-pagination .pagination-numbers {
    display: none !important;
}

.main-category-title {
    font-weight: bold;
    font-size: 3rem;
}

.main-category-title h2 {
    margin-bottom: 0 !important;
}

#maincontent {
    margin-top: 20px !important;
}

#category-link {
    text-decoration: none !important;
}

.category-card {
    padding: 0 16px 0 16px !important;
}

#category-item {

    height: 100%;

    /* Ensure entire card is wrapped with the link */
    .card-link {
        text-decoration: none;
        color: inherit;

    }

    .card-link:hover .card {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-5px);
    }

    /* Card image styling */
    .card-img-top {
        height: 200px;
        width: 100%; /* Ensure the image fills the width of the card */
        object-fit: contain; /* Ensure the image fits entirely within the height and width */
        border-radius: 5px 5px 0 0;
    }

    /* Title and text alignment */
    .card-body h5 {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0 !important;
    }

    .card-body p {
        font-size: 1rem;
        color: #666;
    }

    .card-body {
        border-left: rgb(243, 243, 243) solid 1px !important;
        border-right: rgb(243, 243, 243) solid 1px !important;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Footer area styling */
    .card-footer {
        background-color: #b42121e1;
        color: #f0f0f0;
        padding: 10px;
        transition: background-color 0.3s ease;
        border: none;
        font-weight: bold;
    }

    .card-footer.clearance {
        background-color: #199ac9;
        color: #f0f0f0;
    }

    .card:hover .card-footer.clickable-footer {
        background-color: #a51d1d;

    }

    .card:hover .card-footer.clickable-footer.clearance {
        background-color: #198cb6;
        color: #f0f0f0;
    }

    /* Responsive Design Adjustments */
    @media (max-width: 767px) {
        .card-img-top {
            height: 150px;
        }

        .card-body h5 {
            font-size: 1.2rem;
        }

        .card-body p {
            font-size: 0.9rem;
        }
    }

    /* Additional Styles */
    .card {
        border: none;
        border-radius: 5px;
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        margin-bottom: 1.2rem;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}