/* --- CONTAINER & FILTERS --- */
.tvk-archive-container {
    max-width: 1200px; /* Optional: Constrain width if theme doesn't */
    margin: 0 auto;
    width: 100%;
}

.tvk-filters-bar {
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #eee;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.tvk-filter-inputs {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tvk-filter-group {
    flex: 1;
    min-width: 250px;
}

.tvk-filter-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
}

/* Custom Select Dropdown */
.tvk-select-wrapper {
    position: relative;
}

.tvk-select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background: #f9f9f9;
    cursor: pointer;
    appearance: none; /* Hides default browser arrow */
    outline: none;
    transition: border-color 0.3s;
}

.tvk-select-wrapper select:focus {
    border-color: #DC1D50;
    background: #fff;
}

/* Custom Arrow for Select */
.tvk-select-wrapper:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #888;
    pointer-events: none;
}

/* Checkbox Styling */
.tvk-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    position: relative;
    padding-left: 30px;
    user-select: none;
}

.tvk-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.tvk-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tvk-checkbox-label input:checked ~ .tvk-checkmark {
    background-color: #DC1D50;
    border-color: #DC1D50;
}

.tvk-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tvk-checkbox-label input:checked ~ .tvk-checkmark:after {
    display: block;
}

/* --- GRID LAYOUT --- */
.tvk-events-grid {
    display: grid;
    /* Smart responsive behavior: cards won't get smaller than 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* --- STANDARD PAGINATION --- */
.tvk-pagination-standard {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

/* The PHP paginate_links output with 'type' => 'list' creates a UL */
.tvk-pagination-standard ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.tvk-pagination-standard li {
    margin: 0; /* Reset theme defaults */
}

/* The Links and Spans */
.tvk-pagination-standard .page-numbers {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
    line-height: 1;
}

/* Hover State */
.tvk-pagination-standard a.page-numbers:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #000;
    transform: translateY(-2px);
}

/* Active State */
.tvk-pagination-standard .page-numbers.current {
    background: #DC1D50;
    border-color: #DC1D50;
    color: #fff;
    cursor: default;
    box-shadow: 0 4px 10px rgba(220, 29, 80, 0.3);
}

/* Icon sizing for Next/Prev arrows */
.tvk-pagination-standard .page-numbers svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Rotate the previous arrow */
.tvk-pagination-standard .prev svg {
    transform: rotate(180deg);
}

/* Screen Reader Text Hiding */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --- HELPER MESSAGES & BUTTONS --- */
.tvk-no-events-msg {
    grid-column: 1 / -1; /* Spans full grid width */
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
    color: #666;
    font-size: 18px;
}

.tvk-list-btn-wrap {
    margin-top: 40px;
    text-align: center;
}

.tvk-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #DC1D50;
    color: #DC1D50;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tvk-btn-outline:hover {
    background: #DC1D50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 29, 80, 0.25);
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 600px) {
    .tvk-filters-bar {
        padding: 20px;
    }
    .tvk-filter-inputs {
        flex-direction: column;
        gap: 20px;
    }
    .tvk-filter-group {
        min-width: 100%;
    }
    .tvk-events-grid {
        gap: 20px;
    }
}