/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative; /* For hamburger menu positioning */
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

header nav ul.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header nav ul.nav-links li a:hover {
    color: #00bcd4;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    outline: none;
    font-size: 1rem;
    width: 80%; /* Take 80% of the row width */
    max-width: 400px; /* Limit maximum width for larger screens */
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    text-align: center; /* Center align the placeholder and text */
}

.search-box input::placeholder {
    color: #ccc; /* Placeholder text color */
}

.search-box input:focus {
    width: 90%; /* Expand slightly on focus */
    background-color: #000; /* Keep black background on focus */
    color: #fff; /* Keep white text on focus */
}

/* Mobile Search Icon */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Show hamburger menu icon */
    }

    header nav ul.nav-links {
        display: none; /* Hide menu by default */
        flex-direction: column;
        gap: 1rem;
        background-color: #1a1a1a;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 1rem;
        z-index: 1000;
    }

    header nav ul.nav-links.active {
        display: flex; /* Show menu when active */
    }

    .search-box {
        display: flex;
        justify-content: center; /* Center the search box */
        margin-left: 0;
        margin-top: 1rem;
    }

    .search-box input {
        width: 80%; /* Take 80% of the row width */
        background-color: #000; /* Black background */
        color: #fff; /* White text */
    }
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
}

.event-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Increased gap between cards */
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem; /* Added margin-bottom for extra spacing */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card.special-event {
    background-color: #000; /* Black background for special events */
    color: #fff; /* White text for special events */
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: inherit; /* Inherit color from parent */
    text-align: center;
}

.card .teams {
    display: flex;
    justify-content: space-between; /* Distribute items evenly */
    align-items: center; /* Align items vertically */
    margin-bottom: 1rem;
}

.card .teams .team-left,
.card .teams .team-right {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    flex: 1; /* Take equal space on both sides */
    text-align: center; /* Center align the team names */
}

.card .teams .vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00bcd4; /* Highlight "vs" with a different color */
    flex: 0 0 auto; /* Keep "vs" fixed in the center */
}

.card .time {
    font-size: 1rem;
    color: #00bcd4;
    text-align: center;
    margin-bottom: 0.5rem;
}

.card .channels {
    font-size: 0.9rem;
    color: #555;
    direction: ltr;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    font-size: 0.9rem;
}

.card .event-title {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 50px; /* Adjust height as needed */
    font-size: 1.2rem;
    font-weight: bold;
    color: inherit; /* Inherit color from parent */
}