/* Intergroup Events - prefixed to avoid theme collisions */
.ige-wrapper {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #374151;
}

/* Filter tabs */
.ige-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.ige-filter {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ige-filter:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
}
.ige-filter.is-active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
}

.ige-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
}

/* Card */
.evt-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}
.evt-card.is-hidden { display: none; }
.evt-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

.evt-header {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
}

.evt-date-box {
    background: #1e3a8a;
    color: #ffffff;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}
.evt-month {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}
.evt-day {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 4px 0;
}
.evt-weekday {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.evt-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.evt-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}
.evt-subtitle {
    font-weight: 400;
    color: #6b7280;
    font-size: 1rem;
}
.evt-meta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
.evt-meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #4b5563;
}
.evt-meta-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
    flex-shrink: 0;
}
.evt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.evt-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.evt-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #9ca3af;
    flex-shrink: 0;
}
.evt-expand svg { transition: transform 0.25s ease; }
.evt-card.is-open .evt-expand svg { transform: rotate(180deg); }

.evt-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 0 solid #e5e7eb;
}
.evt-card.is-open .evt-body {
    max-height: 1500px;
    border-top-width: 1px;
}
.evt-body-inner {
    padding: 20px 24px;
    line-height: 1.6;
    color: #374151;
}
.evt-body-inner h4 { margin: 0 0 8px 0; color: #111827; font-size: 1.1rem; }
.evt-body-inner p  { margin: 4px 0; }
.evt-body-inner ul { margin: 8px 0; padding-left: 20px; }
.evt-body-inner ul ul { margin: 4px 0; }
.evt-body-inner a { color: #1e3a8a; font-weight: 600; }

@media (max-width: 600px) {
    .ige-wrapper { padding: 0 12px; }
    .evt-header { flex-wrap: wrap; }
    .evt-date-box {
        flex-direction: row;
        gap: 10px;
        padding: 12px;
        min-width: 100%;
        justify-content: flex-start;
    }
    .evt-day { font-size: 1.4rem; margin: 0; }
    .evt-expand { padding: 0 16px; }
}

/* Block editor placeholder */
.ige-block-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}
