.home-calendar .calendar-wrapper {
    background: #EFEFEF;
  }

  @media (max-width: 768px) {
    .home-calendar .calendar-wrapper {
      background: white;
    }
  }

  .home-calendar .calendar-wrapper>.wrapper {
    display: flex;
    padding: 40px;
  }

  @media (max-width: 768px) {
    .home-calendar .calendar-wrapper>.wrapper {
      flex-direction: column;
      padding: 0;
    }
  }

  .home-calendar .calendar-wrapper>.wrapper>* {
    flex: 0 0 50%;
    max-width: 50%;
  }

  @media (max-width: 768px) {
    .home-calendar .calendar-wrapper>.wrapper>* {
      flex-basis: 100%;
      max-width: 100%;
    }
  }

  .home-calendar .events {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 90px;
    position: relative;
    justify-content: flex-start;
  }

  @media (max-width: 992px) {
    .home-calendar .events {
      padding-right: 25px;
    }
  }

  @media (max-width: 768px) {
    .home-calendar .events {
      max-width: calc(100% + 50px) !important;
      padding: 25px;
      margin-left: -25px;
      margin-right: -25px;
      background: rgba(72, 72, 72, 0.05);
    }
  }

  .home-calendar .events .events-page {
    transition: opacity 0.3s linear;
  }

  @media (max-width: 768px) {
    .home-calendar .events .event {
      max-width: 318px;
      /* margin: 0 auto; */
    }
  }

  .home-calendar .events .event .title {
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 28.57px;
    margin-bottom: 15px;
  }

  .home-calendar .events .event p.meta {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .home-calendar .calendar {
    width: 100%;
    max-width: 427px;
    margin-left: auto;
    background: #FFF;
    padding: 32px 28px;
  }

  @media (max-width: 992px) {
    .home-calendar .calendar {
      padding-left: 25px;
    }
  }

  @media (max-width: 768px) {
    .home-calendar .calendar {
      padding: 0 0 30px;
      margin-right: auto;
      margin-left: 0;
      max-width: 318px;
    }
  }

  .home-calendar .calendar .month-name {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    line-height: 28.57px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 25px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
  }

  .home-calendar .calendar .month-name>div {
    display: flex;
    align-items: center;
  }

  .home-calendar .calendar .month-name .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 1);
    width: 44px;
    height: 31px;
  }

  .home-calendar .calendar .month-name .arrow.prev {
    margin-left: auto;
    margin-right: 26px;
  }

  .home-calendar .calendar .month-name .arrow:hover {
    background-color: rgba(0, 0, 0, 0.5);
  }

  .home-calendar .calendar table {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .home-calendar .calendar table tr {
    display: flex;
    justify-content: space-between;
    background-color: transparent !important;
  }

  .home-calendar .calendar table tr:not(:empty) {
    margin: 24px 0;
  }

  @media (max-width: 768px) {
    .home-calendar .calendar table tr:not(:empty) {
      margin: 10px 0;
    }
  }

  .home-calendar .calendar table td {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: 600;
    line-height: 40px;
    border: none !important;
    background: transparent !important;
  }

  @media (max-width: 768px) {
    .home-calendar .calendar table td {
      width: 35px;
      height: 35px;
      font-size: 16px;
      line-height: 30px;
    }
  }


  .home-calendar .calendar-title {
    margin-bottom: 40px;
    font-family: var(--e-global-typography-51ba6b5-font-family), Sans-serif;
    font-size: var(--e-global-typography-51ba6b5-font-size);
    font-weight: var(--e-global-typography-51ba6b5-font-weight);
    text-transform: var(--e-global-typography-51ba6b5-text-transform);
    font-style: var(--e-global-typography-51ba6b5-font-style);
    text-decoration: var(--e-global-typography-51ba6b5-text-decoration);
    line-height: var(--e-global-typography-51ba6b5-line-height);
    color: var(--e-global-color-9df92dc);
  }

  .home-calendar .calendar table td.has-event {
    background: #D9D9D999 !important;
    cursor: pointer;
  }

  .home-calendar .calendar table td.selected {
    position: relative;
    background: #000000 !important;
    color: #FFF !important;
  }

  /* Styly pro události */
  .home-calendar .events-slider {
    position: relative;
    height: 100%;
  }

  .home-calendar .events-slider .events-page {
    margin-bottom: 20px;
  }

  .home-calendar .events-slider .events-page .event {
    margin-bottom: 30px;
  }

  .home-calendar .events-slider .events-page .event:last-child {
    margin-bottom: 0;
  }

  /* Stránkování */
  .home-calendar .events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }

  .home-calendar svg.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px;
    box-sizing: content-box;
  }

  .home-calendar svg.pagination-arrow[disabled] {
    opacity: 0.5;
    cursor: default;
  }

  .home-calendar .pagination-numbers {
    margin: 0 15px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .home-calendar .page-number {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.1);
  }
  
  .home-calendar .page-number:hover {
    color: rgba(0, 0, 0, 0.5);
  }
  
  .home-calendar .page-number.active {
    color: #000000;
    cursor: default;
  }

  /* Styly pro sekci s nadcházejícími událostmi */
  .home-calendar .events .upcoming-events {
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Přidejte nebo upravte styly pro vybrané datum */
  .home-calendar .calendar table td.selected {
    background: #000000 !important;
    color: #FFFFFF !important;
  }

  .home-calendar .calendar table td.has-event {
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .home-calendar .calendar table td.has-event:hover {
    background: rgba(0, 0, 0, 0.2) !important;
  }

  /* Proklik z nadpisu akce - vizuálně stejný jako dřív, podtržení až na hover */
  .home-calendar .events .event .title a {
    color: inherit;
    text-decoration: none;
  }

  .home-calendar .events .event .title a:hover,
  .home-calendar .events .event .title a:focus-visible {
    text-decoration: underline;
  }

  /* Dnešní den - třída se generovala, ale neměla žádný styl */
  .home-calendar .calendar table td.current {
    box-shadow: inset 0 0 0 1px #000;
  }

  .home-calendar .calendar table td.current.selected {
    box-shadow: none;
  }
