/* =========================================
   TKM UPCOMING EVENTS & TRAINING
   Site style: Inter, navy #00243F, grey #4B5563,
   pale blue #EEF5FA, red #D62828.
========================================= */
.tkm-evt-section {
    background: #EEF5FA;
    padding: 80px 20px;
    font-family: "Inter", sans-serif;
}

.tkm-evt-section *,
.tkm-evt-section *::before,
.tkm-evt-section *::after { box-sizing: border-box; }

.tkm-evt-inner { max-width: 1140px; margin: 0 auto; }

.tkm-evt-head { text-align: center; margin-bottom: 46px; }

.tkm-evt-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(214, 40, 40, 0.1);
    color: #D62828;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.tkm-evt-title {
    margin: 0 0 14px;
    color: #00243F;
    font-family: "Inter", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

.tkm-evt-sub {
    max-width: 660px;
    margin: 0 auto;
    color: #4B5563;
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- CAROUSEL ---------- */
.tkm-evt-carousel { position: relative; }

.tkm-evt-track {
    position: relative;
    display: flex;
    gap: 26px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* room for the card hover lift + shadow */
    padding: 10px 4px 30px;
    margin: -10px -4px -30px;
    outline: none;
}

.tkm-evt-track::-webkit-scrollbar { display: none; }

.tkm-evt-track:focus-visible { box-shadow: inset 0 0 0 2px rgba(214, 40, 40, 0.4); border-radius: 12px; }

/* ---------- CARDS ---------- */
.tkm-evt-card {
    flex: 0 0 calc((100% - 52px) / 3);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 26px 24px 24px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tkm-evt-card:hover {
    transform: translateY(-6px);
    border-color: #D62828;
    box-shadow: 0 14px 34px rgba(0, 36, 63, 0.12);
}

.tkm-evt-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: #D62828;
    color: #FFFFFF;
    line-height: 1.1;
}

.tkm-evt-date-day { font-size: 22px; font-weight: 700; }

.tkm-evt-date-month {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tkm-evt-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: #D62828;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.tkm-evt-card-title {
    margin: 0 0 12px;
    color: #00243F;
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.tkm-evt-meta {
    margin: 0 0 14px;
    color: #4B5563;
    font-size: 13px;
    line-height: 1.9;
}

.tkm-evt-meta span { display: block; }

.tkm-evt-desc {
    margin: 0 0 22px;
    color: #4B5563;
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
}

/* ---------- RED BUTTON ---------- */
.tkm-evt-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--tkm-btn-bg, #D62828);
    border-radius: 12px;
    background-color: var(--tkm-btn-bg, #D62828);
    color: var(--tkm-btn-color, #FFFFFF) !important;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

a.tkm-evt-btn:hover,
a.tkm-evt-btn:focus {
    background-color: var(--tkm-btn-hover-bg, #00243F);
    border-color: var(--tkm-btn-hover-bg, #00243F);
    color: var(--tkm-btn-hover-color, #FFFFFF) !important;
}

.tkm-evt-btn--static { cursor: default; }

.tkm-evt-card .tkm-evt-btn { align-self: flex-start; padding: 10px 24px; }

/* ---------- CLICKABLE CARD (only when a Card Link is set) ---------- */
.tkm-evt-card { position: relative; }

.tkm-evt-card-link {
    color: inherit !important;
    text-decoration: none !important;
    outline: none;
    transition: color 0.3s ease;
}

/* Stretch the title link over the whole card */
.tkm-evt-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
}

.tkm-evt-card-link:focus-visible::after { box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.45); }

.tkm-evt-card.is-linked:hover .tkm-evt-card-link { color: #D62828 !important; }

/* Keep the button clickable on its own, above the card link */
.tkm-evt-card .tkm-evt-btn { position: relative; z-index: 2; }

/* ---------- ARROWS + DOTS ---------- */
.tkm-evt-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 34px;
}

.tkm-evt-nav[hidden] { display: none; }

.tkm-evt-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    background: #FFFFFF;
    color: #D62828;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.tkm-evt-arrow svg { width: 22px; height: 22px; fill: currentColor; }

.tkm-evt-arrow:hover:not(:disabled),
.tkm-evt-arrow:focus-visible {
    background: #D62828;
    border-color: #D62828;
    color: #FFFFFF;
    outline: none;
}

.tkm-evt-arrow:disabled { opacity: 0.4; cursor: default; }

.tkm-evt-dots { display: flex; align-items: center; gap: 8px; }

.tkm-evt-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 36, 63, 0.18);
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.tkm-evt-dot:hover { background: rgba(214, 40, 40, 0.5); }

.tkm-evt-dot.is-active { width: 26px; background: #D62828; }

.tkm-evt-dot:focus-visible { outline: 2px solid #00243F; outline-offset: 2px; }

/* ---------- NO EVENTS NOTE ---------- */
.tkm-evt-empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 44px 28px;
    border: 1px dashed rgba(214, 40, 40, 0.45);
    border-radius: 12px;
    background: #FFFFFF;
    text-align: center;
}

.tkm-evt-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(214, 40, 40, 0.1);
}

.tkm-evt-empty-icon svg { width: 30px; height: 30px; fill: #D62828; }

.tkm-evt-empty-title {
    margin: 0 0 10px;
    color: #00243F;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.tkm-evt-empty-text {
    margin: 0 auto;
    max-width: 480px;
    color: #4B5563;
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.tkm-evt-footer { margin-top: 44px; text-align: center; }

.tkm-evt-footer-note {
    margin: 0 0 18px;
    color: #4B5563;
    font-size: 14px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .tkm-evt-card { flex-basis: calc((100% - 26px) / 2); }
    .tkm-evt-title { font-size: 30px; }
}

@media (max-width: 767px) {
    .tkm-evt-section { padding: 56px 20px; }
    .tkm-evt-track { gap: 20px; }
    .tkm-evt-card { flex-basis: 100%; }
    .tkm-evt-title { font-size: 26px; }
    .tkm-evt-sub { font-size: 15px; }
    .tkm-evt-card .tkm-evt-btn { align-self: stretch; }
    .tkm-evt-nav { margin-top: 28px; }
    .tkm-evt-empty { padding: 36px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .tkm-evt-track { scroll-behavior: auto; }
    .tkm-evt-card,
    .tkm-evt-card:hover { transition: none; transform: none; }
}
