.ahw-latest-event{
    display:grid;
    grid-template-columns:450px 1fr;
    gap:40px;
    align-items:center; /* Center both columns vertically */
}

.ahw-latest-event h3 {
    font-size: 25px;
    margin: 0;
    padding: 20px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 0 0 10px 10px;
    text-align: center;
}

.ahw-latest-event .event-image img{
    width:100%;
    height:auto;
    display:block;
     border-radius: 10px 10px 0 0;
}

/* Content */
.ahw-latest-event .content{
    display:flex;
    flex-direction:column;
    height:100%;
}

.ahw-latest-event h2{
    margin:0 0 20px;
    font-size:32px;
    line-height:1.3;
    font-weight:700;
}

.ahw-latest-event p{
    margin:0 0 12px;
    font-size:16px;
    line-height:1.6;
    color:#555;
}

.ahw-latest-event p strong{
    color:#222;
}

/* Overview */
.ahw-event-overview{
    margin-bottom:30px;
}

.ahw-event-overview h4{
    margin:0 0 12px;
    font-size:22px;
    color:#222;
}

.ahw-event-overview .overview-text{
    line-height:1.8;
    color:#555;
    font-size:16px;
}

/* Register Button */
.ahw-latest-event a{
    margin-top:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    padding:14px 28px;
    background: var(--e-global-color-primary);
    color:#000000;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
	text-transform: uppercase;
}

.ahw-latest-event a:hover{
    background:var(--e-global-color-accent);
}

/* Tablet */
@media (max-width:991px){

    .ahw-latest-event{
        grid-template-columns:1fr;
        gap:30px;
        padding:30px;
    }

    .ahw-latest-event h2{
        font-size:28px;
    }

}

/* Mobile */
@media (max-width:767px){

    .ahw-latest-event{
        padding:20px;
    }

    .ahw-latest-event h2{
        font-size:24px;
    }

    .ahw-latest-event p{
        font-size:15px;
    }

    .ahw-event-overview h4{
        font-size:20px;
    }

    .ahw-latest-event a{
        width:100%;
        text-align:center;
    }

}
/* ===========================
   Event Layout
=========================== */

.ahw-events-layout{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.ahw-events-content{
    flex:1;
}

.ahw-events-sidebar{
    width:300px;
    flex-shrink:0;
    background:#000;
    color:#fff;
    padding:24px;
    border-radius:10px;
}

/* ===========================
   Tabs
=========================== */

.ahw-event-tabs{
    display:flex;
    gap:10px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.ahw-event-tabs button{
	color: #000000;
    padding:12px 24px;
    border:0;
    cursor:pointer;
    background:#eee;
    font-weight:600;
    transition:.3s;
}

.ahw-event-tabs button:hover{
    background:#ddd;
}

.ahw-event-tabs button.active{
    background:var(--e-global-color-primary);
    color:#fff;
}

/* ===========================
   Event Grid
=========================== */

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

/* ===========================
   Event Card
=========================== */

.ahw-event-card{
    border:1px solid #eee;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
    display:flex;
    flex-direction:column;
    transition:.3s;
}

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

.ahw-event-card:hover{
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transform:translateY(-3px);
}

.ahw-event-card img{
    width:100%;
    display:block;
    object-fit:cover;
}

.ahw-event-card .content{
    padding:20px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.ahw-event-card a{
    display:inline-block;
    margin-top:auto;
    padding:12px 20px;
    background:var(--e-global-color-primary);
    color:#000000;
    text-decoration:none;
    text-align:center;
    transition:.3s;
	font-weight: bold;
	text-transform: uppercase;
}

.ahw-event-card a:hover{
    background:var(--e-global-color-accent);
}

/* ===========================
   Sidebar Filters
=========================== */

.event-location-filter label{
    display:block;
    margin-bottom:12px;
    cursor:pointer;
}

.event-location-filter input{
    margin-right:8px;
}

/* ===========================
   Responsive
=========================== */

/* Laptop */
@media (max-width: 1200px){

    .ahw-events-grid{
        grid-template-columns:repeat(3, 1fr);
    }

}

/* Tablet */
@media (max-width: 1024px){

    .ahw-events-layout{
        gap:30px;
    }

    .ahw-events-sidebar{
        width:260px;
    }

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

}

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

    .ahw-events-layout{
        flex-direction:column;
    }

    .ahw-events-sidebar{
        width:100%;
        margin-bottom:25px;
    }

    .ahw-events-content{
        width:100%;
    }

    .ahw-events-grid{
        grid-template-columns:1fr;
    }

    .ahw-event-tabs{
        gap:8px;
    }

    .ahw-event-tabs button{
        flex:1;
        min-width:140px;
        padding:12px;
    }

}

/* Small Phones */
@media (max-width:480px){

    .ahw-events-sidebar{
        padding:18px;
    }

    .ahw-event-card .content{
        padding:16px;
    }

    .ahw-event-tabs button{
        width:100%;
        flex:none;
    }

}