.events-page__header {
    margin-top: 30px;
}


.home-page__search {
    width: 60%;
}


.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -----------------------------------------
   🎟️ Event Listing Layout
------------------------------------------ */
.events-listing {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 35px;
    padding: 40px 0 80px;
    min-height: 70vh;
}

/* -----------------------------------------
   ✨ Event Card — Final Professional Update
------------------------------------------ */
.event-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
    width: 420px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

/* 🖼️ Event Image */
.event-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* 📅 Floating Date Badge */
.event-date-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: linear-gradient(135deg, #d6336c, #ff7b54);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

/* 🧾 Event Body */
.event-body {
    padding: 1.3rem 1.4rem 1.6rem;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}



/* 🔖 Event Status */
.event-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 8px;
    color: #fff;
    letter-spacing: 0.4px;
}

.event-status.planning {
    background: linear-gradient(135deg, #ff9800, #ff6600);
}

.event-status.ongoing {
    background: linear-gradient(135deg, #28a781, #28a745);
}

.event-status.completed {
    background: linear-gradient(135deg, #6c757d, #4b5563);
}

/* 📝 Description */
.event-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
    margin: 0.8rem 0 1rem;
    max-width: 96%;
    min-height: 60px;
}

/* 📍 Meta Info */
.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    padding-top: 0.8rem;
    border-top: 1px solid #eee;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-meta i {
    color: #f90000;
    font-size: 0.95rem;
}

/* -----------------------------------------
   ⏳ Loading & No Results
------------------------------------------ */
.loading-container,
.no-results-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-container .spinner {
    width: 35px;
    height: 35px;
    border: 3px solid #ddd;
    border-top: 3px solid #d6336c;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-results-icon {
    font-size: 3rem;
    color: #f90000;
    margin-bottom: 15px;
}

.no-results-text {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* -----------------------------------------
   🔢 Pagination (Keep as is)
------------------------------------------ */
.pg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pg-pagination li a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: var(--fistudy-black);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pg-pagination li a:hover,
.pg-pagination li.active a {
    background-color: var(--fistudy-base);
    color: #fff;
}


@media (max-width: 480px) {

    .home-page__search {
        width: 90%;
    }

    .event-card {
        width: 100%;
        border-radius: 12px;
    }

    .event-title {
        font-size: 0.95rem;
    }

    /* .event-desc {
        display: none;
    } */

    .event-meta {
        font-size: 0.8rem;
    }
}