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

body{
    background:#f8fafc;
    font-family:Arial,sans-serif;
}

/* =========================
   EVENTS HEADER
========================= */

.events-page-header{
    background:#2563eb;
    color:white;
    text-align:center;
    padding:80px 20px;
}

.events-page-header h1{
    font-size:42px;
    margin-bottom:10px;
}

.events-page-header p{
    font-size:18px;
}

/* =========================
   EVENTS SECTIONS
========================= */

.upcoming-events,
.previous-events{
    padding:40px 5%;
}

.upcoming-events h2,
.previous-events h2{
    text-align:center;
    margin-bottom:30px;
    font-size:32px;
}

/* =========================
   EVENTS GRID
========================= */

.events-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

/* =========================
   EVENT CARD
========================= */

.event-card{
    position: relative;
    background:white;
    border-radius:12px;
    overflow:hidden;
    text-decoration:none;
    color:black;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:0.3s;
}

.event-card-reg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ecfdf5;
    color: #047857;
    border: 1.5px solid #10b981;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.event-card:hover{
    transform:translateY(-5px);
}

.event-card img{
    width:100%;
    object-fit:initial;
    aspect-ratio: 16/9;
}

.event-card h3{
    padding:15px 15px 8px;
    font-size:20px;
}

.event-card p{
    padding:0 15px 15px;
    color:#555;
    font-size:14px;
}

/* =========================
   TABLET VIEW
========================= */

@media(max-width:768px){

    .events-page-header{
        padding:60px 15px;
    }

    .events-page-header h1{
        font-size:32px;
    }

    .events-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

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

    .upcoming-events,
    .previous-events{
        padding:20px 15px;
    }

}

/* =========================
   MOBILE VIEW
========================= */

@media(max-width:480px){

    .events-page-header h1{
        font-size:26px;
    }

    .events-page-header p{
        font-size:14px;
    }

    .upcoming-events h2,
    .previous-events h2{
        font-size:24px;
    }

    .events-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .event-card img{
        /* height:200px; */
    }

    .event-card h3{
        font-size:18px;
    }

}