* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

nav {
    background-color: #444;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 1rem 0;
    width: 80%;
    max-width: 1200px;
    justify-content: space-between;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

nav a.active {
    background-color: #e74c3c;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 3px solid #333;
    padding-bottom: 10px;
}

.events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-banner {
    height: 180px;
    background-color: #e74c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    text-align: center;
}

.event-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.event-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: white;
    color: #e74c3c;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.event-details {
    padding: 20px;
}

.event-details h3 {
    margin-bottom: 10px;
    color: #333;
}

.event-details p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.event-location {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.event-location::before {
    content: "📍";
    margin-right: 5px;
}

.button {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #b30000;
}

.register-button {
    text-align: right;
}

.section-heading {
    color: #333;
    margin: 40px 0 20px;
    text-align: center;
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #e30613;
    margin: 10px auto;
}

.tournament-info {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #e30613;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .events {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}
