/* ==========================================================================
   NS Program Events
   ========================================================================== */

.ns-program-wrapper {
    color: #fff;
    padding: 0 0 60px;
    font-family: inherit;
}

/* --------------------------------------------------------------------------
   Filtry
   -------------------------------------------------------------------------- */

.ns-program-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: flex-end;
}


.ns-program-filters--date {
margin-bottom: 2.75rem;
align-items: flex-end;
}

.ns-program-filter-link,
.ns-program-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 0;
    /* color: #fff; */
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
    font-weight: 500;
    font-family: "MonumentGrotesk-medium", sans-serif;
}

.ns-program-filter-link:hover,
.ns-program-filter-item:hover {
    background-color: #fff;
    border-color: #fff;
    color: #111;
}

.ns-program-filter-link.is-active,
.ns-program-filter-item.is-active {
    background-color: #fff;
    color: #111;
    border-color: #fff;
}

/* Ikona kalendáře v Nadcházející */
.ns-program-filter-item--datepicker .ns-icon-calendar {
    display: inline-flex;
    pointer-events: none;
}

/* Datepicker ve filtru */
.ns-program-filter-item--datepicker {
    position: relative;
}

.ns-program-filter-label {
    pointer-events: none;
}

.ns-program-datepicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
}

.ns-program-datepicker::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

/* Menší tlačítka pro rubriky a řazení */
.ns-program-filters--category .ns-program-filter-link,
.ns-program-filters--sort .ns-program-filter-link {
    padding: 8px 16px;
}

/* --------------------------------------------------------------------------
   Dropdown (kategorie, řazení)
   -------------------------------------------------------------------------- */

.ns-program-dropdown {
    position: relative;
    display: inline-block;
}

.ns-program-dropdown__toggle {
    padding: 8px 16px;
    font-size: inherit;
    font-family: inherit;
    color: #fff;
    background: transparent;
}

.ns-program-dropdown__toggle svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ns-program-dropdown.is-open .ns-program-dropdown__toggle svg {
    transform: rotate(180deg);
}

.ns-program-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #1a1a1a;
    border: 2px solid white;
    z-index: 100;
    flex-direction: column;
}

.ns-program-dropdown.is-open .ns-program-dropdown__menu {
    display: flex;
}

.ns-program-dropdown__item {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    font-family: "MonumentGrotesk-medium", sans-serif;
    transition: background-color 0.15s, color 0.15s;
}

.ns-program-dropdown__item:hover {
    background-color: #fff;
    color: #111;
}

.ns-program-dropdown__item.is-active {
    background-color: rgba(255, 255, 255, 0.15);
}

.ns-filters-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-bottom: 40px;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Měsíc
   -------------------------------------------------------------------------- */

.ns-month-group {
    margin-bottom: 100px;
}

.ns-month-group__heading {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* color: rgba(255, 255, 255, 0.5); */
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid white;
}

/* --------------------------------------------------------------------------
   Event card
   -------------------------------------------------------------------------- */

.ns-event-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 30px;
}

.ns-event-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Thumbnail */
.ns-event-card__thumbnail-link {
    flex-shrink: 0;
    width: 100%;
    max-width: 464px;
    text-decoration: none;
}

.ns-event-card__thumbnail {
    width: 100%;
    aspect-ratio: 2 / 1;
    background-size: cover;
    background-position: center;
    background-color: #222;
    transition: opacity 0.2s;
}

.ns-event-card__thumbnail--placeholder {
    background-color: #333;
}

.ns-event-card__thumbnail-link:hover .ns-event-card__thumbnail {
    opacity: 0.85;
}

/* Content */
.ns-event-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ns-event-card__date {
    font-size: 1rem;
    color: white;
    font-weight: 500;
    font-family: "MonumentGrotesk-medium", sans-serif;
}

.ns-event-card__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
}

.ns-event-card__title a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
}

.ns-event-card__excerpt {
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Buttons */
.ns-event-card__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.ns-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 0;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
    white-space: nowrap;
    font-family: "MonumentGrotesk-medium", sans-serif;
}

.ns-btn--primary {
    background-color: #fff;
    color: #111;
    border: 2px solid #fff;
}

.ns-btn--primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: white;
}

.ns-btn--secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid white;
}

.ns-btn--secondary:hover {
    background-color: #fff;
    border-color: #fff;
    color: #111;
}

.ns-btn--secondary svg {
    width: 18px;
    height: 18px;
}
h2.ns-month-group__heading {
    font-size: 1.675rem;
}

.ns-program-wrapper h1 {
    font-family:"Rhymes ";
    margin:0  1.25rem 2.75rem 0;
}

.ns-program-wrapper-heading {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1460px) {
.ns-filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.ns-program-filters {
    margin-bottom: 12px;
}

.ns-program-filters--category {
    margin-right: 12px;
}

.ns-program-filters--date {
    margin-bottom: 20px;
    justify-content: flex-start;
}
}

@media (min-width:769px) and (max-width: 1024px) {
    .ns-event-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.ns-event-card__thumbnail-link {
    display: flex;
    align-items: center;
}

.ns-event-card__thumbnail {
    aspect-ratio: 4 / 3;

}

   }
@media (max-width: 768px) {
    h2.ns-month-group__heading {
    font-size: 2rem;
    }
    .ns-filters-wrapper {
    margin-bottom: 3rem;
    }
    .ns-event-card {
        flex-direction: column;
        gap: 16px;
    }

    .ns-event-card__thumbnail-link {
        width: 100%;
    }

    .ns-event-card__title {
        font-size: 20px;
    }

    .ns-program-filters {
        justify-content: flex-start;
    }

    .ns-event-card__thumbnail-link {
        max-width: unset;
    }

    .ns-event-card {
        margin-bottom: 40px;
        border-bottom:1px solid rgb(255 255 255 / 50%);
        padding-bottom: 40px;
    }

    .ns-btn {
        justify-content: center;
    }

      .ns-program-filters {
    display: none;
  }

  .ns-program-dropdown {
    display: none;
  }

.ns-program-select {
    -webkit-appearance: none; /* Chrome, Safari */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* Modern standard */
    display: block;
    padding: 8px 32px 8px 16px;
    border: 2px solid white;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.7812 1.25L13.1875 0.625C13.0312 0.46875 12.7812 0.46875 12.6562 0.625L7 6.28125L1.3125 0.625C1.1875 0.46875 0.9375 0.46875 0.78125 0.625L0.1875 1.25C0.03125 1.375 0.03125 1.625 0.1875 1.78125L6.71875 8.3125C6.875 8.46875 7.09375 8.46875 7.25 8.3125L13.7812 1.78125C13.9375 1.625 13.9375 1.375 13.7812 1.25Z' fill='white'/%3E%3C/svg%3E%0A");
  background-size: 14px;
  background-position: calc(100% - 14px) center;
  background-repeat: no-repeat;
  outline: none;
  font-family:"MonumentGrotesk-medium", sans-serif;
}

.ns-program-select option{
    color:black
}
.ns-program-wrapper-heading {
    margin-bottom: 12px;
    flex-direction: column;
}

.ns-program-wrapper h1 {
    margin: 1.75rem 0 1.75rem;
}

@media (max-width: 460px) {
    .ns-program-select {
        width: 100%;
        margin-bottom: 8px;
    }

    .ns-program-wrapper-heading {
        margin-bottom: 0;
    }

    .ns-filters-wrapper {
        gap: 0;
    }
}




/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.ns-program-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}
