/* Existing styles */
.event-header {
    background-image: url('../images/background_events.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 50px;
    margin-bottom: 30px;
    text-align: center;
}

.date-filter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.event-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-details {
    margin: 15px 0;
}

.event-datetime-location {
    display: flex;
    gap: 20px;
    color: #666;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-description {
    color: #444;
    margin: 15px 0;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-price {
    font-weight: bold;
    color: #2c3e50;
}

/* Tag cloud container styles */
.tag-cloud-container {
    margin-bottom: 30px;
}

.tag-cloud-toggle {
    display: none;
    margin-bottom: 10px;
    position: relative;
    padding: 10px 15px;
    font-weight: 500;
}

/* Tag cloud styles */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
}

.tag-cloud.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.tag {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tag:hover {
    background: #e9ecef;
}

.tag.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.event-type-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
    color: #495057;
}

/* Responsive layout styles */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.main-content {
    min-width: 0; /* Prevents content from overflowing */
}

.sidebar-ads {
    position: sticky;
    top: 20px;
}

.ad-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 100px; /* Typical size for a skyscraper ad */
}

.ad-containerSidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 600px; /* Typical size for a skyscraper ad */
}

/* Responsive behavior */
@media (max-width: 991px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-ads {
        display: none; /* Hide sidebar ads on mobile */
    }
}

@media (max-width: 768px) {
    .tag-cloud-toggle {
        display: block;
    }

    .tag-cloud {
        margin-top: 10px;
    }

    .event-datetime-location {
        flex-direction: column;
        gap: 10px;
    }
}

/* Month navigation styles */
.month-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.month-navigation .btn {
    min-width: 150px;
}
