/* --------------------------------------------------------------------------
   Upcoming Events 2026 Section Styles
   YDS Canada Website - Enhanced High-Visibility Calendar Badges
   -------------------------------------------------------------------------- */

.yds-events-section {
    background-color: #f8f9fa;
    padding-top: 90px;
    padding-bottom: 90px;
    position: relative;
}

.yds-events-header {
    margin-bottom: 50px;
    text-align: center;
}

.yds-events-header .fancy-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #181109;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.yds-events-subtitle {
    font-size: 1.1rem;
    color: #666666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.yds-event-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.yds-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.14);
}

.yds-event-card__image-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.yds-event-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.yds-event-card:hover .yds-event-card__img {
    transform: scale(1.06);
}

/* Category Badge (Top Left) */
.yds-event-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(24, 17, 9, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* High-Visibility Calendar Tile (Top Right) */
.yds-event-calendar-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 82px;
    z-index: 4;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.yds-event-card:hover .yds-event-calendar-badge {
    transform: scale(1.05);
}

.yds-event-calendar-badge__month {
    display: block;
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    letter-spacing: 1px;
}

.yds-event-calendar-badge__day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #181109;
    padding: 6px 10px 8px;
    line-height: 1;
}

.yds-event-card__body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Highlighted Date Pill in Body */
.yds-event-card__meta-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #d84315;
    background: #fbe9e7;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
    border: 1px solid rgba(216, 67, 21, 0.15);
}

.yds-event-card__meta-date i {
    font-size: 1rem;
}

.yds-event-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: #181109;
}

.yds-event-card__title a {
    color: #181109;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yds-event-card__title a:hover {
    color: #e65100;
}

.yds-event-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 22px;
    flex-grow: 1;
}

.yds-event-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

.yds-event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.yds-event-btn--primary {
    background: #181109;
    color: #ffffff !important;
}

.yds-event-btn--primary:hover {
    background: #e65100;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(230, 81, 0, 0.35);
}

.yds-event-btn--secondary {
    background: #f0f2f5;
    color: #333333 !important;
}

.yds-event-btn--secondary:hover {
    background: #e2e8f0;
    color: #111111 !important;
}

@media (max-width: 767.98px) {
    .yds-events-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .yds-events-header .fancy-title h2 {
        font-size: 1.85rem;
    }
    
    .yds-event-card__image-wrap {
        height: 200px;
    }
    
    .yds-event-card__body {
        padding: 20px 18px 18px;
    }
    
    .yds-event-card__title {
        font-size: 1.2rem;
    }

    .yds-event-calendar-badge {
        min-width: 72px;
        top: 12px;
        right: 12px;
    }

    .yds-event-calendar-badge__day {
        font-size: 1.25rem;
        padding: 4px 8px 6px;
    }
    
    .yds-event-card__footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .yds-event-btn {
        width: 100%;
    }
}
