.fusion-fullwidth.fusion-animated {
    z-index: 9;
}

#unified-schedule-container {
    display: flex;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 20px auto;
}

/* Sidebar Filter */
.unified-schedule-sidebar {
    width: 250px;
    padding-right: 30px;
}

.unified-schedule-sidebar h3, .filter-toggle {
    color: #0063AC;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.filter-toggle i {
    display: none;
}

.category-filters {
    list-style: none;
    padding: 0;
}

.category-filters li {
    margin-bottom: 12px;
}

.category-filters label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.category-filters input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #007548;
    margin-right: 10px;
    position: relative;
    display: inline-block;
}

.category-filters input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #007548;
}

.category-filters input[type="checkbox"]:checked + .custom-checkbox:after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Main Area */
.unified-schedule-main {
    flex: 1;
    max-width: 100%;
}

.unified-schedule-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.unified-schedule-top h2, #schedule-title {
    color: #0063AC;
    margin: 0;
    font-size: 1.5rem;
}

.view-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 4px;
}

.toggle-btn {
    border: none;
    background: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Nav Header */
.schedule-header-nav {
    background: #004225;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    position: relative;
}

.schedule-header-nav .nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 20px;
}

.current-date-display {
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.current-date-display:hover {
    opacity: 0.8;
}

.current-date-display i {
    margin-right: 10px;
}

/* Day View Items */
.unified-item {
    display: flex;
    background: #fff;
    margin-top: 15px;
    border-left: 15px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    align-items: center;
}

.item-title-col {
    width: 30%;
    padding-right: 20px;
}

.item-title {
    margin: 0;
    font-size: 1.1rem;
    color: #000;
    font-weight: 700;
}

.item-details-col {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
}

.detail-row {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.detail-row i {
    width: 20px;
    margin-right: 8px;
    color: #888;
}

.item-pills-col {
    width: 25%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.category-pill {
    background: #E9A839;
    color: #3D3832;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Week View Grid */
.week-view-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    margin-top: 20px;
    background: #fff;
    position: relative;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.week-nav-arrow {
    background: #004225;
    color: #fff;
    border: none;
    width: 35px;
    height: 65px; /* Matches day-header height roughly (padding + text) */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    flex-shrink: 0;
}

.week-nav-arrow.prev {
    margin-right: 0;
}

.week-nav-arrow.next {
    margin-left: 0;
}

.week-nav-arrow:hover {
    background: #007548;
}

.week-days-container {
    display: block;
    white-space: nowrap;
    overflow: hidden; /* Prevent native scrollbars from showing */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    font-size: 0; /* Remove space between inline-block elements */
    min-width: 0; /* Essential for grid/flex child to not overflow parent */
    padding-left: 15px; /* Re-adding the gap as padding */
}

.week-days-container::-webkit-scrollbar {
    display: none;
}

.week-day-column {
    display: inline-block;
    vertical-align: top;
    width: calc(25% - 15px); /* Corrected width for 4 columns with 15px margin-right */
    margin-right: 20px;
    white-space: normal; /* Restore normal wrapping for content */
    font-size: 1rem; /* Reset font size for content */
}

.week-day-column:last-child {
    margin-right: 0;
}

.day-header {
    background: #007548;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    border-radius: 4px 4px 0 0;
}

.day-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.day-date {
    font-size: 0.85rem;
    opacity: 0.9;
}

.day-items {
    padding: 0;
}

.compact-item {
    background: #fff;
    border-left: 8px solid #ccc;
    margin-top: 10px;
    padding: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 0 4px 4px 0;
}

.compact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.compact-title {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #333;
}

.compact-detail {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.compact-detail i {
    width: 20px;
    min-width: 20px;
    color: #888;
    font-size: 0.9rem;
}

.compact-pills {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.compact-pills .category-pill {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
    color: #3D3832;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #unified-schedule-container {
        flex-direction: column;
    }
    .unified-schedule-sidebar {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 0;
    }
    .filter-toggle {
        padding: 15px 20px;
        margin-bottom: 0 !important;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 1.4rem !important;
    }
    .filter-toggle i {
        display: block;
        font-size: 1rem;
        transition: transform 0.3s;
        transform: rotate(0deg);
    }
    .unified-schedule-sidebar.collapsed .filter-toggle i {
        transform: rotate(180deg);
    }
    .filter-content {
        padding: 0 20px 20px 20px;
        display: block;
    }
    .unified-schedule-sidebar.collapsed .filter-content {
        display: none;
    }
    .unified-schedule-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
    .unified-schedule-top h2 {
        color: #0063AC;
        font-size: 1.8rem;
        font-weight: 700;
    }
    .view-toggle {
        width: 100%;
        background: #f0f0f0;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0;
        overflow: hidden;
    }
    .toggle-btn {
        flex: 1;
        padding: 12px;
        text-align: center;
        border-radius: 0;
        font-size: 1rem;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .toggle-btn.active {
        background: #FFF5EA;
        color: #000;
        box-shadow: none;
    }
    .toggle-btn:first-child {
        border-right: 1px solid #ddd;
    }
    .unified-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .item-title-col, .item-details-col, .item-pills-col {
        width: 100%;
        padding-right: 0;
    }
    .item-pills-col {
        justify-content: flex-start;
        margin-top: 15px;
    }
    .week-view-grid {
        gap: 0;
    }
    .week-nav-arrow {
        width: 30px;
        height: 65px;
        display: flex;
    }
    .week-nav-arrow.prev {
        margin-right: 0;
    }
    .week-nav-arrow.next {
        margin-left: 0;
    }
    .week-day-column {
        display: inline-block;
        vertical-align: top;
        width: calc(100% - 10px);
        margin-right: 10px;
        white-space: normal;
        font-size: 1rem;
    }
    .week-days-container {
        padding-left: 5px;
    }
}

.registration-link {
    color: #007548;
    text-decoration: underline;
    font-weight: normal;
}

.registration-link:hover {
    text-decoration: none;
}

.compact-detail .registration-link {
    display: block;
    margin-bottom: 4px;
}

/* Modal Styling */
.unified-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-container {
    background: #fff;
    width: 90%;
    max-width: 800px;
    position: relative;
    z-index: 10001;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 10002;
    padding: 0;
}

.modal-detail-content {
    display: flex;
    padding: 0;
}

.modal-left-col {
    width: 40%;
    background: #eee;
}

.modal-left-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-placeholder-img {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
}

.modal-right-col {
    width: 60%;
    padding: 40px;
    position: relative;
}

.modal-title {
    margin-top: 0;
    color: #000;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-details {
    margin-bottom: 30px;
}

.modal-details .detail-row {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #444;
}

.modal-details .detail-row i {
    color: #007548;
    width: 24px;
    font-size: 1.1rem;
}

.modal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-pills .category-pill {
    color: #fff;
    padding: 6px 18px;
    font-size: 0.85rem;
}

.modal-loading {
    padding: 100px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #007548;
}

/* Cards Section Layout */
.unified-cards-section {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
}

.cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cards-section-title {
    color: #0063AC;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

.view-more-btn {
    background-color: #E9A13B;
    color: #3D3832 !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.cards-header i {
    align-content: center;
}

.view-more-btn:hover {
    background-color: #d18d2d;
}

/* Slider / Grid for Cards */
.cards-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.cards-wrapper {
    flex: 1;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 10px; /* For scrollbar if visible */
    scrollbar-width: none; /* Firefox */
}

.cards-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.cards-inner {
    display: flex;
    gap: 20px;
}

@media (min-width: 1024px) {
    .cards-slider-container.hide-desktop-arrows .slider-arrow {
        display: none;
    }

    .cards-inner {
        gap: 20px;
    }

    .event-card {
        flex: 0 0 calc(25% - 15px);
        
        max-width: none;
    }
}

.event-card {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-placeholder-img {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.card-content-wrap {
    display: flex;
    flex: 1;
}

.card-accent-bar.desktop-only {
    width: 8px;
    flex-shrink: 0;
    background-color: #E9A839;
}

.mobile-only {
    display: none;
}

.card-content {
    padding: 20px 20px 25px 20px;
    flex: 1;
}

.card-title {
    color: #0063AC;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-detail {
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.card-detail i {
    width: 20px;
    height: 20px;
    color: #777;
    font-size: 1rem;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-detail strong {
    font-weight: 700;
}

.card-detail.italic {
    font-style: italic;
    color: #444;
}

.rate-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.rate-sep {
    color: #ddd;
    margin: 0 8px;
    font-weight: 100;
}

.card-detail span {
    flex: 1;
}

.slider-arrow {
    background: none;
    border: none;
    color: #68B145;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    color: #0063AC;
}

.slider-nav-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .cards-slider-container .slider-arrow.prev-card-arrow,
    .cards-slider-container .slider-arrow.next-card-arrow {
        display: none;
    }

    .slider-nav-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .cards-slider-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cards-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .view-more-btn {
        justify-content: center;
        width: 100%;
    }

    .cards-wrapper {
        padding-bottom: 0;
        width: 100% !important;
        overflow: visible;
    }

    .cards-inner {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        display: block;
        min-width: 100%;
    }

    .event-card {
        flex: 1 1 100%;
        flex-direction: row;
        max-width: none;
        width: 100%;
        height: auto;
        border: 1px solid #eee;
        margin-bottom: 15px;
        box-sizing: border-box;
        align-items: center;
    }

    .card-image-wrap {
        width: 100px;
        height: 100px;
        min-height: 100px;
        flex-shrink: 0;
        border-radius: 12px 0 0 12px;
    }

    .card-image-wrap .card-accent-bar.mobile-only {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 8px;
        z-index: 2;
    }

    .desktop-only {
        display: none;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .card-details {
        gap: 8px;
    }

    .card-detail i {
        margin-right: 10px;
        color: #999;
    }

    .slider-nav-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        width: 100%;
    }

    .slider-nav-mobile .slider-arrow {
        font-size: 1.5rem;
        color: #68B145;
    }

    .slider-dots {
        display: flex;
        gap: 8px;
    }

    .slider-dot {
        width: 20px;
        height: 20px;
        border: 2px solid #68B145;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s;
    }

    .slider-dot.active {
        background-color: #68B145;
    }
}

@media (max-width: 600px) {
    .modal-detail-content {
        flex-direction: column;
    }
    .modal-left-col, .modal-right-col {
        width: 100%;
    }
    .modal-right-col {
        padding: 20px;
    }
}
