:root {
    --primary:#1a5276;
    --secondary:#e74c3c;
    --accent:#f39c12;
    --light:#f5f5f5;
    --dark:#333;
    --gray:#777;
}

/* Base Container */
.aeg-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero */
.aeg-hero {
    background: hsl(249,86%,22%);
    color:#fff;
    padding:80px 0;
    text-align:center;
}
.aeg-hero h2 {
    font-size:2.5rem;
    margin-bottom:15px;
    color:var(--accent);
}

/* Section Title */
.aeg-section-title {
    text-align:center;
    margin:40px 0;
    font-size:1.8rem;
    color:var(--dark);
}

/* Events Grid */
.aeg-events-grid {
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

/* Event Card */
.aeg-event-card {
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.06);
    transition:0.25s;
    cursor:pointer;
    display:flex;
    gap:20px;
    padding:16px;
}

.aeg-event-card:hover {
    transform:translateY(-6px);
    box-shadow:0 10px 30px rgba(0,0,0,0.10);
}

/* Image */
.aeg-event-image {
    width:180px;
    flex:0 0 180px;
}
.aeg-event-image img {
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:6px;
}

/* Info */
.aeg-event-info {
    flex:1;
}
.aeg-event-info h3 {
    font-size:1.25rem;
    margin:0 0 8px;
    color:var(--primary);
}
.aeg-event-meta {
    font-size:0.9rem;
    color:var(--gray);
    margin-bottom:8px;
}
.aeg-event-text {
    color:#444;
    line-height:1.6;
}

/* Modal */
.aeg-event-modal {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    z-index:10000;
    overflow-y:auto;
    padding:50px 20px;
    justify-content:center;
    align-items:flex-start;
}

.aeg-modal-inner {
    background:#fff;
    padding:20px;
    border-radius:10px;
    max-width:1000px;
    width:100%;
    animation:modalFade .25s ease-out;
}

@keyframes modalFade {
    from {opacity:0; transform:translateY(20px);}
    to {opacity:1; transform:translateY(0);}
}

/* Lightbox */
#aeg-lightbox {
    position:fixed;
    inset:0;
    display:none;
    background:rgba(0,0,0,0.92);
    z-index:20000;
    justify-content:center;
    align-items:center;
    cursor:zoom-out;
}

#aeg-lightbox img {
    max-width:90%;
    max-height:90%;
    border-radius:8px;
    animation:zoomIn .2s ease-out;
}

@keyframes zoomIn {
    from {transform:scale(.8); opacity:0;}
    to {transform:scale(1); opacity:1;}
}

/* Recent Event Details */
.aeg-event-details, .aeg-featured-event-content {
    display:flex;
    gap:25px;
    align-items:flex-start;
    margin-bottom:40px;
}

.aeg-event-details img,
.aeg-featured-event-image img {
    width:180px;
    height:auto;
    border-radius:8px;
    object-fit:cover;
}

.aeg-event-date, .event-date {
    font-size:0.95rem;
    margin-bottom:10px;
    color:#555;
}

.view-event-btn, .btn {
    display:inline-block;
    margin-top:12px;
    font-weight:600;
    color:var(--accent);
    text-decoration:none;
    padding:8px 12px;
    border-radius:6px;
    background:transparent;
    border:1px solid transparent;
    cursor:pointer;
}

.view-event-btn:hover, .btn:hover {
    color:#d35400;
}

/* RESPONSIVE */
@media (min-width:768px){
    .aeg-events-grid {
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:768px){
    .aeg-event-card {
        flex-direction:column;
    }
    .aeg-event-image {
        width:100%;
        flex:none;
    }
    .aeg-event-image img {
        height:220px;
    }

    .aeg-event-details, .aeg-featured-event-content {
        flex-direction:column;
        gap:15px;
        align-items:center;
        text-align:center;
    }

    .aeg-event-details img,
    .aeg-featured-event-image img {
        width:100%;
        max-width:260px;
        height:auto;
    }
}

/* ---------- MOBILE/RESPONSIVE FIXES ADDED ---------- */
/* Fix hero text overflow */
.aeg-hero h2 {
    font-size: 2rem;
    line-height: 1.3;
    word-break: break-word;
    padding: 0 10px;
}

@media (max-width:480px){
    .aeg-hero {
        padding: 50px 10px;
    }
    .aeg-hero h2 {
        font-size: 1.7rem;
    }
}

/* Fix recent event text layout */
.aeg-event-info h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    word-break: break-word;
}

.aeg-event-text {
    font-size: .95rem;
}

/* Extra fix for long titles */
.aeg-event-card h3 {
    word-break: break-word;
}

/* WhatsApp floating button safe spacing */
body {
    overflow-x: hidden;
}
.whatsapp_float {
    bottom: 80px;
    right: 15px;
    z-index: 9999;
}
/* ---------- END FIXES ---------- */
