/* HERO */
.events-hero {
    position: relative;
    height: 55vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('assets/img/event_bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.events-overlay {
    position: absolute;
    inset: 0;
}

.events-content {
    position: relative;
    color: white;
    z-index: 2;
}

.events-content h1 {
    font-size: 48px;
    font-weight: 600;
}

/* EVENTS SECTION */
.events-section {
    padding: 80px 10%;
}

/* ========================= */
/* HORIZONTAL TIMELINE */
/* ========================= */

.timeline-wrapper {
    position: relative;
    margin: 80px 0;
    padding: 80px 40px;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border-radius: 20px;
    overflow-x: auto;
}

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    position: relative;
    min-width: 900px;
}

.timeline-line {
    display: none;
}

.timeline-block {
    position: relative;
    text-align: center;
    width: 220px;
    z-index: 2;
    color: white;
}

.timeline-circle {
    width: 22px;
    height: 22px;
    background: #f57c00;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 0 6px rgba(245, 124, 0, 0.25);
}

.timeline-block h4 {
    margin: 10px 0 5px 0;
    font-weight: 600;
}

.timeline-block span {
    display: block;
    font-size: 15px;
    font-weight: 500;
}

.timeline-block p {
    font-size: 14px;
    color: #ccc;
    margin-top: 6px;
}

.timeline-block:hover .timeline-circle {
    transform: scale(1.2);
    transition: 0.3s ease;
}

/* EVENTS GRID */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* ========================= */
/* MODERN IMAGE EVENT CARDS */
/* ========================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 50px;
}

/* Card container */
.event-card {
    background: transparent;
    text-align: center;
}

/* Image wrapper */
.event-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

/* Image */
.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

/* Dark overlay */
.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
}

/* Text on image */
.event-content {
    position: absolute;
    bottom: 30px;
    left: 25px;
    right: 25px;
    color: white;
    text-align: left;
}

.event-content h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.event-meta i {
    color: #f57c00;
    margin-right: 6px;
}

/* Hover effects */
.event-card:hover .event-image {
    transform: translateY(-10px);
}

.event-card:hover img {
    transform: scale(1.05);
}

/* Register button under card */
.btn-event {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: #f57c00;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-event:hover {
    background: #ff9800;
    transform: translateY(-3px);
}

/* PAST EVENTS */
.past-events {
    padding: 80px 10%;
    background: #f9f9f9;
    text-align: center;
}

.past-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.past-card {
    background: white;
    padding: 30px 40px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}


/* =================================
RESPONSIVE RANGE SYSTEM
================================= */


/* SMALL LAPTOPS
901px — 1200px */
@media (min-width:901px) and (max-width:1200px){
.top-bar{
        font-size: 12px;
    }
  .events-content{
        margin-top: 121px;
    }
    .events-overlay
        {
            margin-top: 91px;
        }
    .events-section,
    .past-events{
        padding:70px 8%;
    }

    .timeline-horizontal{
        min-width:800px;
    }

}


/* TABLETS
769px — 900px */
@media (min-width:769px) and (max-width:900px){
.top-bar{
        font-size: 12px;
    }
   .events-content{
        margin-top: 121px;
    }

    .events-overlay
        {
            margin-top: 91px;
        }
    .events-content h1{
        font-size:38px;
    }

    .timeline-wrapper{
        padding:60px 30px;
    }

    .timeline-horizontal{
        min-width:750px;
    }

    .events-grid{
        grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
        gap:40px;
    }

}


/* LARGE PHONES
481px — 768px */
@media (min-width:481px) and (max-width:768px){
.top-bar{
        font-size: 12px;
    }
  .events-content{
        margin-top: 121px;
    }

    .events-overlay
        {
            margin-top: 91px;
        }
    .events-hero{
        height:45vh;
    }

    .events-content h1{
        font-size:32px;
    }

    .events-section{
        padding:60px 8%;
    }

    .timeline-wrapper{
        padding:50px 25px;
    }

    .timeline-horizontal{
        min-width:650px;
    }

    .event-image{
        height:260px;
    }

}


/* SMALL PHONES
0px — 480px */
@media (max-width:480px){
.top-bar{
        font-size: 12px;
    }
  .events-content{
        margin-top: 121px;
    }

    .events-overlay
        {
            margin-top: 91px;
        }
    .events-hero{
        height:40vh;
    }

    .events-content h1{
        font-size:26px;
    }

    .events-section{
        padding:50px 6%;
    }

    .timeline-wrapper{
        padding:40px 20px;
    }

    .timeline-horizontal{
        min-width:600px;
    }

    .event-image{
        height:220px;
    }

    .event-content h3{
        font-size:18px;
    }

    .event-meta{
        font-size:13px;
    }

    .btn-event{
        padding:10px 24px;
        font-size:14px;
    }

}
/* =========================================
   EVENTS EXPERIENCE
========================================= */

.events-layout{

    display: grid;

    grid-template-columns:
    320px 1fr;

    gap: 30px;

    margin-top: 60px;
}

/* =========================================
   SIDEBAR
========================================= */

.events-sidebar{

    background: #111;

    border-radius: 18px;

    padding: 25px;

    height: fit-content;

    border:
    1px solid rgba(255,255,255,0.08);
}

.events-sidebar h3{

    margin-bottom: 25px;

    color: orange;
}

.sidebar-event{

    background: rgba(255,255,255,0.04);

    padding: 18px;

    border-radius: 14px;

    margin-bottom: 16px;

    cursor: pointer;

    transition: 0.3s ease;

    border:
    1px solid transparent;
}

.sidebar-event:hover{

    border-color: orange;

    transform: translateX(5px);
}

.sidebar-event h4{

    margin-bottom: 8px;

    color: white;
}

.sidebar-event span{

    color: #bbb;

    font-size: 14px;
}

.active-event{

    border-color: orange;

    background:
    rgba(255,140,0,0.08);
}

/* =========================================
   FEATURED PANEL
========================================= */

.featured-event-panel{

    background: #111;

    border-radius: 22px;

    overflow: hidden;

    border:
    1px solid rgba(255,255,255,0.08);
}

.featured-event-image{

    width: 100%;
    height: 420px;

    object-fit: cover;
}

.featured-event-content{

    padding: 35px;
}

.featured-badge{

    display: inline-block;

    padding: 8px 18px;

    background: orange;

    color: black;

    border-radius: 50px;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 20px;
}

.featured-event-content h2{

    font-size: 38px;

    margin-bottom: 20px;

    color: white;
}

.featured-meta{

    display: flex;

    gap: 25px;

    flex-wrap: wrap;

    margin-bottom: 25px;

    color: #ccc;
}

.featured-event-content p{

    color: #ddd;

    line-height: 1.8;

    margin-bottom: 30px;
}

.featured-buttons{

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.btn-facebook{

    background: #1877f2;

    color: white;

    padding: 14px 24px;

    border-radius: 10px;

    text-decoration: none;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:900px){

    .events-layout{

        grid-template-columns: 1fr;
    }

    .featured-event-image{

        height: 260px;
    }

    .featured-event-content h2{

        font-size: 28px;
    }
}