/* ============================================================
   Rotary Events – Front-end Styles
   ============================================================ */

/* ----- Grid layout ----- */
.rotary-events-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
    gap: 28px;
    margin: 24px 0;
}

/* ----- Card ----- */
.rotary-event-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rotary-event-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
    transform: translateY( -2px );
}

/* ----- Thumbnail wrapper ----- */
.rotary-event-thumb {
    position: relative;
    overflow: hidden;
}

.rotary-event-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rotary-event-card:hover .rotary-event-thumb img {
    transform: scale(1.04);
}

/* ----- Date badge ----- */
.rotary-event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #003f8a;   /* Rotary blue */
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 12px;
    text-align: center;
    line-height: 1.1;
    min-width: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.rotary-event-date-badge .rotary-event-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.rotary-event-date-badge .rotary-event-day {
    display: block;
    font-size: 22px;
    font-weight: 700;
}

/* ----- Card body ----- */
.rotary-event-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rotary-event-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.rotary-event-title a {
    color: inherit;
    text-decoration: none;
}

.rotary-event-title a:hover {
    color: #003f8a;
}

/* ----- Meta (date / venue) ----- */
.rotary-event-meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #555f6e;
    margin: 0 0 8px;
}

.rotary-event-meta .dashicons {
    color: #003f8a;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.rotary-event-meta a {
    color: #003f8a;
    text-decoration: none;
}

.rotary-event-meta a:hover {
    text-decoration: underline;
}

/* ----- Excerpt ----- */
.rotary-event-excerpt {
    font-size: 14px;
    color: #374151;
    margin: 10px 0 14px;
    line-height: 1.6;
    flex: 1;
}

/* ----- Read more link ----- */
.rotary-event-readmore {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #003f8a;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.15s ease;
}

.rotary-event-readmore:hover {
    color: #f7a81b;   /* Rotary gold */
}

/* ----- No events message ----- */
.rotary-no-events {
    font-style: italic;
    color: #6b7280;
    text-align: center;
    padding: 24px 0;
}

/* ============================================================
   Single Event – meta block injected before content
   ============================================================ */

.rotary-event-single-meta {
    background: #f0f4fb;
    border-left: 4px solid #003f8a;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.rotary-event-single-meta .rotary-event-meta {
    font-size: 15px;
    margin-bottom: 10px;
}

.rotary-event-summary {
    margin-top: 10px;
    font-size: 15px;
    color: #374151;
    border-top: 1px solid #d1daea;
    padding-top: 12px;
}

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

@media ( max-width: 600px ) {
    .rotary-events-grid {
        grid-template-columns: 1fr;
    }
}
