/**
 * Event-specific styles
 *
 * Styles for:
 * - Speaker/Organizer blocks
 * - Collapsible sections
 * - Related events grid
 * - Green button styling
 *
 * Brand Green: #77b638
 */

/* ========================================
   Speaker/Organizer Block
   ======================================== */

.event-speakers-section {
    /*margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;*/
}

.event-speakers-section .section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Bebas Neue', sans-serif;
}

.speaker-block {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
/*    padding: 20px;*/
    background: #fff;
    /*border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.speaker-block:last-child {
    margin-bottom: 0;
}

.speaker-photo {
    flex-shrink: 0;
    width: 50%;
}

.speaker-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.speaker-content {
    flex: 1;
}

.speaker-name {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-family: 'Bebas Neue', sans-serif;
}

.speaker-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.speaker-name a:hover {
    color: #77b638;
}

.speaker-short-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.speaker-expertise {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f0f0;
    border-left: 3px solid #77b638;
    font-size: 14px;
}

.speaker-expertise strong {
    color: #333;
}

.speaker-bio {
    margin-bottom: 15px;
    line-height: 1.6;
}

.speaker-contact {
    font-size: 14px;
    color: #666;
}

.speaker-contact a {
    color: #00507d;
    text-decoration: none;
    transition: color 0.3s;
}

.speaker-contact a:hover {
    color: #77b638;
}

/* ========================================
   Collapsible Sections
   ======================================== */

.event-collapsible-sections {
    margin: 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.collapsible-item {
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.collapsible-toggle {
    width: 100%;
    padding: 20px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s;
    text-align: left;
}

.collapsible-toggle:hover {
    background: #f8f9fa;
}

.collapsible-toggle[aria-expanded="true"] {
    background: #77b638;
    color: #fff;
}

.toggle-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 15px;
}

.collapsible-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.collapsible-content.active {
    max-height: 2000px;
    padding: 20px;
    transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

.collapsible-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Green Button Styling for Events
   ======================================== */

.single-tribe_events .vc_btn3-color-green,
.single-tribe_events .event-card-link,
.tribe-events-single .vc_btn3-color-green {
    background-color: #77b638 !important;
    border-color: #77b638 !important;
    color: #fff !important;
}

.single-tribe_events .vc_btn3-color-green:hover,
.single-tribe_events .event-card-link:hover,
.tribe-events-single .vc_btn3-color-green:hover {
    background-color: #5a8a29 !important;
    border-color: #5a8a29 !important;
}

/* Override booking button to green */
.single-tribe_events .wb-tribe-meta-buttons-area .vc_btn3,
.tribe-events-single .wb-tribe-meta-buttons-area .vc_btn3 {
    background-color: #77b638 !important;
    border-color: #77b638 !important;
    color: #fff !important;
}

.single-tribe_events .wb-tribe-meta-buttons-area .vc_btn3:hover,
.tribe-events-single .wb-tribe-meta-buttons-area .vc_btn3:hover {
    background-color: #5a8a29 !important;
    border-color: #5a8a29 !important;
}

/* ========================================
   Related Events Grid
   ======================================== */

.related-events-section {
    margin: 50px 0 40px 0;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-events-section .section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-family: 'Bebas Neue', sans-serif;
}

.related-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.related-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.related-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.related-event-card .event-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.related-event-card .event-card-title {
    margin-bottom: 10px;
}

.related-event-card .event-date {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.related-event-card .event-date i {
    color: #77b638;
    margin-right: 5px;
}

.event-card-image {
    overflow: hidden;
    position: relative;
    padding-bottom: 60%;
    background: #f0f0f0;
}

.event-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.event-card-content {
    padding: 20px;
}

.event-card-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1.3;
}

.event-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.event-card-title a:hover {
    color: #77b638;
}

.event-card-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.event-card-meta span {
    display: block;
    margin-bottom: 5px;
}

/*.event-card-meta span:first-child:before {
    content: "• ";
    color: #77b638;
    font-weight: bold;
    margin-right: 5px;
}*/

.tribe-events-header, .tribe-filter-bar {
    display: none!important;
}

.event-card-link {
    display: inline-block;
    padding: 10px 20px;
    background: #77b638;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.event-card-link:hover {
    background: #5a8a29;
    color: #fff;
}

/* ========================================
   Speaker/Organizer Pages
   ======================================== */

/* Single Organizer Page */
.organizer-single {
    max-width: 1200px;
    margin: 0 auto;
}

.organizer-header {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 40px;
}

.organizer-title {
    font-size: 42px;
    margin: 0 0 15px 0;
    color: #333;
    font-family: 'Bebas Neue', sans-serif;
}

.organizer-tagline {
    font-size: 20px;
    color: #666;
    font-style: italic;
    margin: 0;
}

.organizer-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.organizer-photo-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.organizer-photo-large img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.organizer-expertise-box {
    grid-column: 2 / 3;
    padding: 25px;
    background: #77b638;
    color: #fff;
    border-radius: 8px;
}

.organizer-expertise-box h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    font-family: 'Bebas Neue', sans-serif;
}

.expertise-content {
    line-height: 1.8;
    font-size: 16px;
}

.organizer-bio {
    grid-column: 1 / -1;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.organizer-bio h2 {
    font-size: 28px;
    margin: 0 0 20px 0;
    font-family: 'Bebas Neue', sans-serif;
    color: #333;
}

.organizer-bio p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.organizer-contact-info {
    grid-column: 1 / -1;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.organizer-contact-info h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    font-family: 'Bebas Neue', sans-serif;
}

.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-links li {
    margin: 0;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #77b638;
    transition: all 0.3s;
    font-weight: 500;
}

.contact-links a:hover {
    background: #77b638;
    color: #fff;
}

.contact-links i {
    font-size: 18px;
}

/* Organizer Events Section */
.organizer-events-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 2px solid #e0e0e0;
}

.organizer-events-section .section-title {
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Bebas Neue', sans-serif;
}

.organizer-no-events-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.organizer-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.organizer-event-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.organizer-event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

div#eventful-sidebar {
    display: none;
}

/* Archive Organizers Page */
.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.organizer-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.organizer-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.organizer-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.organizer-card-image {
    position: relative;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.organizer-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.organizer-card:hover .organizer-card-image img {
    transform: scale(1.05);
}

.organizer-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.organizer-card-placeholder i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
}

.organizer-card-content {
    padding: 20px;
}

.organizer-card-title {
    font-size: 22px;
    margin: 0 0 10px 0;
    font-family: 'Bebas Neue', sans-serif;
    color: #333;
}

.organizer-card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.organizer-card-expertise {
    font-size: 13px;
    color: #888;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #77b638;
    margin-bottom: 12px;
    font-style: italic;
}

.organizer-events-count {
    font-size: 13px;
    color: #77b638;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.organizer-events-count i {
    font-size: 14px;
}

.organizer-card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #77b638;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.organizer-card:hover .organizer-card-button {
    background: #5a8a29;
}

.no-organizers {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-organizers p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Archive Description */
.archive-description {
    max-width: 800px;
    margin: 20px auto 40px;
    text-align: center;
}

.archive-description p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .speaker-block {
        flex-direction: column;
        gap: 20px;
    }

    .speaker-photo {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        order: -1; /* Photo on top on mobile */
    }

    .related-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-speakers-section {
        padding: 20px;
    }

    .event-collapsible-sections {
        padding: 0;
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .collapsible-toggle {
        padding: 15px;
        font-size: 16px;
    }

    .toggle-title {
        font-size: 18px;
    }

    /* Organizer responsive */
    .organizer-content-wrapper {
        grid-template-columns: 1fr;
    }

    .organizer-photo-large {
        grid-column: 1;
        grid-row: auto;
    }

    .organizer-expertise-box {
        grid-column: 1;
    }

    .organizer-title {
        font-size: 32px;
    }

    .organizers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .organizer-events-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 15px;
    }

    .contact-links a {
        justify-content: center;
    }

    div:not(.featured-events-section) .event-card-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .event-speakers-section .section-title,
    .related-events-section .section-title {
        font-size: 24px;
    }

    .speaker-name {
        font-size: 20px;
    }

    .collapsible-toggle {
        padding: 12px;
    }

    /* Event archive responsive */
    .events-filter-wrapper {
        grid-template-columns: 1fr;
    }

    .featured-events-grid {
        grid-template-columns: 1fr;
    }

    .event-card-featured {
        flex-direction: column;
    }

    .event-card-featured .event-card-image {
        padding-bottom: 60%;
    }
}

/* ========================================
   Event Archive & Filters
   ======================================== */

div.tribe-events-view--list {
    margin-bottom: 3rem;
}

/* Archive Header */
.events-archive-header {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 40px;
}

.events-archive-header .page-title {
    font-size: 42px;
    margin: 0 0 15px 0;
    color: #333;
    font-family: 'Bebas Neue', sans-serif;
}

.events-archive-header .archive-description {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Filter Section */
.events-filter-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
/*    box-shadow: 0 2px 8px rgba(119, 182, 56, 0.1);*/
}

/* Search Row - Full Width */
.events-search-row {
    margin-bottom: 20px;
}

.events-search-row .filter-item {
    width: 100%;
}

/* Filters Wrapper - Grid Below Search */
.events-filter-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
    margin-top: 1rem!important;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item select {
    appearance: none;
}

.filter-item label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-filter-select,
.event-search-input,
.date-input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fff;
    font-family: 'Roboto Flex', sans-serif;
}

.event-filter-select:focus,
.event-search-input:focus,
.date-input:focus {
    outline: none;
    border-color: #77b638;
}

.event-filter-select {
    cursor: pointer;
    width: 100%;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

.event-filter-select:hover {
    border-color: #77b638;
}

/* Calendar input styling */
.event-filter-calendar {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fff;
    font-family: 'Roboto Flex', sans-serif;
    cursor: pointer;
    width: 100%;
}

.event-filter-calendar:focus {
    outline: none;
    border-color: #77b638;
}

.event-filter-calendar:hover {
    border-color: #77b638;
}

/* ========================================
   Select2 Theme Customization
   ======================================== */

/* Select2 container styling */
.wbtheme-custom-filters .select2-container--default .select2-selection--single {
    height: 48px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Roboto Flex', sans-serif;
    background-color: #fff;
    transition: border-color 0.3s;
}

.wbtheme-custom-filters .select2-container--default .select2-selection--single:hover {
    border-color: #77b638;
}

.wbtheme-custom-filters .select2-container--default.select2-container--focus .select2-selection--single,
.wbtheme-custom-filters .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #77b638;
    outline: none;
}

.wbtheme-custom-filters .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 26px;
    padding-left: 0;
}

.wbtheme-custom-filters .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.wbtheme-custom-filters .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}

.wbtheme-custom-filters .select2-container--default .select2-selection--single .select2-selection__clear {
    color: #999;
    font-size: 20px;
    margin-right: 10px;
}

.wbtheme-custom-filters .select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #77b638;
}

/* Select2 dropdown styling */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #77b638;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f8e8;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #77b638;
    outline: none;
}

.select2-dropdown {
    border: 2px solid #77b638;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Flatpickr custom theme */
.flatpickr-calendar {
    font-family: 'Roboto Flex', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #77b638;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #77b638;
    border-color: #77b638;
}

.flatpickr-day.inRange {
    background: rgba(119, 182, 56, 0.2);
    border-color: transparent;
}

.flatpickr-day:hover {
    background: rgba(119, 182, 56, 0.1);
    border-color: #77b638;
}

.flatpickr-months .flatpickr-month {
    background: #77b638;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: #fff;
    font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #fff;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: rgba(255, 255, 255, 0.8);
}

span.flatpickr-weekday {
    color: #77b638;
    font-weight: 600;
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
}

.search-input-wrapper .event-search-input {
    flex: 1;
}

.tribe-events-c-top-bar {
    display: none!important;
}

/* Search Button */
.event-search-btn {
    padding: 12px 20px;
    background: #77b638;
    color: #fff;
    border: 2px solid #77b638;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.event-search-btn:hover {
    background: #6aa030;
    border-color: #6aa030;
    transform: translateY(-1px);
}

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

.event-search-btn svg {
    width: 20px;
    height: 20px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 60px; /* Account for button width */
    background: #fff;
    border: 2px solid #77b638;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: -2px;
    padding: .5rem 1rem ;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #f0f8e8;
}

.suggestion-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-label {
    /*display: flex;
    align-items: center;
    gap: 10px;*/
}

.suggestion-label i {
    color: #77b638;
    width: 16px;
}

.suggestion-count {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.suggestion-event .suggestion-label {
    font-weight: 600;
}

.suggestion-tag .suggestion-label,
.suggestion-keyword .suggestion-label {
    color: #666;
}

/* Category suggestions */
.suggestion-category .suggestion-label {
    color: #333;
    font-weight: 500;
}

/* Synonym suggestions */
.suggestion-synonym .suggestion-label {
    color: #666;
}

.suggestion-hint {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-left: 5px;
}

/* Suggestion date styling */
.suggestion-date {
    font-size: 12px;
    color: #77b638;
    margin-left: 10px;
    font-weight: 500;
}

/* Event suggestion specific styling */
.suggestion-event {
    cursor: pointer;
}

.suggestion-event:hover .suggestion-label {
    color: #77b638;
}

/* Highlighted text in suggestions */
.search-suggestions mark {
    background-color: #ffe066;
    color: #333;
    font-weight: 600;
    padding: 2px 0;
}

/* Custom Date Range */
.custom-date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* Reset Button - matches Stellenmarkt styling */
.btn-reset-filters {
    display: none !important; /* Hidden by default, shown when filters active */
    padding: 12px 20px !important;
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-family: 'Roboto Flex', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.btn-reset-filters.visible {
    display: inline-block !important;
}

.btn-reset-filters:hover {
    background: #f8f9fa !important;
    border-color: #77b638 !important;
    color: #77b638 !important;
}

/* Loading Indicator */
.events-loading {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #77b638;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.events-loading p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

/* Featured Events Grid */
div.featured-events-section {
    margin-top: 3rem;
    margin-bottom: 50px;
}

.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Featured Card - Image on top, then content */
.event-card-featured {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.event-card-featured:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.event-card-featured .event-card-image {
    width: 100%;
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
    background: #f0f0f0;
}

.event-card-featured .event-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-featured .event-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* Additional Events List */
.event-card:not(.event-card-featured) {
    padding: 2rem;
}

.additional-events-section {
    margin-bottom: 50px;
}

.additional-events-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-family: 'Bebas Neue', sans-serif;
    color: #333;
}

.additional-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* List Card - One-liner layout: Date | Heading | Button */
.event-card-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    transition: box-shadow 0.3s;
}

.event-card-list:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Date block for list cards - stacked date and time */
.event-card-list .event-date-block {
    flex-shrink: 0;
    width: 100px;
    text-align: left;
}

.event-card-list .event-date-day {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.event-card-list .event-date-time {
    display: block;
    font-size: 13px;
    color: #666;
}

.event-card-list .event-card-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
}

.event-card-list .event-card-link {
    flex-shrink: 0;
}

/* Event Card Content */
.event-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.event-card-title {
    font-size: 22px;
    margin: 0 0 12px 0;
    font-family: 'Bebas Neue', sans-serif;
}

.event-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.event-card-title a:hover {
    color: #77b638;
}

.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

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

.event-card-meta i {
    color: #77b638;
    font-size: 13px;
}

.event-excerpt {
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

/* No Results */
.no-events-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.no-events-found p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* Calendar Button */
.calendar-button-section {
    text-align: center;
    margin: 50px 0;
}

.btn-view-calendar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
}

.btn-view-calendar i {
    font-size: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .events-archive-header .page-title {
        font-size: 32px;
    }

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

    .event-card-featured {
        flex-direction: column;
    }

    .event-card-featured .event-card-image {
        width: 100%;
        padding-bottom: 60%;
    }

    /* List cards stack on mobile */
    .event-card-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .event-card-list .event-date-block {
        width: auto;
        display: flex;
        gap: 10px;
    }

    .event-card-list .event-date-day,
    .event-card-list .event-date-time {
        display: inline;
    }

    .event-card-list .event-card-title {
        font-size: 16px;
    }

    .event-card-list .event-card-link {
        width: 100%;
        text-align: center;
    }

    .additional-events-section .section-title {
        font-size: 28px;
    }
}

/* ========================================
   Homepage WPBakery Elements
   ======================================== */

/* Event Map Element */
.event-map-container {
    position: relative;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.event-map-loading .loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #77b638;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.event-map-loading p {
    color: #666;
    margin: 0;
}

.event-map-no-results {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.event-map-no-results p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Map Info Window Styling */
.event-map-info-window {
    padding: 10px;
    max-width: 250px;
}

.event-map-info-window h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-family: 'Bebas Neue', sans-serif;
}

.event-map-info-window h3 a {
    color: #333;
    text-decoration: none;
}

.event-map-info-window h3 a:hover {
    color: #77b638;
}

.event-map-info-window p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-map-info-window i {
    color: #77b638;
}

.event-info-link {
    display: inline-block;
    margin-top: 10px;
    color: #77b638;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

.event-info-link:hover {
    text-decoration: underline;
}

/* Event Table Element */
.event-table-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-table-title {
    font-size: 32px;
    margin: 0 0 25px 0;
    font-family: 'Bebas Neue', sans-serif;
    color: #333;
}

.event-table-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Table Layout */
.event-table-wrapper {
    overflow-x: auto;
    margin-bottom: 25px;
}

.event-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.event-table thead {
    background: #f8f9fa;
}

.event-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #77b638;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.event-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.event-table tbody tr:hover {
    background: #f8f9fa;
}

.event-table td {
    padding: 15px 12px;
    vertical-align: middle;
}

.event-table .event-title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.event-table .event-title a:hover {
    color: #77b638;
}

.event-table .event-date,
.event-table .event-time,
.event-table .event-cost {
    color: #666;
    white-space: nowrap;
}

.event-table .event-venue {
    color: #666;
}

.event-table .event-action {
    text-align: right;
}

.event-details-link {
    color: #77b638;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.event-details-link:hover {
    text-decoration: underline;
}

/* List Layout */
.events-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.event-list-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.event-list-item:last-child {
    border-bottom: none;
}

.event-list-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.event-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.event-list-content {
    flex: 1;
}

.event-list-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-family: 'Bebas Neue', sans-serif;
}

.event-list-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.event-list-title a:hover {
    color: #77b638;
}

.event-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

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

.event-list-meta i {
    color: #77b638;
}

/* Cards Layout */
.events-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.event-card-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.event-card-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.event-card-item .event-card-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
}

.event-card-item .event-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-item .event-card-content {
    padding: 20px;
}

.event-card-item .event-card-title {
    font-size: 20px;
    margin: 0 0 10px 0;
    font-family: 'Bebas Neue', sans-serif;
}

.event-card-item .event-card-title a {
    color: #333;
    text-decoration: none;
}

.event-card-item .event-card-title a:hover {
    color: #77b638;
}

.event-card-item .event-card-meta {
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.event-card-item .event-card-meta span {
    display: block;
    margin-bottom: 5px;
}

.event-card-item .event-venue {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-card-item .event-venue i {
    color: #77b638;
}

/* More Button */
.event-table-more-button {
    text-align: center;
    padding-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .event-table-container {
        padding: 20px;
    }

    .event-table-title {
        font-size: 28px;
    }

    .event-table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .event-table {
        min-width: 600px;
    }

    .events-cards-grid {
        grid-template-columns: 1fr;
    }

    .event-list-item {
        flex-direction: column;
    }

    .event-list-image {
        width: 100%;
        height: 200px;
    }
}

/* ========================================
   Single Event Hero Block
   ======================================== */

/* Header row - Title with buttons */
.event-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.event-header-row .tribe-events-single-event-title {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.event-header-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    align-items: flex-end;
}

/* Two-column hero block */
.event-hero-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.event-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-hero-date,
.event-hero-time,
.event-hero-venue,
.event-hero-price,
.event-hero-note {
    display: flex;
    flex-direction: column;
}

.event-hero-note .meta-value {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.event-hero-note .meta-value p {
    margin: 0;
}

.event-hero-meta .meta-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.event-hero-meta .meta-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.event-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Quote block below featured image */
.event-hero-quote {
    margin: 20px 0 0 0;
    padding: 25px 30px;
    background-color: #77b638;
    border-radius: 8px;
    font-size: 2em;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    border: none;
}

/* Tribe Calendar Links in Header */
.event-header-buttons .tribe-events-cal-links,
.event-header-buttons .tribe-block__events-link {
    display: flex;
    gap: 10px;
    align-items: center;
}

.event-header-buttons .tribe-events-cal-links .tribe-events-button {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.tribe-tickets__tickets-form {
    max-width: unset!important;
}

/* Subscribe dropdown in header */
.event-header-buttons .tribe-events-c-subscribe-dropdown__container {
    position: relative;
}

.event-header-buttons .tribe-events-c-subscribe-dropdown {
    position: relative;
}

.event-header-buttons .tribe-events-c-subscribe-dropdown__content {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;
    min-width: 200px;
}

/* Responsive - Single Event Hero */
@media (max-width: 768px) {
    .event-header-row {
        flex-direction: column;
        gap: 15px;
    }

    .event-header-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .event-header-buttons .vc_btn3 {
        flex: 1;
        text-align: center;
    }

    .event-header-buttons .tribe-events-cal-links,
    .event-header-buttons .tribe-block__events-link {
        width: 100%;
        justify-content: center;
    }

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

    .event-hero-image {
        order: -1; /* Image on top on mobile */
    }
}