/**
 * Masterclasses Template Styles
 *
 * @package ceron
 */

/* Masterclasses Section */
.masterclasses-section {
    padding: 100px 0;
    background: #ffffff;
}

.masterclasses-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Header */
.masterclasses-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    max-width: 868px;
    margin: 0 auto;
}

.masterclasses-header h1 {
    font-weight: 300;
    font-size: 50px;
    line-height: normal;
    text-align: center;
    color: #180a2c;
    margin: 0;
}

.masterclasses-header .description,
.masterclasses-header .description p {
    font-size: 22px;
    line-height: 34px;
    color: #666666;
    text-align: center;
    margin: 0;
}

.masterclasses-header .description p + p {
    margin-top: 12px;
}

.masterclasses-header .description em {
    font-style: italic;
}

/* Filters */
.masterclasses-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-label {
    display: flex;
    align-items: center;
    padding: 2px 0 0 0;
}

.filter-label p {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 20px;
    line-height: normal;
    color: #180a2c;
    margin: 0;
}

.filter-btn {
    background: transparent;
    border: 1px solid #180a2c;
    color: #180a2c;
    padding: 6px 20px 8px;
    border-radius: 100px;
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 16px;
    line-height: normal;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(24, 10, 44, 0.05);
}

.filter-btn.active {
    background: #180a2c;
    color: #ffffff;
    border-color: #180a2c;
}

/* Timeline */
.masterclasses-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

.timeline-line {
    position: absolute;
    left: 163px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #180a2c;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-item {
    display: flex;
    gap: 44px;
    align-items: center;
    transition: opacity 0.3s;
}

.timeline-item.hidden {
    display: none;
}

.timeline-year {
    flex-shrink: 0;
    text-align: right;
    width: 139px;
}

.timeline-year h3 {
    font-weight: 300;
    font-size: 36px;
    line-height: normal;
    color: #180a2c;
    margin: 0;
}

.timeline-content {
    flex: 1;
    max-width: 815px;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-content p {
    font-size: 18px;
    line-height: 30px;
    color: #666666;
    margin: 0;
    display: inline;
}

.timeline-content strong {
    font-weight: 700 !important;
}

.timeline-content p + p {
    margin-top: 16px;
}

.timeline-content em {
    font-style: italic;
}

/* No items message */
.no-items {
    text-align: center;
    font-size: 18px;
    color: #666666;
    padding: 40px 0;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .masterclasses-container {
        padding: 0 40px;
    }

    .timeline-line {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-left: 80px;
        position: relative;
    }

    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
        width: auto;
        text-align: left;
    }

    .timeline-year h3 {
        font-size: 28px;
    }

    .timeline-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .masterclasses-section {
        padding: 60px 0;
    }

    .masterclasses-container {
        gap: 40px;
        padding: 0 24px;
    }

    .masterclasses-header h1 {
        font-size: 36px;
    }

    .masterclasses-header .description {
        font-size: 18px;
        line-height: 28px;
    }

    .masterclasses-filters {
        gap: 12px;
    }

    .filter-label p {
        font-size: 18px;
    }

    .filter-btn {
        font-size: 14px;
        padding: 6px 16px 8px;
    }

    /* Mobile: Year above content with line between */
    .timeline-line {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
        gap: 12px;
        border-left: 2px solid #180a2c;
        padding-left: 20px;
    }

    .timeline-year {
        position: static;
        text-align: left;
    }

    .timeline-year h3 {
        font-size: 24px;
    }

    .timeline-content p {
        font-size: 16px;
        line-height: 26px;
    }
}
