.avd-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 2rem 0;
}

.avd-voucher {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.avd-voucher:hover {
    transform: translateY(-5px);
}

.avd-voucher h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.avd-voucher p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.avd-voucher a {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.avd-voucher a:hover {
    background: #005177;
}

.avd-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4081;
    color: #fff;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1;
}
.avd-voucher {
    position: relative;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.avd-voucher:hover {
    transform: scale(1.02);
}

.avd-voucher {
    position: relative;
    padding: 20px;
    color: white;
    background-color: rgba(0,0,0,0.5); /* fallback overlay */
    background-blend-mode: overlay;
    border-radius: 8px;
    margin-bottom: 20px;
}

.avd-voucher h3,
.avd-voucher p {
    position: relative;
    z-index: 2;
}

.avd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.voucher-perforated {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: repeating-linear-gradient(to bottom, #e5e7eb, #e5e7eb 4px, transparent 4px, transparent 8px);
}

/* Optional - ensure dropdown stays nice */
.sort-dropdown button {
  min-width: 160px;
}

.sort-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#filter-category-btn,
#filter-merchant-btn,
#filter-brand-btn {
  color: #2563eb;
}

.pill-active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

#filter-category-btn {
  color: #2563eb !important;
}

.voucher-card a {
    text-decoration: none !important;
}

/* Remove underline from the code */
.voucher-card a span {
    text-decoration: none !important;
}

/* Force CODE label uppercase */
.voucher-card a span::before {
    content: "CODE: ";
    text-transform: uppercase;
    color: #111;
    font-weight: 600;
    margin-right: 4px;
}

/* Pin View Offer button to bottom */
.voucher-card .p-4 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.voucher-card .p-4 > a:last-of-type {
    margin-top: auto;
}

.voucher-card::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed #ccc;
}

button#filter-category-btn.text-blue-600 {
  color: #2563eb !important;
}
