/* BASE */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f2ea;
    color: #222;
}

/* PAGE */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wide-page {
    max-width: 1200px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
}

/* GRID */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* CARD */
.event-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    /* THIS is what you’re missing */
    border: 1px solid #e0e0e0;

    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover effect */
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* IMAGE */
.event-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Placeholder if no image */
.event-card-placeholder {
    height: 180px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #666;
}

/* CARD CONTENT */
.event-card-body {
    padding: 18px;
}

/* Title */
.event-card-body h2 {
    margin: 0 0 10px 0;
    font-size: 22px;
}

/* Paragraphs */
.event-card-body p {
    margin: 6px 0;
    font-size: 14px;
    color: #555;
}

/* RSVP button */
.event-card-button {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    background: #111;
    color: white;
    border-radius: 8px;
    font-size: 14px;
}

/* ===== EXISTING RSVP PAGE STYLES ===== */

.card {
    background: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

h1 {
    margin-top: 0;
    font-size: 36px;
}

.event-info {
    margin-bottom: 28px;
    line-height: 1.6;
}

label {
    display: block;
    margin-top: 16px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
}

button {
    margin-top: 24px;
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: #111;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background: #333;
}

.success {
    background: #d8f5df;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.error {
    background: #ffd7d7;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #111;
    font-weight: bold;
}

.event-photo {
    width: 100%;
    height: auto;        /* THIS is key */
    max-height: none;    /* remove height limit */
    object-fit: contain; /* show full image */
}
.event-info a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

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