* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #F9FAFB;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.main-content {
    margin-top: 80px;
    padding: 60px 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 400px);
}

.notice-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.badge-important { background: #ef4444; color: #fff; }
.badge-notice { background: #3b82f6; color: #fff; }

.notice-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.notice-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.notice-meta {
    color: #6b7280;
    font-size: 14px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.notice-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    white-space: pre-line;
}

.btn-list {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-list:hover { background: #2563eb; }

.file-download-btn:hover {
    background: #f9fafb !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
    .notice-content { padding: 24px; }
    .notice-content h1 { font-size: 24px; }
}

/* --- Activities styles (merged) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #F9FAFB;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
}

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

.gallery-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-card-content { padding: 16px; }

.gallery-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card-date { font-size: 14px; color: #7f8c8d; }

.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-box select {
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 15px;
}

.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: #667eea;
}

.search-box button {
    padding: 12px 24px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover { background: #5568d3; }

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

.pagination a {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 18px;
}

.pagination a.pagination-arrow {
    font-size: 22px;
    font-weight: 300;
}

.pagination a:hover,
.pagination a.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.pagination a.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* 60?? ?? */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.confirm-modal.active { display: flex; }

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-message {
    font-size: 18px;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-yes {
    background: #667eea;
    color: #fff;
}

.modal-btn-yes:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-btn-no {
    background: #f5f5f5;
    color: #333;
}

.modal-btn-no:hover { background: #e0e0e0; }

/* ?? ?? */
main {
    min-height: calc(100vh - 300px);
    padding-top: 90px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 16px;
}

.detail-header {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    white-space: pre-line;
}

.image-slider-container {
    position: relative;
    width: 100%;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

.slider-track.no-transition { transition: none; }

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left { left: 15px; }
.slider-arrow-right { right: 15px; }

.slider-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: inline-block;
}

.btn:hover { background: #f0f0f0; }

.btn-primary {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.btn-primary:hover { background: #b71c1c; }

.loading {
    text-align: center;
    padding: 100px 20px;
    font-size: 18px;
    color: #666;
}

.error {
    text-align: center;
    padding: 100px 20px;
}

.error h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #e74c3c;
}

@media (max-width: 768px) {
    .detail-title { font-size: 22px; }
    .detail-content { padding: 20px; }
    .image-slider { height: 300px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 20px; }
    .slider-arrow-left { left: 10px; }
    .slider-arrow-right { right: 10px; }
    .action-buttons { flex-direction: column; }
    .btn { width: 100%; }
}
