/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D97757;
    --primary-light: #E08B6A;
    --primary-dark: #C4633F;
    --secondary-color: #D97757;
    --accent-color: #B85E3A;
    --text-color: #1a1a1a;
    --text-light: #5a5a5a;
    --text-lighter: #909090;
    --bg-color: #F5F2ED;
    --bg-light: #EDEAE4;
    --bg-dark: #E2DDD6;
    --card-bg: #FFFFFF;
    --border-color: #DDD8D0;
    --error-color: #c94040;
    --success-color: #2d8a52;
    --warning-color: #c98a2d;
    --max-width: 1200px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    background: #F5F2ED;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* ===== Profile Dropdown ===== */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: var(--text-color);
}

.profile-trigger:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-weight: 500;
    color: var(--text-color);
}

.profile-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-lighter);
    transition: transform 0.2s;
}

.profile-dropdown.active .profile-chevron {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    max-width: min(220px, calc(100vw - 32px));
    padding: 6px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: all 0.2s;
    z-index: 1001;
}

.profile-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.profile-dropdown.active .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    line-height: 1.35;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s;
}

.profile-menu-item:first-child {
    border-radius: 12px;
}

.profile-menu-item:last-child {
    border-radius: 12px;
}

.profile-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.profile-menu-item:focus-visible {
    outline: none;
    background: var(--bg-light);
    color: var(--primary-color);
}

.profile-menu-item.danger {
    color: var(--error-color);
}

.profile-menu-item.danger:hover {
    background: rgba(220, 38, 38, 0.08);
}

.profile-menu svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.welcome-msg {
    color: var(--text-lighter);
    font-size: 13px;
}

.admin-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 13px;
}

.auth-link {
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary-color);
}

.auth-link-primary {
    background: var(--primary-color);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.auth-link-primary:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.mobile-auth-dock {
    display: none;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    max-height: 44px;
    max-width: 180px;
    object-fit: contain;
}

.header-apply-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--primary-color);
    background: rgba(217, 119, 87, 0.08);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.header-apply-link:hover {
    background: rgba(217, 119, 87, 0.14);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.main-nav ul {
    display: flex;
    gap: 36px;
    align-items: center;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s;
}

.main-nav a:hover {
    color: var(--text-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a.highlight {
    color: var(--primary-color);
    background: rgba(217, 119, 87, 0.08);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.main-nav a.highlight::after {
    display: none;
}

/* ===== Toast Notifications ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    font-size: 14px;
    font-weight: 500;
    pointer-events: all;
    animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.toast-success {
    background: #fff;
    color: #1a5c35;
    border-color: #b5dfc9;
}

.toast-error {
    background: #fff;
    color: #7a1e1e;
    border-color: #f5c5c5;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-success .toast-icon svg {
    stroke: #2d8a52;
}

.toast-error .toast-icon svg {
    stroke: #c94040;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

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

.toast-close svg {
    width: 15px;
    height: 15px;
}

.toast-hide {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    min-height: 0;
}

/* ===== Hero Section ===== */
.hero {
    padding: 24px 0 44px;
}

.hero .container {
    max-width: 1320px;
}

.hero-banner {
    position: relative;
    min-height: 700px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    background: #1a1a1a;
}

.hero-mobile-title,
.hero-mobile-summary {
    display: none;
}

.hero-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(15, 20, 32, 0.78) 0%, rgba(15, 20, 32, 0.56) 42%, rgba(15, 20, 32, 0.22) 100%),
        linear-gradient(180deg, rgba(7, 10, 18, 0.08) 0%, rgba(7, 10, 18, 0.36) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 700px;
    max-width: 640px;
    padding: 72px 64px;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-content h1 {
    font-size: 68px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.06em;
    line-height: 0.95;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-primary {
    box-shadow: 0 12px 28px rgba(196, 99, 63, 0.28);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.hero-scroll-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
}

.hero-scroll-link svg {
    width: 18px;
    height: 18px;
}

.section-soft {
    background: transparent;
}

.home-section-intro {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.home-section-intro p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.9;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.section-head .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-head .section-title::after {
    margin-left: 0;
}

.section-head-copy {
    max-width: 420px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    text-align: right;
}

.card-action-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.card-action-row .btn {
    flex: 1;
    width: 100%;
}

.card-action-row form {
    flex: 1;
}

.card-action-row form .btn {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 52px 20px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.empty-state p:first-child {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.empty-state p:last-child {
    color: var(--text-lighter);
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #C4633F, #D97757);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 46px;
}

.card-clickable {
    cursor: pointer;
}

.card-clickable:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.25);
}

.editor-shell {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 24px 76px;
}

.editor-header {
    text-align: center;
    margin-bottom: 28px;
}

.editor-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 87, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.editor-header h1 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.editor-header p {
    color: var(--text-light);
    font-size: 15px;
}

.editor-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.06);
}

.editor-card textarea {
    min-height: 320px;
}

.editor-actions {
    margin-top: 40px;
}

.editor-delete {
    margin-top: 18px;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(201, 64, 64, 0.04);
}

.editor-delete h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--error-color);
    margin-bottom: 8px;
}

.editor-delete p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.editor-delete form {
    margin: 0;
}

.editor-delete form .btn-danger {
    width: 100%;
}

.upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-dropzone {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    border: 1.5px dashed var(--border-color);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(217, 119, 87, 0.04) 0%, rgba(255, 255, 255, 0.92) 100%);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.upload-dropzone:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(196, 99, 63, 0.08);
}

.upload-dropzone svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.upload-dropzone strong {
    display: block;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 4px;
}

.upload-dropzone span {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.file-meta {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 13px;
}

.detail-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(217, 119, 87, 0.08);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-danger {
    background: var(--error-color);
    color: #fff;
}

.btn-danger:hover {
    background: #a93636;
    transform: translateY(-1px);
}

.btn-small {
    padding: 7px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 14px 40px;
    font-size: 17px;
}

/* ===== Section Styles ===== */
.section {
    padding: 64px 0;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin: 14px auto 0;
    border-radius: 2px;
}

/* ===== Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.card-text {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 14px;
}

.card-date {
    font-size: 12px;
    color: var(--text-lighter);
}

/* ===== Info Cards ===== */
.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 36px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.info-card h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 18px;
}

.info-card p {
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ===== Activity Detail ===== */
.activity-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.activity-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.activity-header h1 {
    font-size: 30px;
    color: var(--text-color);
    margin-bottom: 14px;
}

.activity-meta {
    color: var(--text-lighter);
    font-size: 13px;
}

.activity-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.activity-content {
    font-size: 16px;
    line-height: 1.9;
}

.activity-content h1,
.activity-content h2,
.activity-content h3 {
    color: var(--text-color);
    margin: 30px 0 14px;
}

.activity-content p {
    margin-bottom: 18px;
}

.activity-content ul,
.activity-content ol {
    margin: 18px 0;
    padding-left: 28px;
}

.activity-content li {
    margin-bottom: 8px;
}

.activity-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-light);
}

.activity-content code {
    background: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.activity-content pre {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

/* ===== Board ===== */
.board-shell {
    max-width: 980px;
    margin: 0 auto;
}

.board-header,
.board-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.board-header {
    margin-bottom: 28px;
}

.board-header h1,
.board-hero h1 {
    font-size: 30px;
    color: var(--text-color);
}

.board-hero {
    margin-bottom: 24px;
    padding: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.05);
}

.board-hero h1 {
    margin-bottom: 10px;
}

.board-hero p {
    color: var(--text-light);
    font-size: 15px;
}

.post-list-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.05);
}

.post-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: rgba(217, 119, 87, 0.06);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
}

.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.post-item:hover {
    background: rgba(217, 119, 87, 0.04);
}

.post-item:focus-visible {
    outline: none;
    background: rgba(217, 119, 87, 0.08);
    box-shadow: inset 0 0 0 2px rgba(217, 119, 87, 0.22);
}

.post-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(217, 119, 87, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.post-info {
    flex: 1;
    min-width: 0;
}

.post-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.45;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-lighter);
}

.post-comments {
    background: var(--primary-color);
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* ===== Post Detail ===== */
.post-detail-shell {
    padding: 48px 24px 72px;
}

.post-detail {
    max-width: 900px;
    margin: 0 auto;
}

.post-header-card,
.post-content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.05);
}

.post-header-card {
    padding: 32px 36px;
    margin-bottom: 24px;
}

.post-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(217, 119, 87, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.post-header-card h1 {
    font-size: 34px;
    color: var(--text-color);
    line-height: 1.25;
    margin-bottom: 20px;
}

.post-author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.post-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 700;
    color: var(--text-color);
}

.post-date {
    color: var(--text-lighter);
    font-size: 13px;
}

.post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-stat {
    color: var(--text-lighter);
    font-size: 13px;
    font-weight: 500;
}

.post-content-card {
    padding: 30px 32px;
}

.post-body,
.markdown-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
    color: var(--text-color);
    line-height: 1.35;
    margin: 32px 0 14px;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre {
    margin-bottom: 18px;
}

.post-body > *:last-child {
    margin-bottom: 0;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 24px;
}

.markdown-body li {
    margin-bottom: 8px;
}

.markdown-body a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.markdown-body code {
    background: var(--bg-dark);
    color: var(--text-color);
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.92em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.markdown-body pre {
    background: #211d1a;
    color: #f8f4ef;
    padding: 20px;
    border-radius: 16px;
    overflow-x: auto;
}

.markdown-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 10px 0 10px 18px;
    color: var(--text-light);
    background: rgba(217, 119, 87, 0.04);
    border-radius: 0 12px 12px 0;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 16px;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
    overflow: hidden;
}

.markdown-body th,
.markdown-body td {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.markdown-body th {
    background: var(--bg-light);
    color: var(--text-color);
}

/* ===== Comments ===== */
.comments-section {
    background: transparent;
    padding: 8px 0 0;
    border-radius: 0;
    margin-top: 24px;
    border: none;
    box-shadow: none;
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.comments-section h3 {
    font-size: 22px;
    color: var(--text-color);
}

.comments-head span {
    color: var(--text-lighter);
    font-size: 13px;
}

.comment-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-form textarea {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    max-height: 120px;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 999px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    background: var(--card-bg);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    overflow: hidden;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .btn {
    height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    flex-shrink: 0;
}

.comment-login-box {
    padding: 14px 2px 18px;
    text-align: left;
    margin-bottom: 20px;
    color: var(--text-light);
}

.comment-login-box a {
    color: var(--primary-color);
    font-weight: 600;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment {
    background: transparent;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}

.comment-date {
    font-size: 12px;
    color: var(--text-lighter);
}

.comment-content {
    line-height: 1.7;
    color: var(--text-light);
    font-size: 14px;
    padding-right: 8px;
}

.comment-content > *:last-child {
    margin-bottom: 0;
}

.comment-delete {
    font-size: 12px;
    color: var(--error-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
}

/* ===== Forms ===== */
.form-section {
    max-width: 580px;
    margin: 0 auto;
    padding: 56px 24px;
}

.form-section h1 {
    font-size: 26px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 36px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1;
    transition: border-color 0.2s;
    background: var(--card-bg);
    color: var(--text-color);
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23909090' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
}

.form-group textarea {
    height: auto;
    padding: 12px 16px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 가로 입력 (학년/반/번호) */
.inline-inputs {
    display: flex;
    gap: 10px;
}

.inline-inputs select,
.inline-inputs input {
    flex: 1;
    width: auto;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-lighter);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.form-actions .btn {
    flex: 1;
}

/* ===== Registration Steps ===== */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 44px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-lighter);
    font-size: 13px;
}

.step.active {
    color: var(--primary-color);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step.active .step-number {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Terms Accordion ===== */
.terms-accordion {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0;
    overflow: hidden;
    background: var(--card-bg);
}

.terms-accordion summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
    background: var(--bg-light);
    border-bottom: 1px solid transparent;
    transition: background 0.2s;
}

.terms-accordion summary::-webkit-details-marker {
    display: none;
}

.terms-accordion summary::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-lighter);
    border-bottom: 2px solid var(--text-lighter);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.terms-accordion[open] summary {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.terms-accordion[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.terms-accordion summary:hover {
    background: var(--bg-dark);
}

.terms-content {
    padding: 24px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-light);
    max-height: 480px;
    overflow-y: auto;
}

.terms-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin: 16px 0 8px;
}

.terms-content h4:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 6px;
}

.terms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}

.terms-content table th {
    background: var(--bg-light);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.terms-content table td {
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    vertical-align: top;
}

.terms-content table tr:nth-child(even) td {
    background: rgba(245, 242, 237, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: rgba(217, 119, 87, 0.06);
    border-radius: 0 0 10px 10px;
    border: 1.5px solid var(--border-color);
    border-top: none;
}

.checkbox-group input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
}

/* ===== Application Form ===== */
.application-form {
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.application-hero {
    text-align: center;
    margin-bottom: 28px;
}

.application-form h1 {
    font-size: 38px;
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.application-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

.application-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.application-guide-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.04);
}

.application-guide-item strong {
    display: block;
    color: var(--text-color);
    font-size: 15px;
    margin-bottom: 6px;
}

.application-guide-item span {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.7;
}

.application-part {
    background: var(--card-bg);
    padding: 30px 30px 26px;
    border-radius: 22px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
}

.application-part-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.application-part-step {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(217, 119, 87, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.application-part h3 {
    color: var(--text-color);
    font-size: 24px;
}

.application-part-desc {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
}

.application-part textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    padding: 18px 20px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.75;
    background: #fcfbf9;
    resize: none;
}

.application-part .char-count {
    text-align: right;
    font-size: 13px;
    color: var(--error-color);
    margin-top: 14px;
    font-weight: 600;
}

.application-part .char-count.warning {
    color: var(--error-color);
}

.application-part .char-count.complete {
    color: var(--success-color);
}

.application-actions {
    margin-top: 40px;
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .application-form {
        padding: 32px 16px 52px;
    }

    .application-form h1 {
        font-size: 30px;
    }

    .application-guide {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .application-part {
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .application-part h3 {
        font-size: 20px;
    }

    .application-part textarea {
        min-height: 260px;
        padding: 16px;
        border-radius: 14px;
    }
}

/* ===== Status Page ===== */
.status-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 56px 24px;
    text-align: center;
}

.status-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 48px 40px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
}

.status-icon svg {
    width: 36px;
    height: 36px;
}

.status-title {
    font-size: 22px;
    color: var(--text-color);
    margin-bottom: 14px;
    font-weight: 700;
}

.status-message {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    margin: 36px 0;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.timeline-dot svg {
    width: 18px;
    height: 18px;
}

.timeline-item.completed .timeline-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.timeline-item.completed .timeline-dot svg {
    stroke: #fff;
}

.timeline-item.current .timeline-dot {
    background: var(--card-bg);
    border-color: var(--primary-color);
    border-width: 3px;
}

.timeline-item.current .timeline-dot svg {
    stroke: var(--primary-color);
}

.timeline-label {
    font-size: 11px;
    color: var(--text-lighter);
    text-align: center;
}

.timeline-item.completed .timeline-label,
.timeline-item.current .timeline-label {
    color: var(--text-color);
    font-weight: 500;
}

/* ===== Member Cards ===== */
.member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.member-grid > .member-card,
.member-grid > a {
    width: 260px;
    flex-shrink: 0;
}

.member-card-link {
    text-decoration: none;
    display: block;
}

.member-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.member-card-staff {
    border: 2px solid var(--primary-color);
}

.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-large {
    width: 96px;
    height: 96px;
    font-size: 36px;
}

.member-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.member-grid-staff .member-name {
    font-size: 20px;
}

.member-role {
    font-size: 12px;
    color: var(--text-lighter);
    margin-bottom: 10px;
}

.member-bio-snippet {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.member-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.member-badge.president {
    background: rgba(217, 119, 87, 0.12);
    color: var(--primary-dark);
    border: 1px solid rgba(217, 119, 87, 0.3);
}

.member-badge.admin {
    background: rgba(217, 119, 87, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(217, 119, 87, 0.2);
}

.member-badge.member {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

/* ===== Admin Panel ===== */
.admin-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

.admin-section h1 {
    font-size: 26px;
    color: var(--text-color);
    margin-bottom: 28px;
    font-weight: 700;
}

.admin-table-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-table-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
}

.admin-table-desc {
    font-size: 13px;
    color: var(--text-lighter);
    margin: 0;
}

.admin-empty {
    text-align: center;
    padding: 32px;
    color: var(--text-lighter);
    font-size: 14px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 36px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--bg-color);
}

.admin-inline-link,
.admin-status-link {
    text-decoration: none;
}

.admin-inline-link {
    color: var(--text-color);
}

.admin-inline-link:hover {
    color: var(--primary-color);
}

.admin-status-link {
    display: inline-flex;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.submitted { background: #fef8ed; color: #7a5a15; border: 1px solid #f0d49a; }
.status-badge.reviewing { background: #edf5fe; color: #1a4d7a; border: 1px solid #a5c8f0; }
.status-badge.exam_waiting { background: #edf7f2; color: #1a5c35; border: 1px solid #a5d9bc; }
.status-badge.exam_passed { background: #edf7f2; color: #1a5c35; border: 1px solid #a5d9bc; }
.status-badge.interview_waiting { background: #f0edf7; color: #4a2d7a; border: 1px solid #c5a5d9; }
.status-badge.accepted { background: rgba(217, 119, 87, 0.1); color: var(--primary-dark); border: 1px solid rgba(217, 119, 87, 0.3); }
.status-badge.rejected { background: #fdeaea; color: #7a1e1e; border: 1px solid #f5b5b5; }

/* ===== About Page ===== */
.about-hero {
    background: #F5F2ED;
    color: var(--text-color);
    padding: 96px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.about-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 2px;
    color: var(--text-color);
}

.about-hero p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-section {
    padding: 72px 0;
}

.about-section:nth-child(even) {
    background: #F5F2ED;
}

.about-content {
    max-width: 880px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 26px;
    color: var(--text-color);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.about-content h2 svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.about-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.feature-card {
    background: var(--card-bg);
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: rgba(217, 119, 87, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
}

.feature-card h3 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Logo Footer ===== */
.footer-logo .logo-image {
    max-height: 28px;
    max-width: 140px;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 48px 0 28px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-info p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 22px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-lighter);
    font-size: 12px;
}

/* ===== Auth Pages (Login & Register) ===== */
.auth-body {
    background: linear-gradient(160deg, #EDE8E0 0%, #F5F2ED 50%, #E8E3DA 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Wave layers - fixed at bottom */
.auth-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 0;
}

.auth-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300%;
    height: 100%;
}

.auth-wave-1 {
    animation: wave-flow 10s linear infinite;
}

.auth-wave-2 {
    animation: wave-flow 14s linear infinite reverse;
    bottom: 10px;
}

.auth-wave-3 {
    animation: wave-flow 18s linear infinite;
    bottom: 20px;
}

/* Extra decorative blobs */
.auth-body::before,
.auth-body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.auth-body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 119, 87, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.auth-body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 99, 63, 0.1) 0%, transparent 70%);
    bottom: 100px;
    left: -80px;
}

@keyframes wave-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* Back button */
.auth-back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
    padding: 9px 16px 9px 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.auth-back-btn:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-3px);
}

.auth-back-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Auth wrapper - centers the card */
.auth-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 24px 100px;
}

/* Flash messages above card */
.auth-flash {
    width: 100%;
    max-width: 580px;
    margin-bottom: 16px;
}

.auth-flash .alert {
    border-radius: 10px;
    font-size: 14px;
}

/* The card */
.auth-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

/* form-section inside auth-card */
.auth-card .form-section {
    margin: 0;
    max-width: none;
    padding: 52px 48px;
}

@media (max-width: 600px) {
    .auth-waves {
        height: 120px;
        opacity: 0.7;
    }

    .auth-body::before,
    .auth-body::after {
        display: none;
    }

    .auth-card .form-section {
        padding: 40px 28px;
    }

    .auth-back-btn {
        top: 16px;
        left: 16px;
    }

    .footer-links {
        display: none;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-banner {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 560px;
        padding: 28px 22px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-scroll-link {
        margin-top: 20px;
        font-size: 13px;
    }

    .editor-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .upload-dropzone {
        padding: 18px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        align-items: center;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-left {
        align-items: center;
        gap: 12px;
        min-width: 0;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo a {
        justify-content: flex-start;
    }

    .logo-image {
        max-height: 38px;
    }

    /* 모바일: 헤더 신청 링크 숨김 (하단 독으로 대체) */
    .header-apply-link {
        display: none;
    }

    /* 모바일: 로그인/회원가입 헤더 버튼 숨김 (하단 독으로 대체) */
    .guest-auth {
        display: none !important;
    }

    .main-nav {
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav ul {
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        min-width: max-content;
    }

    .main-nav a {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        font-size: 13px;
        padding: 6px 2px;
        border: none;
        border-radius: 0;
        background: none;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a.highlight {
        padding: 6px 2px;
        background: none;
    }

    .header-auth {
        width: auto;
        justify-content: flex-end;
        gap: 10px;
    }

    .header-auth.guest-auth {
        display: none;
    }

    .profile-trigger {
        margin-left: 0;
        padding: 4px;
        border: none;
        border-radius: 50%;
        background: none;
    }

    .profile-trigger:hover {
        background: none;
        border: none;
    }

    .profile-name {
        display: none;
    }

    /* chevron도 숨겨서 아바타만 보이게 */
    .profile-chevron {
        display: none;
    }

    .profile-menu {
        top: calc(100% + 12px);
        right: -6px;
        min-width: 192px;
        max-width: min(212px, calc(100vw - 24px));
        padding: 8px;
        border-radius: 18px;
        box-shadow: 0 18px 36px rgba(26, 26, 26, 0.18);
    }

    .profile-menu::before {
        right: 16px;
    }

    .profile-menu-item {
        min-height: 48px;
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .toast-container {
        top: 16px;
        left: 16px;
        right: 16px;
    }

    .toast {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .main-content {
        overflow-x: hidden;
    }

    .guest-user .main-content {
        padding-bottom: 96px;
    }

    .hero {
        padding: 32px 0 36px;
    }

    .hero-mobile-title {
        margin-top: 8px;
    }

    .hero-banner {
        min-height: 0;
        border-radius: 26px;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .hero-mobile-title {
        display: block;
        margin-bottom: 16px;
        text-align: center;
    }

    .hero-mobile-title h1 {
        font-size: 48px;
        letter-spacing: 0.06em;
        color: var(--text-color);
        line-height: 0.95;
    }

    .hero-banner-image {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 7;
        object-fit: cover;
        object-position: center center;
        border-radius: 26px;
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
    }

    .hero-banner::after {
        display: none;
    }

    .hero-content {
        display: none;
    }

    .hero-mobile-summary {
        display: none;
    }

    .hero-mobile-title h1 {
        font-size: 52px;
        letter-spacing: 1px;
    }

    .hero-mobile-summary p {
        font-size: 15px;
        color: var(--text-light);
        margin-bottom: 0;
        padding: 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        margin: 18px 0 0;
    }

    .hero-buttons .btn,
    .form-actions .btn,
    .form-actions a.btn {
        width: 100%;
    }

    .guest-user .hero-mobile-summary .hero-buttons {
        display: none;
    }

    .hero-scroll-link {
        margin-top: 20px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .section-head-copy {
        max-width: none;
        text-align: left;
    }

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

    .card-action-row {
        flex-direction: column;
    }

    .card-action-row form,
    .card-action-row .btn {
        width: 100%;
    }

    .editor-shell {
        padding: 34px 16px 56px;
    }

    .form-section {
        padding: 36px 16px;
    }

    .auth-card .form-group input,
    .auth-card .form-group select {
        height: 54px;
        min-height: 54px;
        padding: 0 16px;
        border-radius: 12px;
        font-size: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .auth-card .form-actions .btn,
    .auth-card .form-actions a.btn,
    .auth-card .form-actions button.btn {
        min-height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
    }

    .auth-card .form-actions .btn-primary {
        order: -1;
    }

    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-actions form,
    .detail-actions .btn {
        width: 100%;
    }

    .step-indicator {
        display: none;
    }

    .step {
        min-width: calc(50% - 6px);
    }

    .register-school-inputs {
        flex-direction: column;
    }

    .register-school-inputs select,
    .register-school-inputs input {
        width: 100%;
        height: 54px;
        min-height: 54px;
    }

    .board-header,
    .activity-detail {
        padding: 24px 20px;
    }

    .activity-header,
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .board-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .board-hero h1,
    .board-header h1 {
        font-size: 26px;
    }

    .post-list-head {
        padding: 16px 18px;
    }

    .post-item {
        padding: 16px 20px;
        gap: 12px;
    }

    .post-number {
        width: 42px;
        flex-shrink: 0;
    }

    .post-meta {
        gap: 8px;
    }

    .post-detail-shell {
        padding: 20px 20px 48px;
    }

    .post-header-card,
    .post-content-card,
    .comments-section {
        padding: 20px 20px;
        border-radius: 18px;
    }

    .post-header-top,
    .post-author-info,
    .comments-head,
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-header-card h1 {
        font-size: 26px;
    }

    .post-actions {
        width: 100%;
    }

    .post-actions .btn,
    .post-actions form {
        width: 100%;
    }

    .post-actions form .btn {
        width: 100%;
    }

    .comment-form {
        align-items: stretch;
    }

    .comment-form textarea {
        height: 48px;
        min-height: 48px;
    }

    .comment-form .btn {
        width: auto;
        min-width: 84px;
        height: 48px;
        align-self: stretch;
    }

    .markdown-body {
        font-size: 15px;
    }

    .markdown-body pre {
        padding: 16px;
        border-radius: 12px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 20px;
    }

    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-info {
        width: 100%;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .footer {
        padding: 28px 0 18px;
    }

    .guest-user .footer {
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
    }

    .footer-info p {
        font-size: 12px;
    }

    .footer-bottom {
        padding-top: 16px;
    }

    .mobile-auth-dock {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(245, 242, 237, 0) 0%, rgba(245, 242, 237, 0.9) 20%, rgba(245, 242, 237, 0.98) 100%);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-auth-dock::before {
        content: '';
        position: absolute;
        left: 16px;
        right: 16px;
        top: 0;
        height: 1px;
        background: rgba(221, 216, 208, 0.9);
    }

    .mobile-auth-dock-inner {
        max-width: 560px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-auth-dock .btn {
        width: 100%;
        border-radius: 16px;
        padding: 13px 18px;
    }

    .member-grid > .member-card,
    .member-grid > a {
        width: calc(50% - 10px);
        min-width: 140px;
    }

    .status-timeline {
        gap: 4px;
    }

    .timeline-label {
        font-size: 9px;
    }

    /* ── 어드민 테이블 모바일 카드형 변환 ── */
    .admin-section {
        padding: 24px 16px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
        background: var(--card-bg);
    }

    .admin-table tr:hover td {
        background: transparent;
    }

    .admin-table td {
        border-bottom: 1px solid var(--border-color);
        padding: 10px 14px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
    }

    .admin-table td:last-child {
        border-bottom: none;
    }

    .admin-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        width: 90px;
        font-size: 11px;
        font-weight: 700;
        color: var(--text-lighter);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding-top: 2px;
    }
}

/* ── 소개 feature cards 모바일 2열 압축 ── */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 24px;
    }

    .feature-card {
        padding: 18px 14px;
        border-radius: 10px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 12px;
        line-height: 1.5;
    }
}
