.tkd-wt-calendar {
    color: #f5f6f8;
    font-family: inherit;
    margin: 25px 0;
}

.tkd-wt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.tkd-wt-filters select {
    min-width: 190px;
    max-width: 100%;
    padding: 12px 15px;
    color: #f5f6f8;
    background: #191e25;
    border: 1px solid #343b45;
    border-radius: 5px;
    font-size: 14px;
}

.tkd-wt-calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 25px 0 18px;
}

.tkd-wt-calendar-navigation h2 {
    color: #f5f6f8;
    font-size: 23px;
    margin: 0;
    min-width: 190px;
    text-align: center;
    text-transform: capitalize;
}

.tkd-wt-calendar-navigation button {
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    background: #ef3038;
    border: 0;
    border-radius: 5px;
    font-size: 22px;
    cursor: pointer;
}

.tkd-wt-calendar-navigation button:hover {
    background: #ff454d;
}

.tkd-wt-calendar-grid {
    overflow: hidden;
    background: #191e25;
    border: 1px solid #303741;
    border-radius: 7px;
}

.tkd-wt-weekdays,
.tkd-wt-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tkd-wt-weekdays {
    background: #252c35;
}

.tkd-wt-weekdays > div {
    padding: 13px 5px;
    color: #c5cbd3;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.tkd-wt-day {
    min-width: 0;
    min-height: 112px;
    padding: 8px;
    border-top: 1px solid #303741;
    border-right: 1px solid #303741;
    background: #191e25;
}

.tkd-wt-day:nth-child(7n) {
    border-right: 0;
}

.tkd-wt-day-empty {
    background: #14191f;
}

.tkd-wt-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-bottom: 6px;
    color: #e2e5e9;
    font-size: 13px;
}

.tkd-wt-day-today .tkd-wt-day-number {
    color: #fff;
    background: #ef3038;
    border-radius: 50%;
}

.tkd-wt-day-event {
    display: block;
    margin: 3px 0;
    padding: 5px 6px;
    overflow: hidden;
    color: #fff !important;
    background: #394655;
    border-left: 3px solid #ef3038;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.35;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.tkd-wt-day-event:hover {
    background: #4a596b;
}

.tkd-wt-day-event.status-postponed {
    border-left-color: #e6a23c;
}

.tkd-wt-day-event.status-cancelled {
    border-left-color: #777;
    opacity: 0.65;
    text-decoration: line-through !important;
}

.tkd-wt-day-event.status-completed {
    border-left-color: #4aaf78;
}

.tkd-wt-events {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.tkd-wt-event {
    min-width: 0;
    padding: 22px;
    background: #191e25;
    border: 1px solid #292f38;
    border-left: 3px solid #ef3038;
    border-radius: 6px;
}

.tkd-wt-event-date {
    margin-bottom: 12px;
    color: #ef454d;
    font-size: 14px;
    font-weight: 700;
}

.tkd-wt-event h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
}

.tkd-wt-event h3 a {
    color: #f5f6f8;
    text-decoration: none;
}

.tkd-wt-event h3 a:hover {
    color: #ff454d;
}

.tkd-wt-event p {
    margin: 7px 0;
    color: #b9c0ca;
    font-size: 14px;
    line-height: 1.6;
}

.tkd-wt-event-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 17px;
}

.tkd-wt-event-links a {
    color: #ef454d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.tkd-wt-event-links a:hover {
    color: #fff;
}

.tkd-wt-no-results {
    grid-column: 1 / -1;
    padding: 20px;
    color: #b9c0ca;
}

@media (max-width: 767px) {
    .tkd-wt-filters {
        flex-direction: column;
    }

    .tkd-wt-filters select {
        width: 100%;
    }

    .tkd-wt-calendar-navigation {
        gap: 12px;
    }

    .tkd-wt-calendar-navigation h2 {
        min-width: 0;
        font-size: 19px;
    }

    .tkd-wt-calendar-navigation button {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
    }

    .tkd-wt-weekdays > div {
        padding: 9px 2px;
        font-size: 11px;
    }

    .tkd-wt-day {
        min-height: 75px;
        padding: 3px;
    }

    .tkd-wt-day-number {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .tkd-wt-day-event {
        padding: 3px;
        font-size: 9px;
    }

    .tkd-wt-events {
        grid-template-columns: 1fr;
    }

    .tkd-wt-event {
        padding: 18px;
    }
}

/* Исправление заголовка месяца в теме Bridge */
.tkd-wt-calendar .tkd-wt-calendar-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    min-height: 45px;
}

.tkd-wt-calendar .tkd-wt-month-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    min-width: 190px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #f5f6f8 !important;
    font-size: 23px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-indent: 0 !important;
    text-transform: capitalize !important;
    overflow: visible !important;
    clip: auto !important;
}

/* Контраст заголовка месяца */
.tkd-wt-calendar .tkd-wt-calendar-navigation {
    background: #191e25 !important;
    padding: 12px 0 !important;
    border-radius: 5px;
}

.tkd-wt-calendar .tkd-wt-month-title {
    color: #ffffff !important;
    background: #191e25 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Контраст заголовка месяца */
.tkd-wt-calendar .tkd-wt-calendar-navigation {
    background: #191e25 !important;
    padding: 12px 0 !important;
    border-radius: 5px;
}

.tkd-wt-calendar .tkd-wt-month-title {
    color: #ffffff !important;
    background: #191e25 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Тёмная область календаря на светлом фоне Bridge */
.tkd-wt-calendar {
    background: #191e25 !important;
    color: #f5f6f8 !important;
    padding: 20px !important;
    border-radius: 8px;
}

.tkd-wt-calendar .tkd-wt-calendar-navigation {
    background: #191e25 !important;
}

.tkd-wt-calendar .tkd-wt-month-title {
    color: #ffffff !important;
    background: transparent !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* Кнопка сброса фильтров */
.tkd-wt-calendar .tkd-wt-reset {
    padding: 12px 18px !important;
    color: #ffffff !important;
    background: #ef3038 !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tkd-wt-calendar .tkd-wt-reset:hover {
    background: #ff454d !important;
}

/* Статусы соревнований */
.tkd-wt-calendar .tkd-wt-event-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin: 6px 0;
}

.tkd-wt-calendar .tkd-wt-status-planned {
    color: #b8e6c5;
    background: #174d2c;
}

.tkd-wt-calendar .tkd-wt-status-postponed {
    color: #ffe0a3;
    background: #684915;
}

.tkd-wt-calendar .tkd-wt-status-cancelled {
    color: #ffc1c1;
    background: #681f25;
}

.tkd-wt-calendar .tkd-wt-status-completed {
    color: #c9d7ff;
    background: #263b70;
}

/* Улучшенное оформление карточек соревнований */
.tkd-wt-calendar .tkd-wt-event {
    position: relative;
    padding: 24px !important;
    background: #191e25 !important;
    border: 1px solid #343b45 !important;
    border-left: 4px solid #ef3038 !important;
    border-radius: 8px !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tkd-wt-calendar .tkd-wt-event:hover {
    transform: translateY(-3px);
    border-color: #ef454d !important;
}

.tkd-wt-calendar .tkd-wt-event-date {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    color: #ffffff !important;
    background: #343b45;
    border-radius: 4px;
    font-size: 13px;
}

.tkd-wt-calendar .tkd-wt-event h3 {
    margin-bottom: 16px !important;
    font-size: 21px !important;
    line-height: 1.4 !important;
}

.tkd-wt-calendar .tkd-wt-event p {
    margin: 9px 0 !important;
    line-height: 1.6;
}

.tkd-wt-calendar .tkd-wt-event-links {
    padding-top: 14px;
    border-top: 1px solid #343b45;
    gap: 10px 18px;
}

.tkd-wt-calendar .tkd-wt-event-links a {
    display: inline-block;
    padding: 7px 10px;
    background: #292f38;
    border-radius: 4px;
}

.tkd-wt-calendar .tkd-wt-event-links a:hover {
    background: #ef3038;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .tkd-wt-calendar .tkd-wt-event {
        padding: 18px !important;
    }
}

/* Логотип организатора в карточке соревнования */
.tkd-wt-calendar .tkd-wt-event {
    position: relative;
    padding-right: 190px !important;
    min-height: 180px;
}

.tkd-wt-calendar .tkd-wt-event-logo {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 135px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #ffffff;
    border-radius: 7px;
    box-sizing: border-box;
}

.tkd-wt-calendar .tkd-wt-organizer-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .tkd-wt-calendar .tkd-wt-event {
        padding-right: 18px !important;
        padding-top: 145px !important;
    }

    .tkd-wt-calendar .tkd-wt-event-logo {
        top: 18px;
        right: 18px;
        width: 110px;
        height: 110px;
    }
}

/* Флаг страны в карточке соревнования */
.tkd-wt-calendar .tkd-wt-event-location {
    display: flex;
    align-items: center;
    gap: 9px;
}

.tkd-wt-calendar .tkd-wt-country-flag {
    display: inline-block;
    width: 27px;
    height: 19px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
    flex: 0 0 auto;
}

/* Исправление ширины карточек соревнований */
.tkd-wt-calendar .tkd-wt-events {
    grid-template-columns: minmax(0, 1fr) !important;
}

.tkd-wt-calendar .tkd-wt-event {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 190px !important;
}

@media (max-width: 767px) {
    .tkd-wt-calendar .tkd-wt-event {
        padding-right: 18px !important;
        padding-top: 145px !important;
    }
}

/* =========================================
   ФИНАЛЬНОЕ ОФОРМЛЕНИЕ КАРТОЧЕК СОРЕВНОВАНИЙ
   ========================================= */

.tkd-wt-calendar .tkd-wt-events {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin-top: 30px !important;
}

.tkd-wt-calendar .tkd-wt-event {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    padding: 22px 22px 22px 12px !important;
    padding-right: 125px !important;
    background: #191e25 !important;
    border: 1px solid #343b45 !important;
    border-left: 4px solid #ef3038 !important;
    border-radius: 9px !important;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.tkd-wt-calendar .tkd-wt-event:hover {
    transform: translateY(-3px);
    border-color: #ef454d !important;
}

.tkd-wt-calendar .tkd-wt-event-logo {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 88px !important;
    height: 88px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    background: #fff !important;
    border-radius: 7px !important;
    box-sizing: border-box !important;
}

.tkd-wt-calendar .tkd-wt-organizer-logo {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.tkd-wt-calendar .tkd-wt-event-date {
    display: inline-block;
    margin-bottom: 12px !important;
    padding: 6px 10px;
    color: #fff !important;
    background: #303945 !important;
    border-radius: 4px;
    font-size: 12px !important;
    font-weight: 600;
}

.tkd-wt-calendar .tkd-wt-event h3 {
    margin: 0 0 15px !important;
    font-size: 19px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

.tkd-wt-calendar .tkd-wt-event h3 a {
    color: #f5f6f8 !important;
}

.tkd-wt-calendar .tkd-wt-event p {
    margin: 9px 0 !important;
    color: #c5cbd3;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.tkd-wt-calendar .tkd-wt-event-location {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
}

.tkd-wt-calendar .tkd-wt-country-flag {
    width: 24px !important;
    height: 17px !important;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 auto;
}

.tkd-wt-calendar .tkd-wt-event-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 17px !important;
    padding-top: 14px !important;
    border-top: 1px solid #343b45;
}

.tkd-wt-calendar .tkd-wt-event-links a {
    display: inline-block;
    padding: 7px 10px;
    color: #e5e8ec !important;
    background: #29313b !important;
    border-radius: 4px;
    font-size: 12px !important;
    line-height: 1.4;
    transition: background .2s ease;
}

.tkd-wt-calendar .tkd-wt-event-links a:hover {
    color: #fff !important;
    background: #ef3038 !important;
}

@media (max-width: 900px) {
    .tkd-wt-calendar .tkd-wt-events {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .tkd-wt-calendar .tkd-wt-event {
        padding: 112px 18px 18px 12px !important;
    }

    .tkd-wt-calendar .tkd-wt-event-logo {
        top: 16px !important;
        left: 18px !important;
        right: auto !important;
        width: 82px !important;
        height: 82px !important;
    }

    .tkd-wt-calendar .tkd-wt-event h3 {
        font-size: 18px !important;
    }
}


/* Полная ширина календаря на мобильных устройствах */
@media (max-width: 767px) {
    body.page-id-29127 .container_inner.default_template_holder.page_container_inner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    body.page-id-29127 .tkd-wt-calendar,
    body.page-id-29127 .tkd-wt-events {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Флаг страны и герб города */
.tkd-wt-calendar .tkd-wt-event-location {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    margin: 12px 0 16px !important;
}

.tkd-wt-calendar .tkd-wt-location-row {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 28px;
    color: #d7dce3 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.tkd-wt-calendar .tkd-wt-country-flag {
    display: block !important;
    width: 24px !important;
    height: 16px !important;
    object-fit: cover !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}

.tkd-wt-calendar .tkd-wt-city-coat {
    display: block !important;
    width: 24px !important;
    height: 28px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

