.ac-calendar-wrap {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ac-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.ac-topbar .ac-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.ac-view-controls button {
    margin-right: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    background: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: #555;
    font-weight: 500;
}

.ac-view-controls button:hover {
    background: #f9f9f9;
    border-color: #ccc;
    color: #333;
}

.ac-view-controls button.active {
    background: #0073aa;
    color: white;
    border-color: #005177;
}

@media (max-width: 600px) {
    .ac-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Navigation controls */
.ac-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-nav-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333;
}

.ac-nav-button:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.ac-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ac-today-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
}

.ac-today-button:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.ac-datepicker-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
}

.ac-datepicker-button:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

/* Search container */
.ac-search-container {
    position: relative;
    flex-grow: 1;
    max-width: 300px;
}

.ac-search-input {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.9rem;
}

.ac-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.ac-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #999;
}

.ac-search-clear:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

/* Calendar container */
.ac-calendar {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* FullCalendar customizations */
.fc {
    font-family: inherit;
}

.fc-event {
    border-radius: 6px;
    border: none;
    padding: 3px 6px;
    font-size: 0.85rem;
    margin: 2px 0;
}

.fc-daygrid-event {
    margin-bottom: 2px;
}

.fc-list-event {
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

.fc-list-event-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.fc-daygrid-day-number {
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 4px 0 0 4px;
}

.fc-col-header-cell-cushion {
    font-weight: 600;
    color: #333;
    padding: 12px 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.fc .fc-scrollgrid-section th {
    border-right: none;
    border-left: none;
}

.fc .fc-scrollgrid-section td {
    border-right: none;
    border-left: none;
}

.fc .fc-daygrid-day-frame {
    min-height: 80px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    margin: 2px;
    padding: 2px;
}

.fc .fc-daygrid-day-frame:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.fc .fc-daygrid-day-events {
    margin-top: 4px;
}

.fc .fc-daygrid-event {
    background: #0073aa;
    color: white;
    border-radius: 4px;
    padding: 3px 6px;
    margin-bottom: 3px;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.fc .fc-daygrid-event:hover {
    background: #005a87;
    opacity: 0.9;
}

.fc .fc-daygrid-more-link {
    color: #0073aa;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 2px 4px;
}

.fc .fc-daygrid-more-link:hover {
    text-decoration: underline;
}

.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 0.5;
}

.fc .fc-day-other .fc-daygrid-day-number {
    color: #999;
}

.fc .fc-day-today {
    background-color: rgba(0, 115, 170, 0.05);
}

.fc .fc-day-today .fc-daygrid-day-number {
    font-weight: 700;
    color: #fff;
    background: #0073aa;
}

.fc .fc-scrollgrid {
    border: none;
}

.fc .fc-scrollgrid table {
    border-collapse: separate;
    border-spacing: 2px;
}

.fc .fc-non-business {
    background-color: #f8f9fa;
}

.fc .fc-daygrid-bg-harness {
    display: none;
}

/* Minimalist day view (now list view) */
.fc .fc-list-day-cushion {
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.fc .fc-list-event-time {
    font-weight: 600;
    color: #0073aa;
    white-space: nowrap;
    padding-right: 12px;
    width: 120px;
    text-align: right;
}

.fc .fc-list-event-dot {
    border-color: #0073aa;
    border-width: 2px;
}

.fc .fc-list-event {
    border-radius: 6px;
    border-left: none;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.fc .fc-list-event:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.fc .fc-list-event-graphic {
    display: none;
}

.fc .fc-list-event-title {
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    color: #333;
}

.fc .fc-list-event-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.fc .fc-list-event-title a:hover {
    color: #0073aa;
}

/* Custom event list item styling */
.ac-event-list-item {
    padding: 0;
}

.ac-event-content {
    padding: 12px 16px;
}

.ac-event-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 4px;
}

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

.ac-event-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.ac-event-time {
    font-weight: 600;
    color: #0073aa;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ac-event-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.fc .fc-daygrid-event {
    background: #0073aa;
    color: white;
    border-radius: 4px;
    padding: 3px 6px;
    margin-bottom: 3px;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
}

.fc .fc-daygrid-event:hover {
    background: #005a87;
    opacity: 0.9;
}

/* Time separator styling for day view */
.ac-time-separator {
    border-top: 1px solid #eee;
    margin: 20px 0 10px;
    padding-top: 10px;
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

/* Event styling for day view */
.ac-day-event {
    border-left: 3px solid #0073aa;
    padding: 10px 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 0 4px 4px 0;
}

.ac-day-event-time {
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.ac-day-event-title {
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.ac-day-event-title a {
    text-decoration: none;
    color: #333;
}

.ac-day-event-title a:hover {
    color: #0073aa;
}

.ac-day-event-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Event page styling */
.entry-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
}

.entry-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

#tribe-events-content {
    margin-bottom: 48px;
    padding: 2px 0;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tribe-events-single-event-title {
    color: #141827;
    font-size: 2.2em;
    line-height: 1.2;
    margin: 0 0 20px 0;
    padding: 0;
    font-weight: 700;
}

.tribe-events-schedule {
    margin: 20px 0 0;
    vertical-align: middle;
}

.tribe-events-schedule .tribe-event-date-start {
    color: #141827;
    display: inline-block;
    font-size: 1.2em;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0;
}

.tribe-events-schedule .tribe-event-time {
    font-weight: 400;
    margin-left: 10px;
}

.tribe-events-schedule .tribe-event-allday {
    font-weight: 400;
    margin-left: 10px;
}

.tribe-events-single-event-description {
    margin: 30px 0;
    font-size: 1.1em;
    line-height: 1.7;
    color: #444;
}

/* Improved event meta styling with two-column layout */
.tribe-events-event-meta-wrapper {
    margin: 40px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
}

.tribe-events-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.tribe-events-meta-group {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tribe-events-meta-group-contact {
    border-left: 4px solid #0073aa;
}

.tribe-events-meta-group-time {
    border-left: 4px solid #28a745;
}

.tribe-events-single-section-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.tribe-events-event-meta dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 15px;
}

.tribe-events-event-meta dt {
    font-weight: 700;
    color: #555;
    grid-column: 1;
    margin: 0;
    padding: 0;
}

.tribe-events-event-meta dd {
    grid-column: 2;
    margin: 0;
    padding: 0;
    color: #333;
}

.tribe-events-event-meta a {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px dotted #0073aa;
}

.tribe-events-event-meta a:hover {
    text-decoration: none;
    border-bottom: 1px solid #0073aa;
}

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

.tribe-clearfix {
    zoom: 1;
}

.event-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

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

.event-date {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0;
}

.event-time, .event-all-day {
    color: #0073aa;
    font-weight: 600;
    margin-left: 10px;
}

.events-archive {
    margin-top: 20px;
}

.page-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .ac-calendar-wrap {
        padding: 15px;
    }
    
    .ac-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ac-navigation {
        justify-content: center;
    }
    
    .ac-search-container {
        max-width: 100%;
    }
    
    .ac-view-controls {
        justify-content: center;
        width: 100%;
    }
    
    .ac-topbar .ac-title {
        text-align: center;
    }
    
    .event-meta strong {
        display: block;
        width: auto;
        margin-bottom: 5px;
    }
    
    .event-meta {
        grid-template-columns: 1fr;
    }
    
    .tribe-events-event-meta {
        padding: 15px;
    }
    
    /* Event meta responsive adjustments */
    .tribe-events-event-meta-wrapper {
        padding: 20px 15px;
    }
    
    .tribe-events-event-meta {
        flex-direction: column;
        gap: 20px;
    }
    
    .tribe-events-meta-group {
        min-width: 100%;
        padding: 20px;
    }
    
    .tribe-events-single-event-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .ac-view-controls {
        flex-wrap: wrap;
    }
    
    .ac-view-controls button {
        flex: 1;
        min-width: 80px;
        margin-bottom: 5px;
    }
    
    .ac-navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tribe-events-event-meta-wrapper {
        padding: 15px 10px;
    }
    
    .tribe-events-meta-group {
        padding: 15px;
    }
    
    .tribe-events-event-meta dl {
        gap: 10px;
    }
}