/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    padding: 40px 25px 40px 25px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    width: 50px;
}

.logo img:hover {
    opacity: 0.7;
}


/* Main Content */
main {
    min-height: calc(100vh - 180px);
    padding: 40px 40px;
}

/* Archive Page Specific Styles */
.archive-page h1 {
    margin-bottom: 30px;
    text-align: left;
    color: #222;
    font-weight: bold;
    font-size: 40px
}

.filter-section {
    padding: 20px 0;
    border-top: 1px solid #bbb;
}

.filter-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-link {
    padding: 2px 8px 2px 8px;
    background-color: white;
    color: #1987e1;
    text-decoration: none;
    border-radius: 4px;
}

.filter-link.active {
    background-color: #333;
    color: #fff;
}

.year-section {
    margin-bottom: 40px;
}

.year-heading {
    display: flex;
    align-items: center;
}

.event-count {
    font-size: 0.8em;
    color: #666;
    margin-left: 10px;
    font-weight: normal;
}

.event-list {
    list-style: none;
}

.event-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-item summary {
  cursor: pointer;
  list-style: none;
}

.event-item summary::-webkit-details-marker {
  display: none;
}

.event-details {
  padding: 1rem;
  margin-top: 0.5rem;
  margin-left: 1rem;
}

.event-details img {
    float: left;
    margin-top: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    width: 320px
}

.event-details p{
    margin-bottom: 4px;
}

.event-link {
    display: flex;
    padding: 12px 8px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.event-link:hover {
    background-color: #f5f5f5;
}

.event-date {
    width: 100px;
    font-weight: bold;
}

.event-title {
    flex-grow: 1;
    margin: 0 20px;
}

.canceled-status {
    color: #ff7373;
    margin-left: 8px;
}

.event-category {
    width: 120px;
    color: #666;
    text-align: right;
}

.clearfix {
    overflow: auto;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
  }



.meta-data {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.meta-data span:not(:last-child) {
  
    padding-right: 4px;
    border-right: 1.5px solid #000;
}

.event-description {
    text-align: justify;
}

.no-events {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .event-description {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 8px;
    }

    .event-link {
        flex-direction: column;
        gap: 5px;
    }
    
    .event-date, .event-title, .event-category {
        width: 100%;
        text-align: left;
    }
    
    .filter-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-link {
        width: 100%;
        text-align: center;
    }
    .event-details {
        flex-direction: column;
    } 
    .event-details img {
        
        width: 100%;
    }
}
