:root {
    --primary: #33a9ac;
    --secondary: #ffa646;
    --accent-1: #f86041;
    --accent-2: #982062;
    --accent-3: #343779;
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-main: #f5f7fa;
    --bg-card: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.main-header {
    background: var(--primary);
    padding: 3rem 0;
    color: white;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-logo-circle {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.header-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.header-logo:not([src]) {
    display: none;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
}

.year-selector-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.year-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.year-selector {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.year-selector:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.year-selector:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.year-selector option {
    background: var(--primary);
    color: white;
    padding: 0.5rem;
}

.header-subtitle {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.header-subtitle .highlight {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-right: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
}

.header-description {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 0.75rem;
}

.quarter-header {
    margin-bottom: 1rem;
    margin-top: 50px;
    text-align: center;
}

.quarter-divider {
    width: 100%;
    height: 2px;
    border-top: 2px dashed var(--primary);
    background: transparent;
    margin: 2.5rem 0;
    opacity: 0.6;
}

.quarter-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1rem;
    vertical-align: middle;
}

.quarter-title {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
}

.month-header {
    margin: 2rem 0 1.5rem;
}

.month-name {
    font-size: 1.5rem;
    color: var(--accent-3);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.month-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Weeks Grid */
.weeks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Week Card */
.week-card {
    border-radius: 12px;
    padding: 1.75rem;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.week-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.week-number {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.week-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    min-height: 3.2em;
    display: flex;
    align-items: center;
}

.week-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.week-speaker {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.week-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.week-description-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.week-description {
    flex: 1;
}

.week-icon-container {
    flex-shrink: 0;
    order: -1;
}

.week-icon-container i {
    font-size: 2.5rem;
    color: white;
}

.week-reference {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.week-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.week-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.week-modal {
    background: var(--bg-card);
    border-radius: 18px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    padding: 2.75rem 2.5rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.25s ease;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--text-light);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-week-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.week-modal h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-3);
}

.modal-week-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.modal-outline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.outline-section h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-3);
    margin-bottom: 0.45rem;
}

.outline-section p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

.outline-list {
    padding-left: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

.outline-list li + li {
    margin-top: 0.35rem;
}

.outline-empty {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .header-logo-circle {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }
    
    .header-text-content {
        width: 100%;
    }
    
    .header-top {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .container {
        padding: 0 1rem;
    }

    .main-header h1 {
        font-size: 1.75rem;
    }

    .year-selector-container {
        width: 100%;
    }

    .year-selector {
        width: 100%;
    }

    .weeks-grid {
        grid-template-columns: 1fr;
    }

    .filters-container .container {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}