/* All Events Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #F3F2EC;
    line-height: 1.6;
    /* user-select: none; */
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.filter-section {
    padding: 20px 0px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    gap: 0;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 0;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    width: 280px;
    flex: 1;
    text-align: center;
}


.filter-btn.active {
    background: #003366;
    color: white;
}

.filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.3);
}

.events-table-container {
    overflow: hidden;
    margin-bottom: 30px;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #003366;
}

.events-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border: 1px solid #003366;
    font-size: 14px;
}

.events-table td {
    padding: 15px;
    border: 1px solid #003366;
    vertical-align: top;
}

.events-table tr:hover {
    background: #f8f9fa;
}

.serial-number {
    font-weight: 600;
    color: #003366;
    text-align: center;
    width: 50px;
}

.event-name {
    max-width: 300px;
}

.event-name strong {
    font-size: 16px;
    color: #333;
}

.event-link {
    text-decoration: none;
    color: #003366;
    transition: all 0.3s ease;
    display: inline-block;
}

.event-link:hover {
    color: #0056b3;
    transform: translateY(-1px);
    text-decoration: underline;
}

.event-link strong {
    color: inherit;
}

.event-date,
.start-time {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.location {
    max-width: 200px;
}

.no-location {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

.organizer {
    font-weight: 500;
    color: #333;
}

.back-to-home {
    text-align: center;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #003366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
    text-decoration: none;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    color: black;
    border-radius: 10px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* Responsive design */
@media (max-width: 1400px) {
    .filter-buttons {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .filter-btn {
        width: auto;
        min-width: 200px;
    }
}

@media (max-width: 992px) {
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    .filter-btn {
        width: 100%;
        border-radius: 25px !important;
        border: 2px solid #e9ecef !important;
    }
    
    .filter-btn:not(:last-child) {
        border-right: 2px solid #e9ecef !important;
    }
}

@media (max-width: 768px) {
    .events-container {
        padding: 15px;
    }
    
    .filter-section {
        padding: 15px 0px;
    }
    
    .filter-buttons {
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .filter-btn .count {
        font-size: 11px;
        padding: 1px 6px;
    }
    
    .events-table-container {
        overflow-x: auto;
    }
    
    .events-table {
        min-width: 800px;
    }
    
    .events-table th,
    .events-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .event-name {
        max-width: 200px;
    }
    
    .event-name strong {
        font-size: 14px;
    }
    
    .location {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .events-container {
        padding: 10px;
    }
    
    .filter-section {
        padding: 10px 0px;
    }
    
    .filter-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}