.invitation-card {
    background-color: rgba(255,255,255,0.85); /* semi-transparent white */
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 40px 30px;
    margin: 6px auto;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.month {
    font-size: 2.0rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #8b6b4c;
    text-transform: uppercase;
}

.date-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    position: relative;
}

.day-name, .time {
    flex: 1;
    padding: 15px 0;
    position: relative;
    font-size: 1.8rem
}

.day-name::before, .day-name::after,
.time::before, .time::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #271c12;
}

.day-name::before, .time::before {
    top: 0;
}

.day-name::after, .time::after {
    bottom: 0;
}

.day-name {
    text-align: center;
    padding-left: 15px;
    letter-spacing: 2px;
}

.time {
    text-align: center;
    padding-right: 15px;
    letter-spacing: 1px;
}

.day-number {
    font-size: 3.5rem;
    font-weight: normal;
    margin: 0 20px;
    color: #333;
}

.year {
    font-size: 2.0rem;
    font-weight: normal;
    margin-bottom: 10px;
    color: #8b6b4c;
    letter-spacing: 2px;
}

.events-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.events-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
}

.event-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 0 15px;
}

.vertical-divider {
    width: 1px;
    background-color: #271c12;
    height: 100%;
    min-height: 180px;
    margin: 0 10px;
}

.event-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #333;
    letter-spacing: 2px;
}

.location {
    text-align: center;
    width: 100%;
    display: flex;
    flex: 1;
}

.location-link {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.85rem 0.7rem;
    border: 2px solid rgba(var(--color-main-text-rgb), 0.22);
    border-radius: 12px;
    background: rgba(var(--color-surface-rgb), 0.72);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-height: 44px;
    transition: background-color 150ms ease, box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.location-link:hover {
    border-color: rgba(var(--color-main-text-rgb), 0.45);
    background: rgba(var(--color-surface-rgb), 0.9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.location-link:focus-visible {
    outline: 3px solid rgba(var(--color-primary-rgb), 0.55);
    outline-offset: 2px;
    border-color: rgba(var(--color-main-text-rgb), 0.5);
}

.location-link:active {
    transform: translateY(0);
    background: rgba(var(--color-surface-rgb), 0.96);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.location-link__pin {
    font-size: 1.15rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.location-link__cta {
    margin-top: 0.1rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.62rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}

.location-link__cta::after {
    content: "\00a0\2197";
}

.location-name {
    letter-spacing: 2px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b6b4c;
    width: 100%;
}

.location-desc {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    min-height: 3.2em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-address {
    font-size: 1.2rem;
    color: #777;
    letter-spacing: 2px;
    font-weight: bolder;
    min-height: 3.2em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0px;
    /* Optionally, use negative margin if you want it even closer */
    /* margin-top: -8px; */
}

.events-footer .click {
    margin: 0;
}

@media (max-width: 600px) {
    .invitation-card {
        padding: 20px 15px;
    }

    .month {
        font-size: 1.8rem;
        letter-spacing: 6px;
    }

    .day-number {
        font-size: 2.8rem;
    }

    .year {
        font-size: 1.2rem;
    }

    .event-title {
        font-size: 1.8rem;
    }

    .event-column {
        padding: 0 6px;
    }

    .vertical-divider {
        margin: 0 4px;
        min-height: 150px;
    }

    .location-link {
        padding: 0.85rem 0.55rem;
        gap: 0.25rem;
    }

    .location-name {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .location-desc {
        font-size: 0.96rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .location-address {
        font-size: 0.88rem;
        line-height: 1.2;
        letter-spacing: 1px;
        overflow-wrap: anywhere;
    }

    .location-link__pin {
        font-size: 1.05rem;
    }

    .location-link__cta {
        font-size: 0.56rem;
    }
}

@media (min-width: 601px) {
    .location-link {
        padding: 1rem 1rem;
    }

    .location-link__cta {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .invitation-card {
        padding: 20px 15px;
    }

    .month {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .day-name, .time {
        font-size: 0.9rem;
    }

    .day-number {
        font-size: 2.2rem;
    }

    .year {
        font-size: 1.2rem;
    }

    .event-title {
        font-size: 1.6rem;
    }

    .vertical-divider {
        min-height: 140px;
    }

    .location-link {
        padding: 0.75rem 0.45rem;
        gap: 0.2rem;
    }

    .location-name {
        font-size: 0.86rem;
        letter-spacing: 0.8px;
    }

    .location-desc {
        font-size: 0.82rem;
        line-height: 1.15;
        min-height: 2.9em;
    }

    .location-address {
        font-size: 0.78rem;
        line-height: 1.15;
        letter-spacing: 0.7px;
        min-height: 2.9em;
    }

    .location-link__pin {
        font-size: 0.95rem;
    }

    .location-link__cta {
        font-size: 0.5rem;
    }
}

@media (max-width: 360px) {
    .event-column {
        padding: 0 4px;
    }

    .vertical-divider {
        margin: 0 2px;
    }

    .location-name {
        font-size: 0.8rem;
    }

    .location-desc {
        font-size: 0.76rem;
    }

    .location-address {
        font-size: 0.72rem;
    }
}
