/* Base Styles
   ========================================================================== */

/* General reset for consistent box-sizing across all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles for consistent typography, background, and layout */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling site-wide */
}

/* Container for consistent page layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero section background pattern used in index, active raffles, and tickets pages */
.hero-pattern {
    background-color: #0f766e;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Countdown item styling used in index, active raffles, and tickets pages */
.countdown-item {
    background: linear-gradient(145deg, #ea580c, #fb923c); /* orange-600 to orange-400 */
}

/* Accessibility focus styles for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Active tab styling for ticket/prizes/info tabs */
.tab-active {
    color: #0f766e;
    border-bottom: 3px solid #0f766e;
}

/* Utility class for hiding elements */
.hidden {
    display: none;
}

/* Generic card style for winners, payment methods, and other card-based layouts */
.card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Generic card image styling */
.card img {
    max-width: 100px;
    max-height: 50px;
    margin-bottom: 0.5rem;
    border-radius: 50%; /* For winner images; override for payment icons */
}

/* Generic form styling for contact and other forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-container input,
.form-container textarea {
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 0.5rem;
    width: 100%;
}
.bills {
    position: absolute;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #a0e75a, #6bbf44);
    border: 1px solid #4a7c2b;
    border-radius: 6px;
    animation: bill-fall 5s ease-in-out infinite;
    opacity: 0.9;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}
.bills::before {
    content: "$";
    width: 20px;
    height: 20px;
    border: 2px solid #2e5720;
    color: #2e5720;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
@keyframes bill-fall {
    0% {
        transform: translateY(-100px) rotateY(0deg) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateY(360deg) rotateZ(180deg);
        opacity: 0;
    }
}
.payment-card {
    transition: all 0.3s ease;
}
.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.copy {
    cursor: pointer;
    position: relative;
}
.copy-message {
    position: absolute;
    background-color: #0f766e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    transform: translateY(-10px);
}
.copy-message.show {
    opacity: 1;
}
        .winner-card {
            transition: all 0.3s ease;
        }
        .winner-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
                .trophy-icon {
            filter: drop-shadow(0 0 3px rgba(234, 179, 8, 0.5));
        }
        .winner-badge {
            position: absolute;
            top: -15px;
            right: -15px;
            z-index: 10;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        .prize-icon {
            transition: all 0.3s ease;
        }
        .winner-card:hover .prize-icon {
            transform: scale(1.1) rotate(5deg);
        }