.switchbox {
    position: relative;
    display: inline-block;
    width: 3em;
    height: 1em;
    padding: .125em;
    overflow: hidden;
    box-sizing: content-box;
    border: 2px solid darkgrey;
    outline: none;
    border-radius: .75em;
    background-color: white;
    font-size: 1.25em;
    vertical-align: middle;
    cursor: pointer;
    transition: .15s ease-out;
}

.switchbox::before {
    position: relative;
    z-index: 2;
    display: block;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: darkgrey;
    content: '';
    transition: .15s ease-out;
}

.switchbox + label {
    vertical-align: middle;
}

.switchbox-yes,
.switchbox-no {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    font-size: .75em;
    text-transform: uppercase;
    pointer-events: none;
    transition: inherit;
}

.switchbox-yes {
    left: .75em;
    color: white;
    font-weight: bold;
    opacity: 0;
}

.switchbox-no {
    right: .75em;
    color: darkgrey;
    opacity: 1;
}

.switchbox:hover,
.switchbox:focus {
    border-color: var(--theme-easy-switch); /* You probably need to change this! */
    box-shadow: 0 0 .25em var(--theme-easy-switch); /* You probably need to change this too! */
}

.switchbox:hover::before,
.switchbox:focus::before {
    background-color: var(--theme-easy-switch); /* You probably need to change this! */
}

.switchbox.is-pressed {
    border-color: var(--theme-easy-switch); /* You probably need to change this! */
}

.switchbox.is-pressed .switchbox-yes {
    opacity: 1;
}

.switchbox.is-pressed .switchbox-no {
    opacity: 0;
}

.switchbox.is-pressed::before {
    transform: translateX(2em);
    background-color: var(--theme-easy-switch);
}

.switchbox.is-pressed:hover,
.switchbox.is-pressed:focus {
    border-color: rgba(0, 0, 0, .35);
}

.switchbox.is-pressed:hover::before,
.switchbox.is-pressed:focus::before {
    opacity: 0.7;
}

/* Only for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

/* For demo */
:root {
    --theme-easy-switch: #d30060;
}


.cat-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 70px;

}

.switchbox-label {
    font-weight: 700;
    margin: 0;
}

.switchbox-container {
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
    align-items: center;
}


.switchbox-container:has(.switchbox.is-pressed) .is-archive {
    pointer-events: none;
    color: var(--theme-easy-switch);
}

.switchbox-container:has(.switchbox:not(.is-pressed)) .is-not-archive {
    pointer-events: none;
    color: var(--theme-easy-switch);
}

.sport-events-cat-filter {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    border-radius: 21px;
    background: var(--theme-easy-switch);
    margin: 0;
    padding: 0 35px;
    color: white;
    font-weight: 700;
}


/* Generic style to hide native select dropdown arrow */
.sport-events-cat-filter {
    -webkit-appearance: none; /* Removes default styling for WebKit browsers like Chrome and Safari */
    -moz-appearance: none; /* Removes default styling for Firefox */
    appearance: none;
    background-image: url('arrow.svg'); /* Optional: path to your custom arrow image */
    background-repeat: no-repeat;
    background-position: right 35px center; /* Position the custom arrow to the right */
    background-size: 12px; /* Size of the custom arrow */
}

/* Remove IE10+ dropdown arrow */
.sport-events-cat-filter::-ms-expand {
    display: none;
}


.event-discover-more {
    color: black;
    font-weight: 500;
    text-decoration: underline;
}


.inner-box.is-event {
    border: 1px solid var(--theme-easy-switch);
    height: 100% !important;
}


@media only screen and  (max-width: 768px) {
    .cat-filter-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
        align-items: unset;
    }


    .switchbox-label {
        font-size: 14px;
    }

}

@media only screen and (min-width: 300px) {

    .switchbox-container {
        display: flex;

    }
}

.content-side .type-event .attachment-post-thumbnail {
    aspect-ratio: 2560/1707 !important;
}

.is-event-flex{
    display: flex;
}
