*, *::before, *::after {
    box-sizing: border-box;
}


:root {
    --background-color: #f8f9fa;
    --text-color: #333;
    --banner-background: linear-gradient(90deg, #ff9900, #ffcc00);
    --card-background: #fff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --banner-text-color: #fff;
    --link-color: #007bff;
    --button-background: #007bff;
    --button-text-color: #fff;
}

.category-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    justify-items: center;
}

.category-card {
    background-color: var(--card-background);
    border-radius: 5px;
    box-shadow: 0 4px 8px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
width: 100%; 
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--card-shadow);
}

.category-card .img-wrapper {
    width: 100%;
    padding-top: 55%; 
    position: relative;
    overflow: hidden;
}

.category-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}

.category-card a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-card a:hover {
    text-decoration: none;
    color: inherit;
}

.category-card .category-name {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
    padding: 10px 0;
    margin: 0;
    border-top: 1px solid #ccc;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .category-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-card .category-name {
        font-size: 0.9rem !important;
        padding: 8px 0;
    }
}

@media (min-width: 1024px) {
    .category-row {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
        justify-items: center;
    }

    .category-card {
        max-width: 310px;
    }
}
.custom-pagination{
  border-radius: 40px;
  background-color: #e9e9e9;
  padding: 3px 6px;
  box-shadow: none;
  border: none;
  display: flex;
  align-items: center;
  list-style: none;
}

.custom-pagination .page-item{
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-pagination .page-link-button{
  border: none;
  background-color: transparent;
  color: #333;
  padding: 6px 10px;
  font-size: 1em;
  font-weight: 500;
  line-height: 1;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.custom-pagination .page-item.active .page-link-button{
  color: #fff;
  background-color: #ff6600;
  font-weight: 600;
  padding: 0;
}

.custom-pagination .page-item:not(.active) .page-link-button:hover{
  color: #ff6600;
  background-color: rgba(255, 102, 0, 0.1);
}

.custom-pagination .page-item:first-child .page-link-button,
.custom-pagination .page-item:last-child .page-link-button{
  color: #666;
  font-size: 1.2em;
  padding: 6px 8px;
}