/* Main Container Styles */
.vouchers-hero {
    background-color: var(--very-light-grey);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vouchers-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color),
        transparent);
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite reverse;
}

.vouchers-hero h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.vouchers-hero .lead {
    color: var(--dark-grey);
    font-size: 1.2rem;
}

.vouchers-info {
    background-color: var(--background-color);
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--very-light-grey);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    color: var(--dark-grey);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Voucher Display Section */
.vouchers-display {
    background-color: var(--very-light-grey);
    padding: 4rem 0;
}

.voucher-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.voucher-card {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    background: var(--background-color);
    border-radius: 15px;
    padding: 2.5rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* Add decoration background */
.voucher-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('/static/images/giftcard.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: transform 0.3s ease;
    z-index: 0;
}

/* Update hover effects */
.voucher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.voucher-card:hover::after {
    transform: scale(1.1);
}

/* Ensure content stays above background */
.voucher-amount,
.purchase-btn {
    position: relative;
    z-index: 1;
}

/* Remove the existing before pseudo-element or modify it */
.voucher-card::before {
    display: none; /* Remove the existing top border animation */
}

/* Update purchase button styles */
.purchase-btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border-radius: 25px;
    margin-top: auto;
    letter-spacing: 0.5px;
    min-width: 100px;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.purchase-btn:hover::before {
    left: 100%;
}

.purchase-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--background-color);
}

.voucher-amount {
    font-size: clamp(2rem, 2.5rem, 3vw);
    font-weight: bold;
    color: var(--primary-color);
    margin: auto 0;
    padding: 1rem 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@keyframes borderFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Add these new styles */
.voucher-help {
    padding: 6rem 0 8rem;
    margin-top: 2rem;
}

.help-email {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.help-email:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .voucher-help {
        padding: 4rem 0 6rem;
    }
    
    .help-email {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}
