body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #d8e8f0;
    color: var(--green-dark);
    overflow-x: hidden;
    position: relative;
}

header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 7em 5em 2.75em;
    background: #e3edf3;
    z-index: 1;
}

.logo-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 210px;
    height: auto;
    display: block;
}

.title-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.title-container h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
    color: var(--green-dark);
}

.title-container h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    margin: 0.5rem 0 0;
    font-weight: 400;
    color: var(--green-dark);
}

.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0 2rem;
    background: #d8e8f0;
    z-index: 1;
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0 4rem;
    background: #d8e8f0;
    z-index: 1;
}

.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d8e8f0;
    z-index: -1;
    width: 100vw;
    margin: 0;
    padding: 0;
}

.syllabus-container {
    position: relative;
    z-index: 2;
    padding: 2rem;
    box-sizing: border-box;
}

.syllabus-box {
    background: var(--blue-light);
    color: var(--green-dark);
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem 4rem 3rem 4rem;
    border-radius: 35px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.syllabus-section {
    margin-bottom: 2rem;
}

.syllabus-section:last-child {
    margin-bottom: 0;
}

.section-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.syllabus-section h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8rem;
    margin: 0 0 1.5rem;
    color: var(--green-dark);
}

.syllabus-section p {
    margin: 0 0 0.5rem;
    line-height: 1.6;
    font-size: 1.2rem;
    color: black;
    font-family: 'Newsreader', serif;
    font-weight: 400;
}

.syllabus-section p:last-child {
    margin-bottom: 0;
}

.syllabus-section strong {
    color: var(--green-dark);
    font-weight: 600;
    font-family: 'Newsreader', serif;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem 0.3rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.schedule-table th {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--green-dark);
    background: rgba(0, 0, 0, 0.02);
}

.schedule-table td {
    color: black;
    font-family: 'Newsreader', serif;
}

.syllabus-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 1rem;
}

.syllabus-list li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 0;
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    line-height: 1.4;
    color: black;
}

.syllabus-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--green-dark);
    font-size: 1em;
}

.apple-button {
    background: var(--blue-jays);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0rem;
}

.apple-button:hover {
    background: var(--blue-jays-dark);
}

.back-arrow-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: transform 0.1s ease;
}

.back-arrow {
    color: var(--green-dark);
    text-decoration: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.back-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.back-arrow svg {
    display: block;
    margin: auto;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 2rem 1rem 1rem;
    }

    .sticky-footer {
        padding: 1rem 1rem 2rem;
    }

    .logo {
        width: 150px;
    }

    .title-container h1 {
        font-size: 2rem;
    }

    .title-container h2 {
        font-size: 1.2rem;
    }

    .syllabus-container {
        padding: 1rem;
    }

    .syllabus-box {
        padding: 1.5rem;
    }

    .schedule-table {
        display: block;
        overflow-x: auto;
        font-size: 0.9rem;
    }

    .syllabus-section p,
    .syllabus-list li {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .syllabus-container.scrolled .back-arrow-container {
        transform: translateY(calc(-100vh + 20px));
    }
}

footer.class-footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e3edf3;
    padding: 2rem;
}

footer.class-footer .logo-container {
    margin-bottom: 1rem;
}

footer.class-footer .title-container {
    text-align: center;
}

.syllabus-box a {
    color: inherit;
    text-decoration: underline;
}

.syllabus-image {
    display: block;
    margin: 1rem auto;
    max-width: 80%;
    border-radius: 0px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
} 