:root {
    --yaguya-dark: #0b4f87;
    --yaguya-light: #1787d6;
    --yaguya-mid: #0f6fb3;
    --yaguya-accent: #f28f3b;
    --text-color: #1f2933;
    --muted-text: #6b7c93;
    --bg-color: #eef3f8;
    --surface-color: #ffffff;
    --surface-alt: #f7fafc;
    --line-color: #d9e2ec;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 12px 24px rgba(11, 79, 135, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text-color);
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.55;
    background:
        radial-gradient(circle at top, rgba(23, 135, 214, 0.14), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, var(--bg-color) 48%, #eef3f8 100%);
}

.inner-width {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.top-auth-bar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(217, 226, 236, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-auth-bar .inner-width {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.top-auth-user {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 15px;
    color: var(--muted-text);
    font-weight: 700;
}

.top-auth-user-link {
    color: var(--yaguya-dark);
    text-decoration: none;
    font-size: 1.05em;
}

.top-auth-note {
    white-space: nowrap;
}

.top-auth-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-auth-form {
    display: inline;
}

.top-auth-bar a,
.top-auth-bar button {
    color: var(--muted-text);
    font: inherit;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.top-auth-bar a:hover,
.top-auth-bar button:hover {
    color: var(--yaguya-dark);
    font-weight: 700;
}

.main-nav-bar {
    background: linear-gradient(135deg, #0b4f87 0%, #0d6bb3 55%, #1787d6 100%);
    padding: 18px 0;
    box-shadow: 0 10px 24px rgba(11, 79, 135, 0.24);
}

.main-nav-bar .inner-width {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.logo img {
    height: 35px;
    width: auto;
    border-radius: 10px;
    background: white;
    padding: 4px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.nav-links {
    display: flex;
    gap: 12px;
    width: 100%;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color 0.2s, transform 0.2s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.container {
    margin: 28px auto;
    padding: 32px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-soft);
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #e9ecef;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.flash-message.error {
    border-color: #ffcccc;
    background: #ffe6e6;
    color: #cc0000;
}

.flash-message.success {
    border-color: #ccffcc;
    background: #e6ffe6;
    color: #008000;
}

.section-card {
    background: var(--surface-color);
    border: 1px solid var(--line-color);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-color);
}

.page-title {
    margin: 0;
    color: var(--yaguya-dark);
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.page-subtitle {
    margin: 6px 0 0;
    color: var(--muted-text);
    font-size: 0.98rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border: none;
    border-radius: 999px;
    background: var(--yaguya-light);
    color: white;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(23, 135, 214, 0.18);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    background: var(--yaguya-mid);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 111, 179, 0.2);
}

.form-control,
select.form-control,
textarea.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line-color);
    border-radius: 12px;
    background: #fff;
    color: var(--text-color);
    font: inherit;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-color);
    background: #fff;
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 700;
}

.pill-link.active {
    color: #fff;
    background: var(--yaguya-light);
    border-color: var(--yaguya-light);
}

.mobile-nav-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}

.show-on-mobile {
    display: none !important;
}

.video-embed {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    margin: 18px 0;
    border-radius: 14px;
    background: #d9e2ec;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.site-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--line-color);
    background: rgba(255, 255, 255, 0.78);
    color: #666;
    font-size: 0.9em;
    text-align: center;
    backdrop-filter: blur(10px);
}

.site-footer-links {
    margin-bottom: 15px;
}

.site-footer-primary {
    color: var(--yaguya-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
}

.site-footer-link {
    color: #666;
    text-decoration: none;
}

.site-footer-divider {
    margin: 0 15px;
    color: #ccc;
}

.site-footer-copy {
    display: inline-block;
    margin-top: 10px;
    color: #777;
    font-weight: 700;
}

@media (max-width: 768px) {
    html {
        font-size: 14px !important;
    }

    .top-auth-bar {
        padding: 10px 0;
        font-size: 0.9rem !important;
    }

    .container {
        margin: 15px auto !important;
        padding: 18px !important;
        border-radius: 18px;
    }

    .main-nav-bar {
        padding: 13px 0 11px;
    }

    .main-nav-bar .inner-width {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 14px;
    }

    .logo {
        display: flex;
        justify-content: center;
    }

    .logo a {
        justify-content: center;
        gap: 10px;
        font-size: 1.54rem !important;
    }

    .logo img {
        height: 31px !important;
        padding: 3px;
        border-radius: 8px;
    }

    .top-auth-bar .inner-width {
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px !important;
        padding: 0 12px !important;
    }

    .top-auth-user {
        min-width: 0;
        margin-right: 0;
        font-size: 0.88rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-auth-actions {
        flex-shrink: 0;
        gap: 10px;
        font-size: 0.88rem;
    }

    .nav-links {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 8px;
        align-items: center;
    }

    .nav-links a {
        font-size: 1.14rem;
        padding: 8px 12px;
        text-align: center;
        scroll-snap-align: start;
    }

    .mobile-nav-scroll {
        padding: 0 2px 2px;
        margin: 0 -2px;
        scroll-snap-type: x proximity;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: flex !important;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
}
