* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, 'Malgun Gothic', sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1500px, 95vw); max-width: none; margin: 0 auto; padding: 0; }

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.logo { font-size: 22px; font-weight: 700; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: #374151; }
.nav a:hover { color: #111827; }

.hero, .detail-hero, .form-card, .profile-box, .auth-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.hero {
    padding: 42px;
    margin: 30px 0;
}
.hero h1 { margin: 0 0 12px; font-size: 34px; }
.hero p { margin: 0 0 24px; color: #6b7280; line-height: 1.7; }

.search-bar,
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.search-bar input,
.filter-bar input,
.filter-bar select,
.auth-card input,
.form-card input,
.form-card select,
.form-card textarea,
.auth-card textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
}
.search-bar input { flex: 1; min-width: 240px; }
.filter-bar input { flex: 1; min-width: 240px; }
.filter-bar select { width: 220px; }

button, .primary-link {
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    padding: 13px 18px;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
}
button:hover, .primary-link:hover { opacity: 0.92; }

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 26px 0 18px;
}
.section-title-row h1, .section-title-row h2 {
    margin: 0;
}
.mt-40 { margin-top: 40px; }

.card-grid, .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.card, .info-card, .note-card, .empty-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.card h3 {
    margin: 10px 0 10px;
    font-size: 21px;
}
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
}
.meta { color: #6b7280; font-size: 14px; margin: 0 0 12px; }
.desc { color: #4b5563; line-height: 1.7; }
.desc.large { font-size: 16px; }
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: #6b7280;
    font-size: 14px;
}
.card-footer a, .note-actions a { color: #2563eb; font-weight: 600; }

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin: 16px 0;
}
.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.detail-hero {
    margin: 30px 0 20px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.note-list {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}
.note-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 14px;
}
.summary-box {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    line-height: 1.7;
}
.note-content {
    line-height: 1.85;
    color: #111827;
    white-space: normal;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.tag {
    background: #eef2ff;
    color: #4338ca;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
}
.note-actions {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.form-card, .profile-box {
    padding: 28px;
    margin: 30px 0;
}
.form-card h1, .profile-box h1 {
    margin-top: 0;
}
.form-card label, .auth-card label {
    display: block;
    font-weight: 700;
    margin: 16px 0 8px;
}
.form-card textarea {
    resize: vertical;
    min-height: 110px;
}

.auth-wrap {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 30px 0;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 32px;
}
.auth-card h1 {
    margin: 0 0 8px;
}
.auth-sub {
    margin: 0 0 18px;
    color: #6b7280;
}

.empty-box {
    text-align: center;
    color: #6b7280;
}

@media (max-width: 768px) {
    .header-inner, .detail-hero, .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero { padding: 28px; }
    .hero h1 { font-size: 28px; }
}


.admin-table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.admin-table th, .admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}
.admin-table th { color: #374151; background: #f9fafb; }
.table-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.danger-link { color: #dc2626 !important; }


.mt-16{margin-top:16px;}
.category-grid .info-card{min-height:140px;}


/* Portfolio reference home redesign */
body {
    background: #f4f7fb;
    color: #111827;
}
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
}
.logo { font-size: 24px; font-weight: 800; color: #0f172a; }
.nav a { color: #334155; font-weight: 600; }
.nav a:hover { color: #2563eb; }
body.is-home { background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%); color: #111827; }
.is-home .site-header { background: rgba(248,250,252,0.92); border-bottom: 1px solid #dbe4ef; }
.is-home .logo, .is-home .nav a { color: #0f172a; }
.is-home .nav a:hover { color: #2563eb; }

.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
    gap: 28px;
    align-items: stretch;
    padding: 44px 0 10px;
}
.portfolio-kicker,
.section-kicker {
    display: inline-block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.portfolio-eyebrow {
    margin: 14px 0 10px;
    color: #475569;
    font-weight: 700;
}
.portfolio-hero h1 {
    margin: 0;
    font-size: 54px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.portfolio-description {
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    max-width: 760px;
}
.portfolio-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0;
}
.portfolio-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}
.portfolio-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
}
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.portfolio-stat-card,
.portfolio-profile-card,
.portfolio-info-card,
.portfolio-project-card,
.roadmap-step,
.portfolio-skill-block {
    background: rgba(255,255,255,0.88);
    border: 1px solid #dbe4ef;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}
.portfolio-stat-card {
    padding: 20px 22px;
}
.portfolio-stat-card strong {
    display: block;
    font-size: 30px;
    color: #0f172a;
}
.portfolio-stat-card span {
    color: #64748b;
    font-size: 14px;
}
.portfolio-profile-card {
    padding: 28px;
    align-self: stretch;
}
.portfolio-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}
.portfolio-profile-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}
.portfolio-profile-card p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}
.portfolio-profile-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.portfolio-profile-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.portfolio-profile-list span { color: #64748b; font-size: 14px; }
.portfolio-profile-list strong { color: #0f172a; font-size: 14px; text-align: right; }

.portfolio-section { margin: 52px 0; }
.section-title-row-portfolio {
    margin: 0 0 20px;
    align-items: end;
}
.section-title-row-portfolio h2 {
    font-size: 34px;
    color: #0f172a;
}
.section-title-row-portfolio a {
    color: #2563eb;
    font-weight: 700;
}
.portfolio-about-grid,
.portfolio-project-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.portfolio-info-card,
.roadmap-step,
.portfolio-project-card {
    padding: 24px;
}
.portfolio-info-card h3,
.roadmap-step h3,
.portfolio-project-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #0f172a;
}
.portfolio-info-card p,
.roadmap-step p,
.portfolio-project-card p {
    color: #475569;
    line-height: 1.8;
}
.roadmap-step span {
    display: inline-block;
    margin-bottom: 16px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.portfolio-skill-board {
    display: grid;
    gap: 16px;
}
.portfolio-skill-row {
    width: 100%;
    border: 0;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.2fr) 84px;
    gap: 18px;
    align-items: center;
    background: transparent;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}
.portfolio-skill-main p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.6;
}
.portfolio-skill-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.portfolio-skill-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.portfolio-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 14px;
}
.portfolio-skill-meta {
    text-align: center;
}
.portfolio-skill-meta strong {
    display: block;
    font-size: 28px;
    color: #0f172a;
}
.portfolio-skill-meta span {
    color: #64748b;
    font-size: 13px;
}
.portfolio-expand-panel {
    padding: 0 24px 24px;
}
.portfolio-expand-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 0 0 18px;
}
.portfolio-expand-head strong { font-size: 20px; color: #0f172a; }
.portfolio-expand-head p { margin: 6px 0 0; color: #64748b; }
.line-filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.line-filter-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}
.line-filter-chip.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.portfolio-project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 14px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
}
.portfolio-project-link {
    color: #2563eb;
    font-weight: 800;
}
.line-category-block.open .portfolio-skill-block,
.line-category-block.open {
    background: rgba(255,255,255,0.96);
}
.expand-empty {
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

@media (max-width: 980px) {
    .portfolio-hero,
    .portfolio-about-grid,
    .portfolio-project-grid,
    .roadmap-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-skill-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .portfolio-skill-meta { text-align: left; }
    .portfolio-stats { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .portfolio-hero h1 { font-size: 38px; }
    .section-title-row-portfolio h2 { font-size: 28px; }
    .portfolio-expand-head { flex-direction: column; align-items: flex-start; }
}


.board-total {
    color: #6b7280;
    font-size: 14px;
}
.board-wrap {
    margin-bottom: 40px;
}
.board-list {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.board-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 2.2fr) 140px 180px 120px;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.board-head {
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}
.board-link-row {
    color: inherit;
    transition: background 0.18s ease;
}
.board-link-row:hover {
    background: #f9fafb;
}
.board-link-row:last-child {
    border-bottom: 0;
}
.board-preview {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}
.col-no,
.col-writer,
.col-tags,
.col-date {
    color: #4b5563;
    font-size: 14px;
}
.col-title strong {
    color: #111827;
    font-size: 15px;
}
.note-detail-card {
    margin-bottom: 40px;
}
.mt-16 {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .board-head {
        display: none;
    }
    .board-row,
    .board-link-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .board-link-row {
        align-items: flex-start;
    }
    .col-no::before { content: '번호: '; font-weight: 700; }
    .col-writer::before { content: '작성자: '; font-weight: 700; }
    .col-tags::before { content: '태그: '; font-weight: 700; }
    .col-date::before { content: '작성일: '; font-weight: 700; }
}


.board-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: end;
    margin: 18px 0 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.toolbar-group label {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
}

.board-toolbar input,
.board-toolbar select {
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 0 12px;
}

.board-toolbar option {
    color: #111;
}

.toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.board-toolbar button,
.toolbar-reset,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
}

.toolbar-reset {
    background: transparent;
}

.col-views {
    width: 86px;
    flex: 0 0 86px;
    text-align: center;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.page-link.active {
    background: #7c3aed;
    border-color: #7c3aed;
}

.page-link.disabled {
    pointer-events: none;
    opacity: 0.4;
}

@media (max-width: 900px) {
    .board-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-group,
    .toolbar-actions {
        width: 100%;
    }

    .toolbar-actions {
        justify-content: stretch;
    }

    .toolbar-actions > * {
        flex: 1;
    }
}


/* Board toolbar + list visibility fix */
.board-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 1fr) 160px auto;
    gap: 14px;
    align-items: end;
    margin: 18px 0 20px;
    padding: 18px;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}
.toolbar-group { min-width: 0; }
.toolbar-group-wide { grid-column: auto; }
.toolbar-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}
.board-toolbar input,
.board-toolbar select {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    padding: 0 14px;
    font-size: 14px;
}
.toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
.board-toolbar button,
.toolbar-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #111827;
    color: #fff;
    font-weight: 700;
}
.toolbar-reset {
    background: #fff;
    color: #334155;
}
.board-list {
    border: 1px solid #e5e7eb;
}
.board-row {
    display: grid;
    grid-template-columns: 80px minmax(320px, 2.4fr) 130px 160px 90px 110px;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.board-head {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
}
.col-no,
.col-writer,
.col-tags,
.col-views,
.col-date {
    font-size: 14px;
    color: #475569;
}
.col-views { text-align: center; }
.col-title strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}
.board-preview {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.page-numbers {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #d7deea;
    background: #fff;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
.page-link:hover { background: #f8fafc; }
.page-link.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}
.page-link.disabled {
    pointer-events: none;
    opacity: 0.45;
    background: #f8fafc;
}
.page-edge { min-width: 62px; }
@media (max-width: 980px) {
    .board-toolbar {
        grid-template-columns: 1fr 1fr;
    }
    .toolbar-actions {
        justify-content: flex-start;
    }
    .board-row {
        grid-template-columns: 70px minmax(0,1fr) 110px 120px 80px 96px;
        padding: 14px 16px;
    }
}
@media (max-width: 900px) {
    .board-toolbar {
        grid-template-columns: 1fr;
    }
    .board-head {
        display: none;
    }
    .board-row,
    .board-link-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .col-no::before { content: '번호: '; font-weight: 700; }
    .col-writer::before { content: '작성자: '; font-weight: 700; }
    .col-tags::before { content: '태그: '; font-weight: 700; }
    .col-views::before { content: '조회수: '; font-weight: 700; }
    .col-date::before { content: '작성일: '; font-weight: 700; }
    .pagination {
        justify-content: flex-start;
    }
}


.content-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    margin: 22px 0;
}
.small-gap { margin-bottom: 14px; }
.right-stack { flex-direction: column; align-items: flex-end; }
.muted-text { color: #6b7280; font-weight: 400; font-size: 13px; }
.upload-help { margin: 8px 0 0; color: #6b7280; font-size: 13px; }
.attachment-box { margin-top: 18px; padding: 16px; background: #f8fafc; border-radius: 14px; }
.attachment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.attachment-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 12px 14px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px;
}
.attachment-list.compact li { background: #fff; }
.attachment-list a { color: #2563eb; font-weight: 600; word-break: break-all; }
.comment-form textarea {
    width: 100%; padding: 13px 14px; border: 1px solid #d1d5db; border-radius: 12px; font-size: 15px; resize: vertical;
}
.comment-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.alert.compact { margin: 0; padding: 10px 12px; }
.comment-list { display: grid; gap: 14px; margin-top: 18px; }
.comment-item { border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; background: #fff; }
.comment-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #6b7280; font-size: 14px; margin-bottom: 10px; }
.comment-body { line-height: 1.75; color: #111827; }
.comment-actions { margin-top: 12px; text-align: right; }
.comment-actions a { color: #dc2626; font-weight: 600; }
@media (max-width: 768px) {
    .comment-form-footer, .attachment-list li { flex-direction: column; align-items: flex-start; }
    .right-stack { align-items: flex-start; }
}

.inline-form { display:inline; }
.bookmark-btn {
    border: 1px solid #7c3aed;
    background: transparent;
    color: #7c3aed;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}
.bookmark-btn.active {
    background: #7c3aed;
    color: #fff;
}
.attachment-main {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}
.attachment-delete {
    color:#ef4444;
    font-size:13px;
    margin-left:12px;
}
.comment-edit-actions {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
    margin-top:12px;
}
.small-form-card { max-width: 760px; }
.dashboard-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:20px;
}
.mini-board-list {
    list-style:none;
    padding:0;
    margin:0;
}
.mini-board-list li {
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:12px 0;
    border-bottom:1px solid rgba(148,163,184,.2);
}
.mini-board-list li:last-child { border-bottom:0; }
.mini-board-list a { color:inherit; text-decoration:none; font-weight:600; }
.mini-board-list span { color:#94a3b8; font-size:13px; white-space:nowrap; }
@media (max-width: 920px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .mini-board-list li { flex-direction:column; gap:4px; }
}


.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d8b4fe;
    background: #fff;
    color: #7c3aed;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}
.like-btn.active {
    background: #7c3aed;
    color: #fff;
}
.like-count-box {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f0ff;
    color: #6d28d9;
    font-weight: 700;
}
.reply-list {
    margin-top: 14px;
    padding-left: 18px;
    border-left: 2px solid #e5e7eb;
}
.reply-item {
    background: #faf7ff;
    border: 1px solid #ede9fe;
}
.reply-form {
    margin-top: 12px;
    background: #fafafa;
}
.triple-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1100px) {
    .triple-grid,
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .triple-grid,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .reply-list {
        padding-left: 10px;
    }
}


.comment-like-btn, .comment-like-count {
    display:inline-flex; align-items:center; gap:6px; font-size:13px;
}
.comment-like-btn {
    border:1px solid #d0d7e2; background:#fff; color:#334155; border-radius:999px; padding:6px 10px; cursor:pointer;
}
.comment-like-btn.active { background:#eef2ff; color:#4338ca; border-color:#c7d2fe; }
.admin-shortcuts { display:flex; gap:12px; flex-wrap:wrap; margin:20px 0 8px; }
.checkbox-row { display:flex; align-items:center; gap:8px; margin:8px 0 16px; }
.admin-inline-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

/* ===== 강의 홈 / 학교형 강의 페이지 폭 안정화 최종 패치 ===== */
/* 
   핵심:
   1. 기존 1100px 제한 제거
   2. 강의 홈은 1500px 기준으로 넓게 사용
   3. 너무 넓어지는 1860px 조건 제거
   4. header.php가 <main class="container"> 상태여도 홈에서는 넓게 보이도록 처리
*/

.page-wide{
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
}

/* header.php에서 main이 page-wide일 때 */
.page-wide .school-home{
    width:min(1500px, 95vw) !important;
    max-width:1500px !important;
    margin:0 auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
}

/* header.php가 아직 <main class="container">일 때도 홈 화면 폭 보정 */
body.is-home main.container{
    width:100% !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
}

/* 실제 강의 홈 내부 폭 */
body.is-home .school-home{
    width:min(1500px, 95vw) !important;
    max-width:1500px !important;
    margin:0 auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
}

/* 내부 섹션은 부모 폭을 그대로 사용 */
.page-wide .school-hero,
.page-wide .school-section,
.page-wide .school-footer-banner,
body.is-home .school-hero,
body.is-home .school-section,
body.is-home .school-footer-banner{
    width:100% !important;
}

/* 강의 카드 4단 기본 */
body.is-home .school-lecture-grid{
    grid-template-columns:repeat(4, 1fr);
}

/* 화면별 카드 수 조정 */
@media (max-width:1450px){
    body.is-home .school-lecture-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width:1100px){
    body.is-home .school-lecture-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:768px){
    .container{
        width:92vw;
        padding:0;
    }

    body.is-home .school-home{
        width:92vw !important;
        max-width:none !important;
    }

    body.is-home .school-lecture-grid{
        grid-template-columns:1fr;
    }
}

