/* --- VARIABLES --- */
:root {
    --c-orange: #E29529;
    --c-btn-orange: #c75b39;
    --c-blue: #2b3f60;
    --c-dark-text: #30405a;
    --c-white: #ffffff;

    /* Beige Color */
    --c-beige-bg: #e2d6c3;

    /* A slightly darker version of the beige for accents */
    --c-beige-darker: #d1c4b0;
    --c-border: #e0e0e0;
}

.workshop-main-wrapper {
    padding: 40px 0 80px;
    background: var(--c-beige-bg);
    min-height: 80vh;
}

.workshop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- VIEW SWITCHER --- */
.view-switcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-main-title {
    font-size: 2.2rem;
    color: var(--c-blue);
    margin: 0;
}

.view-toggle {
    display: inline-flex;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.toggle-btn {
    padding: 10px 20px;
    text-decoration: none;
    color: #777;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.toggle-btn:hover {
    color: var(--c-blue);
    background: #eee;
}

.toggle-btn.active {
    background: var(--c-blue);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- COMMON SECTION STYLES --- */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--c-blue);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    margin-right: 20px;
}

.section-line {
    height: 2px;
    background: #998c7a;
    opacity: 0.3;
    width: 100%;
}

.past-section-wrapper {
    margin-top: 80px;
    opacity: 0.8;
}

.no-events-msg {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    color: #777;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* --- CARD/LIST STYLES --- */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.workshop-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s;
}

.workshop-card:hover {
    transform: translateY(-5px);
}

.card-thumb {
    height: 220px;
    position: relative;
    overflow: hidden;
    display: block;
    background: #eee;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshop-card.is-past {
    background: #fff;
    border: 1px solid var(--c-border);
    box-shadow: none;
}

.workshop-card.is-past .card-thumb {
    filter: grayscale(100%);
    opacity: 0.8;
}

.past-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta Top (Date + Cats) */
.card-meta-top {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.card-date {
    color: var(--c-btn-orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Category Styles */
.card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.cat-link {
    font-size: 0.7rem;
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s;
}

.cat-link:hover {
    background: var(--c-blue);
    color: #fff;
}

.card-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    line-height: 1.3;
    width: 100%;
}

.card-title a {
    color: var(--c-blue);
    text-decoration: none;
}

/* Info Block Styles */
.card-info-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.info-item {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: #999;
    width: 16px;
    text-align: center;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.btn-text {
    font-weight: 700;
    color: var(--c-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

/* BUTTON STYLES */
.btn-action {
    background: var(--c-btn-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

/* DISABLED BUTTON STYLE */
.btn-disabled {
    background: #e0e0e0;
    color: #999;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: not-allowed;
    display: inline-block;
}

.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--c-blue);
    border-radius: 50%;
    text-decoration: none;
    margin: 0 5px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--c-btn-orange);
    color: #fff;
}

/* --- CALENDAR STYLES --- */
.calendar-layout {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.calendar-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--c-blue);
    color: #fff;
}

.cal-month-title {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.cal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--c-border);
}

.cal-day-header {
    text-align: center;
    padding: 15px 5px;
    background: var(--c-beige-darker);
    font-weight: 700;
    color: var(--c-btn-orange);
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--c-border);
    border-right: 1px solid var(--c-border);
}

.cal-day-header:nth-child(7n) {
    border-right: none;
}

.cal-cell {
    min-height: 140px;
    border-right: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: 10px;
    background: #fff;
}

.cal-cell:nth-child(7n) {
    border-right: none;
}

.cal-cell.is-empty {
    background: var(--c-beige-darker);
}

.cal-cell.is-today {
    background: #fffcf5;
    box-shadow: inset 0 0 0 2px var(--c-orange);
}

.cal-date-number {
    font-weight: 700;
    color: #aaa;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.is-today .cal-date-number {
    color: var(--c-orange);
}

.cal-events-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cal-event-pill {
    display: block;
    background: var(--c-blue);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.3;
    transition: transform 0.2s;
}

.cal-event-pill:hover {
    background: var(--c-btn-orange);
    transform: translateY(-2px);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .view-switcher-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .card-thumb {
        height: 200px;
    }

    /* Mobile Calendar */
    .calendar-grid {
        display: flex;
        flex-direction: column;
    }

    .cal-month-title {
        font-size: 1.2rem;
        text-align: center;
    }

    .cal-nav-btn {
        padding: 4px 8px;

    }


    .cal-day-header,
    .cal-cell.is-empty {
        display: none;
    }

    .cal-cell {
        min-height: auto;
        border-right: none;
        display: flex;
        gap: 15px;
    }

    .cal-cell:empty {
        display: none;
    }

    .cal-date-number {
        min-width: 30px;
        font-size: 1.2rem;
    }
}