
.event-calendar-scroll {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

/* Month labels row */
.calendar-months {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    padding: 0 5px;
}

.month-label {
    flex-shrink: 0;
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    color: #333;
    padding: 5px 0;
    border-bottom: 2px solid #0073aa;
    background: #f8f9fa;
}

/* Days row - ALL days in ONE horizontal line */
.calendar-days-row {
    display: flex;
    flex-direction: row;
    gap: 2px; /* Very small gap between days */
    padding: 0 5px;
}

.calendar-day {
    width: 20px; /* Compact size */
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75em;
    font-weight: bold;
    background: #f0f0f0;
    color: #666;
    transition: all 0.2s ease;
}

.calendar-day.has-event {
    background: #0073aa;
    color: white;
}

.calendar-day.no-event {
    background: #f5f5f5;
    color: #ccc;
}

.calendar-day:hover:not(.no-event) {
    transform: scale(1.1);
    background: #005a8c;
}

.calendar-day.active {
    background: #000;
    color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 0 2px white;
}

/* Optional: Add subtle border between months in the day row */
.calendar-day:first-child {
    border-left: 2px solid #0073aa;
}

/* Even more compact version */
.calendar-day.compact {
    width: 16px;
    height: 16px;
    font-size: 0.7em;
}

/* Scrollbar styling */
.event-calendar-scroll::-webkit-scrollbar {
    height: 6px;
}

.event-calendar-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.event-calendar-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.event-calendar-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.day-of-week {
    font-size: 0.7em;
    color: #888;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Optional: Add current day indicator */
.calendar-day.today {
    border: 2px solid #ff4444;
}

@media (max-width: 768px) {
    .event-calendar {
        width: 10220px; /* 365 days × 28px */
    }
    
    .calendar-day-container {
        width: 28px;
    }
    
    .calendar-day {
        width: 22px;
        height: 22px;
    }
    
    .month-label {
        font-size: 1em;
        min-width: 45px;
        padding: 0 8px;
    }
}

/* Scrollbar styling */
.event-calendar-container::-webkit-scrollbar {
    height: 8px;
}

.event-calendar-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.event-calendar-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.event-calendar-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.events-list .event {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}
.event-summary {
    display: grid;
    grid-template-rows: auto auto;
    gap: 6px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.summary-row-2 {
    font-size: 0.9em;
    color: #555;
    margin-left: 72px; /* aligns under title, not date */
}

.summary-row-1 {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 10px;
}


.event-summary:hover {
    background: #f0f0f0;
}
.event-date {
    background: #0073aa;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
    white-space: nowrap;
}

.event-title {
    font-size: 1.2em;
    font-weight: 600;
}

.event-category-label {
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85em;
    white-space: nowrap;
}

.free-spots {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0,115,170,0.15);
    color: #0073aa;
    font-size: 0.85em;
    white-space: nowrap;
}
.event-details {
    display: none;
    margin-top: 16px;
}

.event-details.show {
    display: block;
}

/* Header: table on the LEFT, image on the RIGHT */
.event-details-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* ---------- TABLE (LEFT) ---------- */
.event-details-table {
    flex: 1 1 auto;        /* THIS is the key */
    border-collapse: collapse;
    max-width: 100%;
}

.event-details-table tr {
    display: table-row !important;
}

.event-details-table th,
.event-details-table td {
    display: table-cell !important;
    padding: 12px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* Title row */
.event-details-table th {
    background: #f7f7f7;
    font-size: 1.6em; /* BIG TITLE */
    font-weight: 600;
    text-align: left;
}

/* Price + register row */
.price-cell {
    font-weight: bold;
}

.register-cell {
    text-align: right;
}

/* ---------- IMAGE (RIGHT) ---------- */
.event-details-image {
    flex: 0 0 220px;       /* fixed width column */
}

.event-details-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ---------- BODY ---------- */
.event-details-body {
    margin-top: 20px;
}

.event-description {
    margin-bottom: 16px;
}

.event-tools {
    font-size: 0.95em;
}

.event-description {
    margin-bottom: 16px;
}

.event-tools {
    font-size: 0.95em;
}
.register-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.register-btn:hover {
    background: #005f8a;
}
@media (max-width: 768px) {
    .event-details-header {
        flex-direction: column;
    }

    .event-details-image {
        width: 100%;
    }
}