/* Events Index Page Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1600') center/cover no-repeat;
    padding: 100px 40px 120px;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 22px;
    margin-bottom: 0;
    opacity: 1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-container {
    max-width: 1200px;
    margin: -40px auto 30px;
    background: white;
    border-radius: 50px;
    padding: 12px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    align-items: center;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.search-container input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    min-width: 250px;
    border-radius: 25px;
    background: #f8f9fa;
}

.search-container input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #4c5fd5 inset;
}

.search-container select {
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 15px;
    background: #f8f9fa;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.search-container select:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #4c5fd5 inset;
}

.search-btn {
    background: #4c5fd5;
    color: white;
    border: none;
    padding: 15px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #3a4ba3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 95, 213, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* Events Section */
.events-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.section-header p {
    color: #777;
    font-size: 14px;
}

.month-section {
    margin-bottom: 56px;
}

.month-header {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e8e8;
}

/* .event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
} */
.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.past-events-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Hover effect */
.past-events-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* .event-image { 
    width: 100%; 
    height: 200px; 
    background: linear-gradient(135deg, #667eea, #764ba2); 
    background-size: cover; 
    background-position: center;
    position: relative;
} */
.event-image {
    width: 100%;
    height: 200px;
    /* fixed height */
    background-size: contain;
    /* 👈 FULL image, no crop */
    background-position: center;
    background-repeat: no-repeat;
    /* 👈 no repeat */
    background-color: #f5f5f5;
    /* optional side space color */
    position: relative;
}

.event-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-placeholder-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    word-wrap: break-word;
}

.event-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-badge-event {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.event-badge-members {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

.event-content {
    padding: 20px;
}

.event-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 50px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-meta i {
    color: #5B6FE0;
    width: 16px;
    font-size: 14px;
}

.event-price-tag {
    font-size: 16px;
    font-weight: 700;
    color: #5B6FE0;
    margin-top: 4px;
}

.event-price-free {
    color: #00A86B;
}

.event-rsvp-btn {
    background: #5B6FE0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.event-rsvp-btn:hover {
    background: #4a5acf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 111, 224, 0.3);
}

/* No Events */
.no-events {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-events h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    background: white;
    color: #5B6FE0;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e8e8e8;
    font-size: 14px;
}

.pagination a:hover {
    background: #5B6FE0;
    color: white;
    border-color: #5B6FE0;
}

.pagination .active span {
    background: #5B6FE0;
    color: white;
    border-color: #5B6FE0;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 100px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .search-container {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        margin: -30px 20px 20px;
    }

    .search-container input,
    .search-container select,
    .search-btn {
        width: 100%;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .events-section {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }
}