/* Event Guide Board CSS */

:root {
    --primary-color: #00256c;
    --primary-hover: #001a4d;
    --text-main: #333;
    --text-muted: #666;
    --border-color: #eee;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Base Layout (from default.css) */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.board-header {
    display: flex;
    /* justify-content: space-between; */
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.board-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
}

.center { text-align: center; }

/* Form Control (from default.css) */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    height: 42px;
    padding: 0.8rem 1.2rem !important;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-main);
    font-family: inherit;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Notice Style Buttons */
.btn-write {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-write:hover { 
    background-color: var(--primary-color); 
    color: #fff;
}

.btn-submit {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-submit:hover { 
    background-color: var(--primary-hover); 
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-cancel {
    display: inline-block;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-cancel:hover { 
    background-color: #f8f9fa; 
    border-color: #999;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-list {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-list:hover {
    background-color: #f8f9fa;
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Category Tabs (Notice Style) */
.category-tabs {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.btn-cat {
    padding: 0.4rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s;
}
.btn-cat:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-cat.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}

/* Pagination (from default.css) */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.3rem;
}
.pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 4px;
    background-color: #fff;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f8f9fa;
}
.pagination a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}


.event-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.event-item {
    display: flex;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.event-thumb {
    flex: 0 0 320px;
    width: 320px;
    height: 320px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-item:hover .event-thumb img {
    transform: scale(1.05);
}

.event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}

.event-title {
    margin: 0;
    font-size: 2.264rem;
    font-weight: 700;
}

.event-title a {
    color: var(--text-main);
    text-decoration: none;
}

.event-title a:hover {
    color: var(--primary-color);
}

.event-subtitle {
    font-size: 1.575rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.event-meta span {
    font-size: 1.275rem;
}

.event-meta span::after {
    content: "|";
    margin-left: 10px;
}

.event-meta span:last-child::after {
    content: "";
}

/* View Page Styling */
.board-view-title {
    font-size: 3.85rem;
    text-align: center;
}

.board-view-meta {
    font-size: 1.425rem;
    display: flex;
    justify-content: space-between;
}

.board-view-content {
    margin-top: 3.2rem;
}

.event-view-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1.72rem;
}

.event-view-image img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.event-view-subtitle {
    font-size: 1.825rem;
    text-align: center;
    color: #444;
    font-weight: 500;
    line-height: 1.6;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.event-external-link {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    font-size: 1.65rem;
	border: 1px solid #dfdfdf;
	border-radius: 5px;
	-webkit-box-shadow: 1px 1px 5px 0px hsl(232, 36%, 96%);
	-moz-box-shadow: 1px 1px 5px 0px hsl(232, 36%, 96%);
	box-shadow: 1px 1px 5px 0px hsl(232, 36%, 96%);
}

.event-external-link-title {
    font-size: 1.525rem;
    white-space: pre;
}

.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.425rem;
}

@media (max-width: 768px) {
    .event-item {
        flex-direction: column;
        gap: 1rem;
    }
    .event-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
}
/* Comments Area (Notice Style) */
.comment-section {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.comment-list {
    margin-bottom: 2rem;
}
.comment-item {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}
.comment-item.is-reply {
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
}
.comment-meta {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}
.comment-author {
    font-weight: 600;
    color: var(--primary-color);
}
.comment-content {
    color: var(--text-main);
    white-space: pre-wrap;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-main);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-comment, .btn-reply-comment {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-comment:hover, .btn-reply-comment:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}
