/* ===== LgPagination - thanh phân trang số (Premium Gold Theme) ===== */
.lg-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.lg-pagination .page-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lg-pagination .page-link {
    --_size: 40px;
    min-width: var(--_size);
    height: var(--_size);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 162, 51, 0.2); /* Soft gold border */
    border-radius: 8px; /* Slightly squared for a modern look */
    background: #ffffff;
    color: #5c4f2e; /* Darker, sophisticated brown-gold text */
    font-weight: 600;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(135, 98, 8, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Micro-animation */
.lg-pagination .page-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(201, 162, 51, 0.08), rgba(184, 134, 11, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.lg-pagination .page-link > * {
    position: relative;
    z-index: 1;
}

.lg-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    color: #b8860b;
    border-color: rgba(201, 162, 51, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(184, 134, 11, 0.12), 0 2px 4px rgba(184, 134, 11, 0.08);
}

.lg-pagination .page-item:not(.active):not(.disabled) .page-link:hover::before {
    opacity: 1;
}

.lg-pagination .page-link:focus-visible {
    outline: 2px solid #b8860b;
    outline-offset: 3px;
}

/* Trang hiện tại (Active State) */
.lg-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(184, 134, 11, 0.4), inset 0 1px 1px rgba(255,255,255,0.3);
    cursor: default;
    transform: scale(1.05);
    font-weight: 700;
}

/* Nút mũi tên ‹ › : tròn nhỏ */
.lg-pagination .lg-page-arrow .page-link {
    --_size: 38px;
    min-width: var(--_size);
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    background: #faf8f5;
}

/* Nút bị khóa (‹ › ở đầu/cuối, dấu …) */
.lg-pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
    color: #d1c7b3;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.lg-pagination .page-item.disabled span.page-link {
    /* For the ellipsis '...' */
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
    .lg-pagination .page-link {
        --_size: 34px;
        font-size: 0.85rem;
        padding: 0 8px;
    }
    .lg-pagination .lg-page-arrow .page-link {
        --_size: 34px;
    }
    .lg-pagination .pagination {
        gap: 6px;
    }
}
