.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.group-header-logo {
    flex-shrink: 0;
}

.group-header-logo img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 4px;
}

.page-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    color: #2c3e50;
}

.group-type {
    margin: 0;
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.group-info {
    margin-bottom: 3rem;
}

.group-section {
    margin-bottom: 2rem;
}

.group-section h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.group-description {
    line-height: 1.6;
    color: #34495e;
    white-space: pre-wrap;
}

.group-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: #555;
}

.meta-value {
    color: #34495e;
}

.meta-value a {
    color: #3498db;
    text-decoration: none;
}

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

.events-section {
    margin-bottom: 3rem;
}

.events-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.event-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-item.past-event {
    opacity: 0.8;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.75rem;
    background-color: #e74c3c;
    color: white;
    border-radius: 8px;
    text-align: center;
}

.past-event .event-date {
    background-color: #95a5a6;
}

.date-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-details {
    flex: 1;
}

.event-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.event-title a {
    color: #2c3e50;
    text-decoration: none;
}

.event-title a:hover {
    color: #3498db;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #7f8c8d;
}

.event-time::before {
    content: "🕐 ";
}

.event-location::before {
    content: "📍 ";
}

.no-events {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .event-item {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .date-day {
        font-size: 1.5rem;
    }
}

/* Footer: match leftlist footer colors and center text */
footer {
  background-color: #1f2937;
  color: #e5e7eb;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
