@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Chakra+Petch:wght@600&display=swap');

:root {
    --primary: #00c3ff;
    --secondary: #00d4ff;
    --dark: #000c14;
    --light: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 16px;
  }
  
  ::-webkit-scrollbar-track {
    background: #000c14;
    border-radius: 10px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #007bff, #00bfff);
    border-radius: 10px;
    border: 2px solid #000c14;
    cursor: pointer;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #0056b3, #0080ff);
  }
  
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    margin-top: 20px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.event-banner {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-content {
    padding: 1.5rem;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.event-card:hover .event-banner img {
    transform: scale(1.05);
}

.event-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0; /* Ensure no top margin for h3 */
}

.event-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}


.event-info i {
    color: var(--primary);
}

.event-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 10px; /* Reduced margin to control space */
}
.event-status.coming {
    background: rgba(255, 165, 0, 0.2);
    color: #cbe977;
    border: 1px solid #d3fa68;
    font-family: 'Chakra Petch', sans-serif;
}

.event-status.ongoing {
    background: rgba(0, 128, 0, 0.2);
    color: #77e9b0;
    border: 1px solid #4b9470;
    font-family: 'Chakra Petch', sans-serif;
}

.event-status.ended {
    background: rgba(255, 0, 0, 0.2);
    color: #e97777;
    border: 1px solid #f58a8a;
    font-family: 'Chakra Petch', sans-serif;
}

.event-status:hover {
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.inline-text {
    display: inline;
}

.prize-pool {
    background: rgba(0, 195, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: inline-block;
}

.tag-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tag {
    background: rgba(0, 195, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
}


@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .event-banner {
        height: 160px;
    }
}