.wa-event-list-wrap,
.wa-event-calendar-wrap {
    margin: 2em 0;
}

.wa-event-list,
.wa-event-calendar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

.wa-event-item,
.wa-event-calendar-item {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 1em;
    padding: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.wa-event-title {
    margin: 0 0 0.5em 0;
    font-size: 1.2em;
}

.wa-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    font-size: 1em;
    align-items: center;
}

.wa-event-date,
.wa-event-location {
    color: #666;
    font-size: 0.97em;
}

.wa-register-btn {
    display: inline-block;
    margin-left: auto;
    padding: 0.5em 1.2em;
    background: #0375d8;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.wa-register-btn:hover {
    background: #0256a0;
}

.wa-see-all-events {
    display: block;
    margin: 1.5em auto 0 auto;
    width: max-content;
    padding: 0.6em 1.7em;
    background: #e6f3ff;
    color: #0365a8 !important;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08em;
    border: 1px solid #bae1ff;
    transition: background 0.18s;
}
.wa-see-all-events:hover {
    background: #bae1ff;
}

.wa-no-events {
    color: #888;
    text-align: center;
    font-style: italic;
}

/* Toggle Buttons */
.wa-calendar-toggle-wrap {
    display: flex;
    gap: 0.4em;
    margin-bottom: 1em;
}
.wa-calendar-toggle {
    background: #f1f7fa;
    color: #1a3c6b;
    border: 1px solid #d7e5f2;
    border-radius: 4px;
    padding: 0.45em 1.3em;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.16s, color 0.16s;
}
.wa-calendar-toggle.active,
.wa-calendar-toggle:hover {
    background: #1a7dda;
    color: #fff;
    border-color: #1a7dda;
}

/* Tile (grid) view */
.wa-event-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2em;
}
.wa-event-tile {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}
.wa-event-tile .wa-event-title {
    font-size: 1.08em;
    margin-bottom: 0.4em;
}

/* Calendar grid */
.wa-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.6em;
    background: #f8fbfd;
    border-radius: 7px;
    overflow: hidden;
}
.wa-calendar-table th, .wa-calendar-table td {
    width: 14.28%;
    min-width: 48px;
    border: 1px solid #e3e9ef;
    text-align: left;
    vertical-align: top;
    padding: 4px 4px 2px 8px;
    height: 62px;
    font-size: 0.99em;
    background: #fff;
}
.wa-calendar-table th {
    background: #f1f7fa;
    color: #1a3c6b;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    padding: 8px 0;
    border-top: none;
}
.wa-calendar-day-num {
    font-weight: 600;
    color: #1a3c6b;
    font-size: 1em;
    margin-bottom: 2px;
}
.wa-calendar-event {
    font-size: 0.95em;
    margin: 1px 0 0 0;
    padding-left: 2px;
    border-left: 3px solid #4faaff;
    border-radius: 2px;
    margin-bottom: 2px;
    background: #eaf4ff;
}
.wa-calendar-event a {
    color: #206bb9 !important;
    text-decoration: underline;
    font-weight: 500;
}

.wa-calendar-nav {
    text-align: center;
    margin-bottom: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4em;
}
.wa-calendar-month-label {
    font-size: 1.17em;
    font-weight: 700;
    color: #1a3c6b;
}
.wa-calendar-nav-prev, .wa-calendar-nav-next {
    font-size: 1.1em;
    color: #206bb9;
    text-decoration: none;
    padding: 0.18em 0.7em;
    background: #f1f7fa;
    border-radius: 4px;
    transition: background 0.13s;
}
.wa-calendar-nav-prev:hover, .wa-calendar-nav-next:hover {
    background: #b4dbff;
    color: #1a3c6b;
}

/* Mobile-first adjustments */
@media (max-width: 600px) {
    .wa-event-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7em;
    }
    .wa-event-title {
        font-size: 1.06em;
    }
    .wa-event-tile-grid {
        grid-template-columns: 1fr;
    }
    .wa-calendar-table th, .wa-calendar-table td {
        min-width: 34px;
        height: 48px;
        font-size: 0.92em;
    }
}
