/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Noto Sans Tamil', sans-serif;
    background: linear-gradient(to bottom, #2c0d00, #8b0000);
    color: white;
}

/* NAVBAR */
.navbar {
    background: #3b1d0a;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: gold;
    font-size: 20px;
}

/* MENU */
.nav {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: white;
}

.nav a:hover {
    color: gold;
}

.nav a.active {
    color: gold;
    border-bottom: 2px solid gold;
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

/* OVERLAY */
.overlay-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    display: none;
    z-index: 999;
}

.overlay-bg.active {
    display: block;
}

/* EVENTS */
.events-section {
    padding: 60px 20px;
    text-align: center;
}

.events-section h1 {
    margin-bottom: 40px;
}

/* GRID (🔥 MAIN FIX) */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

/* CARD */
.event-card {
    display: block;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

/* IMAGE FIX */
.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* TEXT OVERLAY */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: center;
    font-weight: bold;
    color: white;
}

/* HOVER */
.event-card:hover img {
    transform: scale(1.05);
}

/* FOOTER */
footer {
    background: black;
    padding: 20px;
    text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background: black;
        flex-direction: column;
        padding-top: 80px;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav li {
        margin: 20px 0;
        text-align: center;
    }

    .nav.active {
        right: 0;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-card img {
        height: 180px;
    }
}
