@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    background-image: url(bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Poetsen One', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header h1 {
    font-size: 2rem;
    color: #e35222;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.card-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    min-height: 400px; /* Added a minimum height for uniformity */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 6%;
    display: flex;
    flex-direction: column; /* Ensure the content stacks properly */
    justify-content: space-between; /* Distribute content evenly */
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: #e4b313;
    color: white;
    padding: 15px;
    text-align: left;
}

.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.card-header p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #252121;
}

.card-body {
    padding: 15px;
    text-align: left;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Ensures body takes up remaining space */
}

.card-tagline {
    margin-top: 2%;
}

.event-image {
    max-width: 250px;
    height: auto;
}

.events-section {
    margin-bottom: 40px;
}

.section-header {
    background-color: #FFD700;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center; /* Center grid items */
    align-items: stretch; /* Ensure all cards stretch to match the tallest card */
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%; /* Ensure the card doesn't exceed container width */
}

.event-card:hover {
    transform: translateY(-5px);
}

.payment-button {
    background-color: #FFD700;
    color: #333;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    flex-direction: row;         /* Make buttons appear in a row */
    flex-wrap: wrap;             /* Allow wrapping if needed */
    gap: 12px;                   /* Horizontal & vertical space between buttons */
    margin-top: 10px;
}

.payment-button:hover {
    background-color: #FFC800;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.contact-section {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info img {
    width: 20px;
    height: 20px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr; /* Single-column layout */
        padding: 10px;
    }

    .event-card {
        margin: 0 auto; /* Center cards horizontally */
    }
}
