.fz-calendar-wrapper,
.fz-calendar-wrapper * {
    box-sizing: border-box;
}

.fz-calendar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* Header */

.fz-calendar-header {
    margin-bottom: 28px;
}

.fz-calendar-header h2 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 8px;
    color: #0b3b82;
    font-weight: 800;
}

.fz-calendar-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

/* Month tabs */

.fz-month-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.fz-month-tab {
    appearance: none;
    border: 0;
    min-width: 74px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #053078;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px #0068FF;
    transition: all .25s ease;
}

.fz-month-tab:hover {
    background: #dbeafe;
    color: #217CFF;
    transform: translateY(-2px);
}

.fz-month-tab.active {
    background: linear-gradient(135deg, #0b3b82, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(29, 78, 216, .22);
}

/* Calendar */

#fzCalendarContent {
    transition: opacity .25s ease, transform .25s ease;
}

.fz-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.fz-calendar-weekdays {
    margin-bottom: 12px;
}

.fz-calendar-weekdays div {
    text-align: center;
    font-weight: 800;
    color: #334155;
    padding: 12px;
}

.fz-calendar-day {
    min-height: 120px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 14px;
    position: relative;
    transition: all .25s ease;
}

.fz-calendar-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
}

.fz-calendar-day.empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.fz-calendar-day.has-events {
    cursor: pointer;
    border-color: #bfdbfe;
    background: linear-gradient(to bottom, rgba(37, 99, 235, .04), rgba(37, 99, 235, .01));
}

.fz-calendar-day.has-events:hover {
    border-color: #93c5fd;
}

.fz-day-number {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.fz-event-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    position: absolute;
    top: 14px;
    right: 14px;
}

.fz-day-hover {
    position: absolute;
    left: 14px;
    bottom: 14px;
    font-size: 13px;
    color: #0b3b82;
    font-weight: 700;
    opacity: 0;
    transition: .2s ease;
}

.fz-calendar-day:hover .fz-day-hover {
    opacity: 1;
}

/* Month events */

.fz-month-events {
    margin-top: 52px;
}

.fz-month-events h3 {
    font-size: 28px;
    margin: 0 0 24px;
    color: #0b3b82;
    font-weight: 800;
}

.fz-events-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fz-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.fz-event-card-date {
    min-width: 90px;
    font-weight: 800;
    color: #0b3b82;
}

.fz-event-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0f172a;
}

.fz-event-card p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.6;
}

.fz-event-card a,
.fz-modal-event a {
    display: inline-block;
    color: #0b3b82;
    text-decoration: none;
    font-weight: 700;
}

.fz-event-card a:hover,
.fz-modal-event a:hover {
    text-decoration: underline;
}

.fz-no-events {
    color: #64748b;
}

/* Modal */

.fz-event-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.fz-event-modal.active {
    display: flex;
}

.fz-event-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    border-radius: 26px;
    padding: 34px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .25);
}

.fz-event-modal-content h3 {
    margin: 0 0 16px;
    color: #0b3b82;
    font-weight: 800;
}

.fz-event-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.fz-event-modal-close:hover {
    background: #dbeafe;
    color: #0b3b82;
}

.fz-modal-event:last-child {
    border-bottom: none;
}

.fz-modal-event h4 {
    margin: 0 0 8px;
    color: #0f172a;
}

.fz-modal-event p {
    color: #475569;
}

/* Responsive */

@media (max-width: 768px) {
    .fz-calendar-header h2 {
        font-size: 28px;
    }

    .fz-month-tabs {
        gap: 8px;
    }

    .fz-month-tab {
        min-width: unset;
        flex: 1 1 calc(25% - 8px);
        padding: 10px 12px;
        font-size: 13px;
    }

    .fz-calendar-grid {
        gap: 8px;
    }

    .fz-calendar-day {
        min-height: 90px;
        padding: 10px;
        border-radius: 14px;
    }

    .fz-calendar-weekdays div {
        font-size: 12px;
        padding: 8px;
    }

    .fz-day-number {
        font-size: 15px;
    }

    .fz-events-list {
        grid-template-columns: 1fr;
    }

    .fz-event-card {
        flex-direction: column;
    }
    

}

.fz-calendar-wrapper .fz-month-tab,
.fz-calendar-wrapper .fz-month-tab:visited {
    appearance: none !important;
    border: 1px solid #0068ff !important;
    outline: none !important;
    background: #ffffff !important;
    color: #053078 !important;
    box-shadow: none !important;
}

.fz-calendar-wrapper .fz-month-tab:hover,
.fz-calendar-wrapper .fz-month-tab:focus {
    background: #0054e0 !important;
    color: #ffffff !important;
    border-color: #0054e0 !important;
    box-shadow: 0 10px 24px rgba(0, 84, 224, .18) !important;
}

.fz-calendar-wrapper .fz-month-tab.active,
.fz-calendar-wrapper .fz-month-tab.active:hover,
.fz-calendar-wrapper .fz-month-tab.active:focus {
    background: #0b3b82 !important;
    color: #ffffff !important;
    border-color: #0b3b82 !important;
    box-shadow: 0 12px 28px rgba(11, 59, 130, .25) !important;
}

.fz-event-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.fz-calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -8px;
    margin-bottom: 24px;
}

.fz-calendar-filter {
    border: none;
    background: #eff6ff;
    color: #0b3b82;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.fz-calendar-filter:hover {
    background: #dbeafe;
}

.fz-calendar-filter.active {
    background: #0b3b82;
    color: #ffffff;
}

.fz-calendar-wrapper .fz-calendar-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: -8px !important;
    margin-bottom: 24px !important;
}

.fz-calendar-wrapper .fz-calendar-filter,
.fz-calendar-wrapper .fz-calendar-filter:focus,
.fz-calendar-wrapper .fz-calendar-filter:active {
    border: 1px solid #0068ff !important;
    outline: none !important;
    background: #ffffff !important;
    color: #053078 !important;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.fz-calendar-wrapper .fz-calendar-filter:hover {
    background: #0054e0 !important;
    color: #ffffff !important;
    border-color: #0054e0 !important;
}

.fz-calendar-wrapper .fz-calendar-filter.active,
.fz-calendar-wrapper .fz-calendar-filter.active:hover {
    background: #0b3b82 !important;
    color: #ffffff !important;
    border-color: #0b3b82 !important;
}

.fz-hidden-event {
    display: none !important;
}
/*
|--------------------------------------------------------------------------
| MOBILE AGENDA VIEW
|--------------------------------------------------------------------------
*/

.fz-mobile-agenda {
    display: none;
}

.fz-mobile-event-card {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.fz-mobile-event-date {
    min-width: 64px;
    text-align: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0b3b82, #1d4ed8);
    color: #ffffff;
    padding: 12px 8px;
}

.fz-mobile-event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.fz-mobile-event-date .month {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    opacity: .9;
}

.fz-mobile-event-content {
    flex: 1;
}

.fz-mobile-event-content h4 {
    margin: 8px 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.fz-mobile-event-content p {
    margin: 0 0 10px;
    color: #475569;
    line-height: 1.5;
}

.fz-mobile-event-time {
    font-size: 13px;
    color: #0b3b82 !important;
    font-weight: 700;
}

.fz-mobile-event-content a {
    display: inline-flex;
    margin-top: 4px;
    color: #0b3b82;
    font-weight: 700;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| MOBILE SWITCH
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .fz-calendar-grid,
    .fz-calendar-weekdays,
    .fz-month-events {
        display: none !important;
    }

    .fz-mobile-agenda {
        display: block;
        margin-top: 28px;
    }

    .fz-calendar-header h2 {
        font-size: 24px;
    }
}

.fz-event-contact {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    font-size: 13px;
    color: #475569;
}

.fz-event-contact span,
.fz-event-contact a {
    color: #475569;
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| EVENT CARDS PREMIUM
|--------------------------------------------------------------------------
*/

.fz-event-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    transition: all .25s ease;
}

.fz-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

.fz-event-card-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fz-event-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
}

.fz-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fz-event-card-content {
    padding: 22px;
}

.fz-event-card-date {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 800;
    color: #0b3b82;
}

.fz-event-card-date span {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.fz-event-card h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0f172a;
}

.fz-event-card p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.6;
}

.fz-event-card a,
.fz-modal-event a {
    display: inline-block;
    color: #0b3b82;
    text-decoration: none;
    font-weight: 700;
}

.fz-event-card a:hover,
.fz-modal-event a:hover {
    text-decoration: underline;
}

.fz-event-contact {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    font-size: 13px;
    color: #475569;
}

.fz-event-contact span,
.fz-event-contact a {
    color: #475569;
    font-weight: 600;
}

@media (max-width: 768px) {

    .fz-event-card-content {
        padding: 18px;
    }

    .fz-event-card-image {
        aspect-ratio: 16/10;
    }
}

.fz-modal-event-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f1f5f9;
}

.fz-modal-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fz-modal-event {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.fz-modal-event:last-child {
    margin-bottom: 0;
}

.fz-modal-event h4 {
    font-size: 24px;
    color: #0b3b82;
    margin: 0 0 10px;
}

.fz-modal-event-image {
    margin: -22px -22px 18px;
    border-radius: 22px 22px 0 0;
}

.fz-event-modal-content {
    background: #f8fafc;
}