.auctions-inner {
    position: relative;
    height: 47rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:white;
    background-position: center;
}

.auctions-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #28489A 0%, #4680F7 100%);
    z-index: 1;
    pointer-events: none;
}
.auctions-inner h1 {
    font-size: 4.8rem;
}

.auctions-holder {
    padding-top: 0;
}

.auctions-holder h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.auctions-holder .filter-list {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    overflow: auto;
    padding-bottom: 1.5rem;
}

.auctions-holder .filter-list button {
    padding:.5rem;
    min-width: 12rem;
    text-align: center;
}

.auctions-holder .filter-list  .list-btn ,
.auctions-holder .filter-list  .map-btn  {
    font-size: 1.5rem;
    border-radius: .5rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}
.auctions-holder .filter-list  .list-btn {
    background-color: var(--primary-color);
    color:white;
}
.auctions-holder .filter-list  .map-btn {
    color:var(--primary-color);
}
.auctions-holder .filter-list .reg-btn {
    border: 1px solid black;
    border-radius: 1.5rem;
}


.auctions-holder section {
    --gap: 4rem;
    --num-cols: 4;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr);
    gap: var(--gap);
    margin-top: 5rem;
}


.auctions-holder section article {
    box-shadow: 0px 2px 11px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 1rem;
    padding-bottom: 1.5rem;
}
.auctions-holder section article .img {
    height: 20rem;
}
.auctions-holder section article img {
    height: 100%;
    object-fit: cover;
}
.auctions-holder section article h3 ,
.auctions-holder section article .bid-holder {
    margin:auto;
    text-align: center;
    padding: 1.5rem;
}
.auctions-holder section article h3 {
    font-size: 1.8rem;
    text-transform: inherit;
}
.bid-holder {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

.bid-holder button, .bid-holder a {
    
    width: max-content;
    padding: 1rem;
    font-size: 1.6rem;
    border-radius: .5rem;
}
.bid-holder button {
    background-color: var(--orange-color);
	cursor: default;
}
.bid-holder a {
    background-color: var(--primary-color);
    font-weight: 600;
    color:white;
    display: block;
}
.bid-holder div {
    margin: 1.5rem 0;
}


.pagination {
    display: flex;
	flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.pagination button {
    border: 1px solid;
    padding: 1rem;
    width: fit-content;
    font-size: 1.8rem;
    margin-top: 4rem;
}

.pagination button.cur {
    border-color: var(--primary-color);
    font-weight: 600;
    color:white;
    background-color: var(--primary-color);
}
.auctions-holder h2 {
    text-align: center;
}
.clamp-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 3.9em;
  line-height: 1.6em;
}

/*  ========================= Pagination =========================== */
   .pagination-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 100px;
}

.pag-btn {
    background-color: white;
    color: #0B1215;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.pag-btn:hover:not(.disabled):not(.active) {
    background-color: #f0f0f0;
}

.pag-btn.active {
    background-color: #000;
    color: white;
    font-weight: bold;
    border-color: #000;
}

.pag-btn.disabled {
    color: #aaa;
    border-color: #eee;
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.ellipsis {
    display: inline-block;
    padding: 6px 12px;
    color: #666;
    font-size: 14px;
}
/*  ========================= Pagination =========================== */

@media (max-width:1440px){
.auctions-holder section {
    --num-cols: 4;
}
}

@media (max-width:1199px){
.auctions-holder section {
    --num-cols: 2;
}
}

@media (max-width:767px){
    .auctions-holder section {
        --num-cols: 1;
    }
    .auctions-inner h1 {
        font-size: 3rem;
    }
    .auctions-inner {
        height: 35rem;
    }
    .section-padding {
        padding:2.5rem 1.5rem;
    }
    .auctions-holder .filter-list {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem;
        overflow: visible;
        flex-wrap: nowrap;
    }
    .auctions-holder .filter-list button {
        padding: 0.5rem 0.15rem;
        font-size: 1.1rem;
        min-width: 0;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Hide categories after 8th on mobile */
    .auctions-holder .filter-list button:nth-child(n+9) {
        display: none;
    }
}