/* Event Calendar Styles */

* {
    box-sizing: border-box;
}

.event-calendar-wrapper {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.event-calendar-month-header {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    color: #000;
    text-align: center;
    margin: clamp(3rem, 5vw, 4rem) 0 clamp(2rem, 3vw, 3rem) 0;
}

.event-calendar-month-header:first-child {
    margin-top: 0;
}

.event-calendar-item {
    display: flex;
    border: 2.5px solid #f5b9c8;
    border-radius: 12px;
    margin-bottom: clamp(4rem, 7vw, 6rem);
    margin-top: clamp(3rem, 5vw, 4rem);
    overflow: visible;
    background: #fff;
    min-height: 300px;
    position: relative;
}

.event-calendar-left {
    position: relative;
    width: 30%;
    min-width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
}

.event-calendar-image {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-calendar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-calendar-placeholder {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    color: #999;
}

.event-calendar-date-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2.5px solid #f5b9c8;
    border-radius: 8px;
    padding: clamp(0.34rem, 0.85vw, 0.51rem);
    text-align: center;
    width: clamp(51px, 8.5vw, 76.5px);
    height: clamp(51px, 8.5vw, 76.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.event-calendar-day {
    font-size: 25pt;
    font-weight: bold;
    line-height: 1;
    color: #000;
}

.event-calendar-month {
    display: none;
}

.event-calendar-right {
    width: 70%;
    padding: clamp(3.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.event-calendar-content {
    flex-grow: 1;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    max-width: 100%;
    overflow: hidden;
}

.event-calendar-title {
    font-size: clamp(2.16rem, 4.8vw, 3rem);
    font-weight: bold;
    margin: 0 0 clamp(0.75rem, 1.5vw, 1rem) 0;
    color: #000;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.event-calendar-subtitle {
    font-size: clamp(1.32rem, 2.75vw, 1.76rem);
    font-weight: normal;
    margin: 0 0 clamp(0.75rem, 1.5vw, 1rem) 0;
    color: #000;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.event-calendar-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    color: #000;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.event-calendar-description p {
    margin: 0 0 clamp(0.5rem, 1vw, 1rem) 0;
}

.event-calendar-description p:last-child {
    margin-bottom: 0;
}

.event-calendar-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    padding-top: clamp(1rem, 2vw, 1.5rem);
    border-top: 3px solid #f5b9c8;
    margin-top: auto;
    margin-left: 0;
    margin-right: 0;
}

.event-info-item {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: #000;
    white-space: nowrap;
}

.event-calendar-no-events {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .event-calendar-item {
        flex-direction: column;
        min-height: auto;
        margin-bottom: clamp(3.5rem, 8vw, 5rem);
    }
    
    .event-calendar-left {
        width: 100%;
        min-width: auto;
        min-height: 250px;
    }
    
    .event-calendar-date-badge {
        width: clamp(46.75px, 15.3vw, 63.75px);
        height: clamp(46.75px, 15.3vw, 63.75px);
        padding: clamp(0.255rem, 1.275vw, 0.425rem);
    }
    
    .event-calendar-right {
        width: 100%;
        padding: clamp(2.5rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
    }
    
    .event-calendar-content {
        padding-right: 0;
    }
    
    .event-calendar-info {
        flex-direction: column;
        align-items: center;
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .event-calendar-item {
        border-width: 2.5px;
        margin-bottom: 4rem;
    }
    
    .event-calendar-date-badge {
        border-width: 2.5px;
        width: 46.75px;
        height: 46.75px;
        padding: 0.255rem;
    }
    
    .event-calendar-day {
        font-size: 2rem;
    }
    
    .event-calendar-month {
        font-size: 0.85rem;
    }
}
