@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
    --accent: #9E7E38;
    --accent-deep: #7D632C;
    --ink: #1f2933;
    --muted: #5b6672;
    --paper: rgba(255, 255, 255, 0.92);
    --line: rgba(158, 126, 56, 0.14);
    --line-strong: rgba(158, 126, 56, 0.24);
    --shadow: 0 18px 40px rgba(31, 41, 51, 0.08);
    --shadow-soft: 0 12px 28px rgba(31, 41, 51, 0.07);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.5;
    background:
        radial-gradient(circle at top right, rgba(158, 126, 56, 0.08), transparent 24%),
        linear-gradient(180deg, #f6f4ef 0%, #eef2f1 38%, #f4f5f7 100%);
    color: var(--ink);
}

a:link,
a:visited {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.22s var(--ease-smooth);
}

a:hover,
a:active {
    color: var(--accent-deep);
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 20px;
    font-weight: 700;
    font-family: 'Fraunces', serif;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--muted);
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 249, 247, 0.96);
    border-bottom: 1px solid rgba(158, 126, 56, 0.12);
    box-shadow: 0 6px 20px rgba(31, 41, 51, 0.05);
}

.site-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-brand {
    color: var(--ink) !important;
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-brand:hover {
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(158, 126, 56, 0.06);
    color: #43505d !important;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.18s var(--ease-smooth), color 0.18s var(--ease-smooth), border-color 0.18s var(--ease-smooth), transform 0.18s var(--ease-smooth), box-shadow 0.18s var(--ease-smooth);
}

.site-nav a:hover {
    text-decoration: none;
    color: var(--accent) !important;
    background: rgba(158, 126, 56, 0.12);
    border-color: rgba(158, 126, 56, 0.16);
    transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
    color: var(--accent-deep) !important;
    background: rgba(158, 126, 56, 0.12);
    border-color: rgba(158, 126, 56, 0.18);
}

.site-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 40px;
}

.content,
.content-top {
    margin-left: 0 !important;
    padding: 20px;
    background-color: var(--paper);
    box-shadow: var(--shadow);
    border-radius: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
}

.content:last-child,
.content-top:last-child {
    margin-bottom: 0;
}

.content-top > .page-header {
    margin-bottom: 22px;
}

.content-top > .page-header:last-child {
    margin-bottom: 0;
}

.page-header {
    padding: 28px 30px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 231, 0.88)),
        linear-gradient(180deg, rgba(158, 126, 56, 0.08), transparent);
    box-shadow: var(--shadow-soft);
}

.page-header h1 {
    font-size: 2.6rem;
    margin-bottom: 0;
}

.page-header p {
    margin: 12px 0 0;
    max-width: 920px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.62;
}

.page-intro {
    color: var(--ink) !important;
    font-size: 1.08rem !important;
}

.page-note {
    font-size: 0.98rem !important;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.section-header h2 {
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    gap: 18px;
    justify-content: start;
    width: 100%;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 40px;
}

.course-nav {
    margin-bottom: 16px;
    font-size: 0.96rem;
    color: var(--muted);
}

.course-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.summary-card {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}

.summary-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-value {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.info-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.info-card p,
.info-card ul {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.info-card ul {
    padding-left: 18px;
}

.info-card li + li {
    margin-top: 8px;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 26, 32, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease-smooth);
    z-index: 1200;
}

.gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal-panel {
    position: relative;
    max-width: min(1080px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 60px rgba(17, 24, 39, 0.24);
    transform: translateY(8px) scale(0.985);
    transition: transform 0.18s var(--ease-smooth);
}

.gallery-modal.active .gallery-modal-panel {
    transform: translateY(0) scale(1);
}

.gallery-modal-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    border-radius: 16px;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(31, 41, 51, 0.92);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
}

@media screen and (max-width: 768px) {
    .site-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .site-shell {
        padding: 14px 14px 28px;
    }

    .content,
    .content-top {
        padding: 14px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .page-header {
        padding: 22px 18px;
        margin-bottom: 22px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        max-width: none;
        font-size: 0.98rem;
        line-height: 1.58;
    }

    h1,
    h2 {
        font-size: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .page-shell {
        padding: 14px 14px 28px;
    }

    .gallery-modal {
        padding: 14px;
    }

    .gallery-modal-panel {
        max-width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
        padding: 10px;
        border-radius: 18px;
    }

    .gallery-modal-image {
        max-height: calc(100vh - 64px);
    }

    .gallery-modal-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 520px) {
    .content,
    .content-top {
        padding: 12px;
    }

    .site-nav {
        gap: 8px;
    }

    .site-nav a {
        padding: 7px 11px;
        font-size: 0.9rem;
    }
}
