/* Date-led preview of upcoming events on the homepage */
.ttu-home-events {
    --home-event-ink: #102238;
    --home-event-muted: #526b7c;
    --home-event-subtle: #758a99;
    --home-event-orange: #F05A28;
    --home-event-orange-hover: #d94918;
    --home-event-card-bg: #ffffff;
    --home-event-card-border: #e2e8f0;
    --home-event-meta-bg: #f8fafc;
    padding: clamp(60px, 7vw, 100px) 0;
    background: #f7f9fa;
    color: var(--home-event-ink);
    font-family: inherit;
}

.ttu-home-events *, .ttu-home-events *::before, .ttu-home-events *::after {
    box-sizing: border-box;
}

.ttu-home-events__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.ttu-home-events__kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--home-event-orange);
}

.ttu-home-events__kicker::before {
    content: '';
    width: 28px;
    height: 3px;
    flex-shrink: 0;
    background: var(--home-event-orange);
    border-radius: 2px;
}

.ttu-home-events h2 {
    margin: 0;
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--home-event-ink);
}

.ttu-home-events h2 span {
    color: var(--home-event-orange);
}

.ttu-home-events__intro {
    margin: 12px 0 0;
    color: var(--home-event-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 620px;
}

.ttu-home-events__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #cfd9e0;
    border-radius: 10px;
    color: var(--home-event-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    background: #ffffff;
    transition: all .2s ease;
    box-shadow: 0 2px 6px rgba(16, 34, 56, 0.04);
}

.ttu-home-events__all:hover {
    color: #ffffff;
    background: var(--home-event-orange);
    border-color: var(--home-event-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 90, 40, 0.25);
}

/* 3-Column Event Card Grid */
.ttu-home-events__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Single Event Card */
.ttu-home-event-card {
    display: flex;
    flex-direction: column;
    background: var(--home-event-card-bg);
    border: 1px solid var(--home-event-card-border);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 4px 18px rgba(16, 34, 56, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.ttu-home-event-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 32px rgba(16, 34, 56, 0.1);
}

/* Card Header: Date Badge & Category */
.ttu-home-event-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ttu-home-event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 64px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.ttu-home-event-card__day {
    font-size: 24px;
    font-weight: 800;
    color: var(--home-event-ink);
    letter-spacing: -0.5px;
    margin-bottom: 3px;
}

.ttu-home-event-card__month {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ttu-home-event-card__category {
    display: inline-block;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

/* Card Body */
.ttu-home-event-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ttu-home-event-card__title {
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.02em;
    min-height: 52px;
}

.ttu-home-event-card__title a {
    color: var(--home-event-ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.ttu-home-event-card__title a:hover {
    color: var(--home-event-orange);
}

/* Meta Group (Time & Location) */
.ttu-home-event-card__meta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    margin-bottom: 16px;
}

.ttu-home-event-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ttu-home-event-card__meta-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--home-event-orange);
    margin-top: 1px;
}

.ttu-home-event-card__meta-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ttu-home-event-card__meta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ttu-home-event-card__meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ttu-home-event-card__meta-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--home-event-ink);
    line-height: 1.35;
    overflow-wrap: break-word;
}

/* Summary */
.ttu-home-event-card__summary {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--home-event-muted);
    flex-grow: 1;
}

/* Card Footer & Button */
.ttu-home-event-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ttu-home-event-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 18px;
    background-color: var(--home-event-orange);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(240, 90, 40, 0.28);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ttu-home-event-card__btn:hover {
    background-color: var(--home-event-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(240, 90, 40, 0.35);
}

.ttu-home-event-card__btn svg {
    transition: transform 0.2s ease;
}

.ttu-home-event-card__btn:hover svg {
    transform: translateX(3px);
}

/* Empty State */
.ttu-home-events__empty {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 36px;
    border: 1px solid #dbe3e9;
    border-radius: 16px;
    background: #fff;
}

.ttu-home-events__empty-icon {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff0e9;
    color: var(--home-event-orange);
    font-size: 26px;
}

.ttu-home-events__empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 750;
    color: var(--home-event-ink);
}

.ttu-home-events__empty p {
    margin: 0;
    max-width: 720px;
    color: var(--home-event-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1080px) {
    .ttu-home-events__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .ttu-home-events__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 28px;
    }
    .ttu-home-events__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ttu-home-event-card {
        padding: 22px;
    }
    .ttu-home-event-card__title {
        min-height: auto;
    }
}
