/* Jeus Board Public CSS - Modern Style */
.jeus-board-container {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', Dotum, sans-serif;
    max-width: 100%;
    margin: 40px auto;
    color: #333;
    line-height: 1.5;
}

.jeus-board-container h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
    border-bottom: none;
    letter-spacing: -0.5px;
}

.jeus-board-container p {
    color: #666;
    margin-bottom: 7px;
    font-size: 18px;
}

/* 게시판 상단 정보 (총 건수 등) */
.jeus-board-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: #888;
}

/* Table Style */
.jeus-board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #222;
    /* 상단 굵은 라인 */
    table-layout: fixed;
}

.jeus-board-table th {
    background-color: #fbfbfb;
    /* 아주 연한 회색 혹은 흰색 */
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.jeus-board-table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    /* 가로선만 존재 */
    font-size: 15px;
    text-align: center;
    color: #555;
    background-color: #fff;
}

/* 제목 정렬 및 스타일 */
.jeus-board-table td.title {
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jeus-board-table td.title a {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.jeus-board-table td.title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Hover Effect */
.jeus-board-table tbody tr:hover td {
    background-color: #f9f9f9;
}

/* Buttons */
.jeus-board-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 0;
    /* 사각형 버튼 */
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid #333;
    cursor: pointer;
    font-weight: 500;
}

.jeus-board-btn:hover {
    background-color: #000;
    border-color: #000;
}

.jeus-board-btn.secondary {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #555 !important;
}

.jeus-board-btn.secondary:hover {
    background-color: #f1f1f1;
    border-color: #bbb;
    color: #333 !important;
}

.jeus-board-btn.danger {
    background-color: #fff;
    border: 1px solid #d63638;
    color: #d63638 !important;
}

.jeus-board-btn.danger:hover {
    background-color: #d63638;
    color: #fff !important;
}

.jeus-board-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.jeus-board-actions.view-mode {
    justify-content: space-between;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

/* Pagination */
.jeus-board-pagination {
    margin: 40px 0;
    text-align: center;
}

.jeus-board-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    margin: 0 2px;
    border: 1px solid #eee;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    background: #fff;
    border-radius: 2px;
}

.jeus-board-pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
    font-weight: 600;
}

.jeus-board-pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

/* View Page */
.jeus-board-view-header {
    border-top: 2px solid #222;
    border-bottom: 1px solid #eee;
    padding: 25px 15px;
    background-color: #fff;
}

.jeus-board-view-header h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
}

.jeus-board-view-meta {
    font-size: 14px;
    color: #777;
    display: flex;
    gap: 20px;
}

.jeus-board-view-meta span strong {
    color: #333;
    font-weight: 500;
    margin-right: 5px;
}

.jeus-board-content {
    padding: 40px 15px;
    min-height: 300px;
    line-height: 1.8;
    color: #333;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}



/* Attachments */
.jeus-attachments {
    margin-top: 30px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 0;
}

.jeus-attachments h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

/* Write Form */
.jeus-form-group {
    margin-bottom: 25px;
}

.jeus-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.jeus-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.jeus-form-control:focus {
    border-color: #333;
    outline: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .jeus-board-table {
        border-top: 1px solid #333;
    }

    .jeus-board-table th,
    .jeus-board-table td {
        padding: 12px 5px;
        font-size: 13px;
    }

    .jeus-board-table th:nth-child(1),
    .jeus-board-table td:nth-child(1),
    .jeus-board-table th:nth-child(4),
    .jeus-board-table td:nth-child(4),
    .jeus-board-table th:nth-child(5),
    .jeus-board-table td:nth-child(5) {
        display: none;
    }

    .jeus-board-table td.title {
        padding-left: 10px;
    }

    .jeus-board-info {
        display: none;
    }

    .jeus-board-view-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Markdown Tab Styles */
#jb_edit_content-markdown {
    background: #f5f5f5;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    color: #646970;
    font-size: 13px;
    padding: 3px 8px;
    line-height: 1.4;
    cursor: pointer;
    float: left;
}

#jb_edit_content-markdown.active {
    background: #f0f0f1;
    color: #000;
    border-bottom: 1px solid #f0f0f1;
    font-weight: 600;
}

/* Hide HTML Quicktags Toolbar when Markdown is active */
.jeus-markdown-active .quicktags-toolbar {
    display: none !important;
}

/* Recent Posts - Block Type 1 */
.jeus-recent-posts-block-1 {
    box-sizing: border-box;
    font-family: inherit;
    display: inline-block;
    vertical-align: top;
}

.jeus-recent-posts-block-1 .jeus-rp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.jeus-recent-posts-block-1 .jeus-rp-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.jeus-recent-posts-block-1 .jeus-rp-more {
    font-size: 20px;
    color: #999;
    text-decoration: none;
    line-height: 1;
}

.jeus-recent-posts-block-1 .jeus-rp-more:hover {
    color: #333;
}

.jeus-recent-posts-block-1 .jeus-rp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jeus-recent-posts-block-1 .jeus-rp-list li {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
    position: relative;
    padding-left: 12px;
}

.jeus-recent-posts-block-1 .jeus-rp-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

.jeus-recent-posts-block-1 .jeus-rp-list li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jeus-recent-posts-block-1 .jeus-rp-list li a:hover {
    color: #000;
    text-decoration: underline;
}

.jeus-recent-posts-block-1 .jeus-rp-list li.no-posts {
    padding-left: 0;
    text-align: center;
    color: #ccc;
}

.jeus-recent-posts-block-1 .jeus-rp-list li:before {
    content: "•";
    /* Bullet point if desired, or remove if distinct styling is needed */
}

a.jeus-rp-more {
    font-size: 28px !important;
}

/* Recent Posts - Calendar Type (Horizontal Scroll) */
.jeus-rp-calendar-container {
    width: 100%;
    overflow: hidden;
    /* Hide outer overflow */
}

.jeus-rp-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    /* Space for shadow */
    gap: 15px;
    /* Spacing between cards */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    scrollbar-width: thin;
    /* Firefox */
}

.jeus-rp-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.jeus-rp-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.jeus-rp-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.jeus-rp-card-item {
    flex: 0 0 240px;
    /* Fixed width cards */
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #5a4bda;
    /* Primary Color Accent */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    display: block;
}

.jeus-rp-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.jeus-rp-card-content {
    padding: 16px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.jeus-rp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.jeus-rp-card-header .jeus-rp-date {
    font-size: 14px;
    font-weight: 700;
    color: #5a4bda;
    /* Primary Color */
}

.jeus-rp-card-header .jeus-rp-date .day-text {
    font-weight: 400;
    color: #999;
    font-size: 13px;
    margin-left: 2px;
}

.jeus-rp-card-header .jeus-rp-time {
    font-size: 12px;
    color: #888;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.jeus-rp-card-title {
    margin: 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;

    /* Multi-line ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
    /* 2 lines height approx */
}

.jeus-rp-card-excerpt {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jeus-rp-no-posts {
    width: 100%;
    padding: 30px;
    text-align: center;
    color: #999;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

/* Recent Posts - Card Type 3 (Date Box) */
.jeus-rp-card-3-item {
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
    display: flex;
    /* Row Layout */
    flex-direction: row;
    /* Horizontal */
    align-items: stretch;
}

.jeus-rp-card-3-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    border-color: #ddd;
}

.jeus-rp-card-3-date-box {
    width: 70px;
    background: #5a4bda;
    /* Primary color background */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    flex-shrink: 0;
}

.jeus-rp-card-3-date-box .month {
    font-size: 11px;
    opacity: 0.8;
}

.jeus-rp-card-3-date-box .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    margin: 2px 0;
}

.jeus-rp-card-3-date-box .weekday {
    font-size: 12px;
    opacity: 0.9;
}

.jeus-rp-card-3-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jeus-rp-card-3-time {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
    display: inline-block;
}

.jeus-rp-card-3-title {
    margin: 0;
    color: #222;
    font-weight: 600;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Recent Posts - Card Type 4 (Top Header) */
.jeus-rp-card-4-item {
    flex: 0 0 220px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 16px;
    /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.jeus-rp-card-4-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.jeus-rp-card-4-header {
    background: #541c4c;
    /* Deep Purple Theme */
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.jeus-rp-card-4-body {
    padding: 20px 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.jeus-rp-card-4-title {
    margin: 0;
    color: #000;
    font-weight: 600;
    line-height: 1.4;
    font-size: 18px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Area - Restore Default Styles */
.jeus-board-content ul,
.jeus-board-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
    list-style-position: outside;
}

.jeus-board-content ul {
    list-style-type: disc !important;
}

.jeus-board-content ul ul {
    list-style-type: circle !important;
}

.jeus-board-content ul ul ul {
    list-style-type: square !important;
}

.jeus-board-content ol {
    list-style-type: decimal !important;
}

.jeus-board-content li {
    margin-bottom: 0.5em;
    line-height: 1.4;
    color: inherit;
}

.jeus-board-content strong,
.jeus-board-content b {
    font-weight: 700;
    color: #111;
}

.jeus-board-content em,
.jeus-board-content i {
    font-style: italic;
}

.jeus-board-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #ddd;
    background: #f9f9f9;
    color: #555;
}

.jeus-board-content h1,
.jeus-board-content h2,
.jeus-board-content h3,
.jeus-board-content h4,
.jeus-board-content h5,
.jeus-board-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
}



.jeus-board-content h3 {
    font-size: 1.25em;
}

.jeus-board-content h4 {
    font-size: 1.15em;
}

.jeus-board-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
}