/* 심플 테마 적용 */
html, body {
    height: 100%;
    min-height: 100vh;
    background: #ffffff;
    color: #222;
    font-family: 'Pretendard', 'Noto Sans KR', Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    height: auto;
    padding-top: 0px;
    padding-bottom: 100px;
    background: transparent;
}

#section {
    width: 100%;
    background-color: transparent;
    border-radius: 0px;
    box-shadow: none;
}

#section.main-section {
    width: 100%;
    min-height: 400px;
    padding-top: 120px;
    background: linear-gradient(rgba(0, 0, 0,0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1551268587-2ce3185fea42?q=80&w=1031&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.main-section-title {
    width: 100%;
    text-align: center;
    padding: 48px 0 32px 0;
    background: transparent;
}

.main-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

#notice-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    min-height: 100vh;
    padding: 32px 0;
    position: relative;
    width: 100%;
}

.notice-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.notice-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.write-btn {
    background: #1a4fa0;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.write-btn:hover {
    background: #17407a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,79,160,0.15);
}

.write-btn i {
    font-size: 14px;
}

.notice-list, .notice-detail, .pagination {
    width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.notice-list {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    min-height: 200px;
}

.notice-item {
    height: auto;
    flex: none;
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: transparent;
    transition: background-color 0.2s ease;
    z-index: 1;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background-color: #f8f9fa;
}

.notice-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.notice-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #666;
    font-size: 14px;
}

.notice-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.notice-edit-btn,
.notice-delete-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(76,175,80,0.1);
}

.notice-delete-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255,68,68,0.1);
}

.notice-edit-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76,175,80,0.2);
}

.notice-delete-btn:hover {
    background-color: #ff0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255,68,68,0.2);
}

/* 삭제 애니메이션 */
@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.notice-row.deleting {
    animation: fadeOutRight 0.5s ease forwards;
}

/* 체크 아이콘 애니메이션 */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.notice-delete-btn i.fa-check {
    animation: checkmark 0.3s ease forwards;
}

.notice-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-author i {
    color: #1a4fa0;
}

.notice-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-date i {
    color: #666;
}

.notice-content {
    margin-top: 12px;
    color: #444;
    line-height: 1.6;
    max-height: 320px;
    overflow-y: auto;
    word-break: break-all;
    background: #f9f9fb;
    border-radius: 6px;
    padding: 10px 8px;
}

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

.page-btn {
    padding: 8px 16px;
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    color: #1a4fa0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #e8eaf6;
    color: #1a4fa0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26,79,160,0.1);
}

.page-btn.active {
    background: #1a4fa0;
    color: #fff;
    box-shadow: 0 2px 4px rgba(26,79,160,0.2);
}

.page-btn.active:hover {
    color: #ffffff;
    background: #17407a;
}

.page-btn:disabled {
    background: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.page-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.prev-btn:hover i {
    transform: translateX(-2px);
}

.next-btn:hover i {
    transform: translateX(2px);
}

.no-notice {
    text-align: center;
    padding: 32px 10px;
    color: #888;
    font-size: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ececec;
    margin-top: 24px;
}

/* 모바일 반응형 스타일 제거 */
@media (max-width: 1400px) {
    .notice-container {
        width: 1200px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #main {
        padding-top: 0px;
        height: auto;
        min-height: 100vh;
    }

    #section.main-section {
        padding-top: 120px;
        min-height: 400px;
    }
    
    #notice-section {
        padding: 16px 0;
    }
    
    .notice-container {
        width: 1200px;
        margin: 0 auto;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid #ececec;
        box-shadow: none;
        background-color: #fff;
    }
    .notice-list {
        padding-left: 8px;
        padding-right: 8px;
    }
    .notice-item {
        padding: 12px;
    }
    .notice-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .notice-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    .notice-actions {
        margin-left: 0;
        margin-top: 8px;
    }
    .write-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .pagination {
        gap: 0;
        margin-top: 20px;
    }
    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 10px 10px 0 0;
    }
    .notice-form {
        padding: 1rem;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    .form-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .cancel-btn,
    .submit-btn {
        width: 100%;
        padding: 0.8rem;
    }
    .notice-detail-inner {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .write-btn,
    .notice-edit-btn,
    .notice-delete-btn,
    .notice-delete-btn-wrap {
        display: none !important;
    }
    .notice-table th:last-child,
    .notice-table td:last-child {
        display: none;
    }
    .notice-tab .notice-delete-btn-wrap {
        display: none;
    }
    .notice-tab-content:after {
        display: none;
    }
    #notice-section:after {
        display: none;
    }
    .notice-table {
        display: block;
        width: 100%;
        border: none;
        background: transparent;
        box-shadow: none;
        margin: 0;
    }
    .notice-table thead {
        display: none;
    }
    .notice-table tbody {
        display: block;
        width: 100%;
    }
    .notice-table tr {
        display: block;
        width: 100%;
        background: #fff;
        margin-bottom: 12px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid #ececec;
        padding: 16px;
    }
    .notice-table td {
        display: flex;
        align-items: center;
        padding: 8px 0;
        border: none;
        font-size: 14px;
        width: 100%;
        position: relative;
    }
    .notice-table td:before {
        content: attr(data-label);
        flex: 0 0 80px;
        color: #666;
        font-size: 13px;
        font-weight: 600;
        margin-right: 12px;
    }
    .notice-title-cell {
        font-size: 15px;
        font-weight: 600;
        color: #1a4fa0;
        padding-left: 0;
        margin-top: 4px;
    }
    .notice-title-cell:before {
        content: "제목";
    }
    .notice-table td:first-child {
        color: #666;
        font-size: 13px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    .notice-table td:first-child:before {
        content: "날짜";
    }
    .notice-list {
        padding: 0 12px;
    }
    .notice-table tr:hover {
        background: #fff;
    }
    .main-title {
        font-size: 2.5rem;
    }
}

/* 작은 모바일 화면 추가 최적화 */
@media (max-width: 360px) {
    .notice-table tr {
        padding: 12px;
        margin-bottom: 8px;
    }

    .notice-table td {
        font-size: 13px;
        padding: 6px 0;
    }

    .notice-table td:before {
        flex: 0 0 70px;
        font-size: 12px;
        margin-right: 8px;
    }

    .notice-title-cell {
        font-size: 14px;
    }

    .notice-table td:first-child {
        font-size: 12px;
        padding-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .notice-title {
        font-size: 15px;
    }
    .notice-meta {
        font-size: 11px;
    }
    .page-btn {
        min-width: 60px;
        padding: 6px 10px;
    }
}

/* 공지사항 작성 폼 스타일 */
.notice-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notice-form .form-group {
    margin-bottom: 1.5rem;
}

.notice-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.notice-form input[type="text"],
.notice-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.notice-form input[type="text"]:focus,
.notice-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.notice-form textarea {
    resize: vertical;
    min-height: 200px;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.cancel-btn,
.submit-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

.submit-btn {
    background-color: #007bff;
    color: white;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* 공지사항 테이블 스타일 */
.notice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.notice-table th {
    background: #f8f9fa;
    color: #1a4fa0;
    font-weight: 600;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.notice-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s ease;
}

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

.notice-table tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.notice-table tr:hover {
    background: #f8faff;
}

.notice-title-cell {
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
    color: #1a4fa0;
}

.notice-title-cell:hover {
    color: #17407a;
}

/* 컬럼 너비 고정 */
.notice-table th:nth-child(1), .notice-table td:nth-child(1) {
    width: 180px;
    white-space: nowrap;
    color: #666;
}

.notice-table th:nth-child(2), .notice-table td:nth-child(2) {
    width: 800px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-table th:nth-child(3), .notice-table td:nth-child(3) {
    width: 120px;
    text-align: center;
    color: #666;
}

.notice-table th:nth-child(4), .notice-table td:nth-child(4) {
    width: 100px;
    text-align: center;
}

/* 수정/삭제 버튼 스타일 */
.notice-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.notice-edit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(76,175,80,0.1);
}

.notice-delete-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255,68,68,0.1);
}

.notice-edit-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76,175,80,0.2);
}

.notice-delete-btn:hover {
    background-color: #ff0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255,68,68,0.2);
}

/* 공지사항 상세 내용 스타일 */
.notice-detail {
    width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    z-index: 10;
    position: relative;
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.notice-detail-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.notice-back-btn {
    background: none;
    border: none;
    color: #1a4fa0;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notice-back-btn:hover {
    background: #f8f9fa;
    transform: translateX(-4px);
}

.notice-back-btn i {
    font-size: 1.1rem;
}

.notice-detail-inner {
    padding: 0;
}

.notice-detail h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a4fa0;
    word-break: break-all;
    line-height: 1.4;
}

.notice-detail .notice-meta {
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.notice-detail .notice-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notice-detail .notice-date i {
    color: #1a4fa0;
}

.notice-detail .notice-content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
    word-break: break-all;
    white-space: pre-wrap;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.notice-detail .notice-content p {
    margin: 0 0 0.5em 0;
}

/* 텍스트 정렬 스타일 */
.notice-detail .notice-content p.text-left {
    text-align: left;
}

.notice-detail .notice-content p.text-center {
    text-align: center;
}

.notice-detail .notice-content p.text-right {
    text-align: right;
}

/* 텍스트 스타일 */
.notice-detail .notice-content p.bold {
    font-weight: bold;
}

.notice-detail .notice-content p.italic {
    font-style: italic;
}

.notice-detail .notice-content p.underline {
    text-decoration: underline;
}

/* 텍스트 크기 */
.notice-detail .notice-content p.text-small {
    font-size: 0.9rem;
}

.notice-detail .notice-content p.text-large {
    font-size: 1.3rem;
}

.notice-detail .notice-content p.text-xlarge {
    font-size: 1.5rem;
}

/* 목록 스타일 */
.notice-detail .notice-content ul,
.notice-detail .notice-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.notice-detail .notice-content ul {
    list-style-type: disc;
}

.notice-detail .notice-content ol {
    list-style-type: decimal;
}

/* 링크 스타일 */
.notice-detail .notice-content a {
    color: #1a4fa0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notice-detail .notice-content a:hover {
    color: #17407a;
    text-decoration: underline;
}

/* 인용구 스타일 */
.notice-detail .notice-content blockquote {
    margin: 1em 0;
    padding: 1em;
    border-left: 4px solid #1a4fa0;
    background: #f1f3f5;
    font-style: italic;
}

/* 코드 블록 스타일 */
.notice-detail .notice-content pre {
    margin: 1em 0;
    padding: 1em;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
}

/* 테이블 스타일 */
.notice-detail .notice-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.notice-detail .notice-content th,
.notice-detail .notice-content td {
    padding: 0.5em;
    border: 1px solid #e9ecef;
}

.notice-detail .notice-content th {
    background: #f8f9fa;
    font-weight: bold;
}

/* 이미지 스타일 */
.notice-detail .notice-content img {
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 4px;
}

/* 구분선 스타일 */
.notice-detail .notice-content hr {
    margin: 2em 0;
    border: none;
    border-top: 1px solid #e9ecef;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    .notice-detail .notice-content {
        font-size: 1rem;
        line-height: 1.3;
        padding: 1.5rem;
    }
    
    .notice-detail .notice-content p {
        margin: 0 0 0.3em 0;
    }

    .notice-detail .notice-content p.text-large {
        font-size: 1.2rem;
    }

    .notice-detail .notice-content p.text-xlarge {
        font-size: 1.3rem;
    }

    .notice-detail .notice-content blockquote {
        padding: 0.8em;
    }

    .notice-detail .notice-content pre {
        padding: 0.8em;
    }
}

@media (max-width: 1600px) {
    .notice-detail {
        width: 1200px;
    }
    .notice-container {
        width: 1400px;
    }
}

@media (max-width: 1400px) {
    .notice-detail {
        width: 1000px;
    }
    .notice-container {
        width: 1200px;
    }
}

@media (max-width: 768px) {
    #notice-section {
        padding: 16px 0;
    }
    
    .notice-detail {
        width: 100%;
        margin: 0;
        padding: 20px;
        border-radius: 0;
    }
    
    .notice-detail-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .notice-back-btn {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .notice-detail h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .notice-detail .notice-content {
        font-size: 1rem;
        line-height: 1.3;
        padding: 1.5rem;
    }
}

.notice-delete-btn-wrap {
    margin-top: 32px;
    text-align: right;
}

.notice-delete-btn-wrap .notice-delete-btn {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255,68,68,0.1);
}

.notice-delete-btn-wrap .notice-delete-btn:hover {
    background-color: #ff0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,68,68,0.2);
}

.notice-delete-btn-wrap .notice-delete-btn:disabled {
    background-color: #ffcccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.notice-delete-btn-wrap .notice-delete-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .notice-delete-btn-wrap {
        text-align: center;
        margin-top: 20px;
    }
    .notice-delete-btn-wrap .notice-delete-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
}

html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#main {
    flex: 1 0 auto;
}

.notice-tab-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    margin-top: 0;
    width: 100%;
    max-width: 1400px;
    min-height: 0;
    z-index: 5;
    justify-content: center;
}
.notice-tab {
    background: #fff;
    border: 2px solid #1a4fa0;
    border-radius: 16px 16px 8px 8px;
    box-shadow: 0 4px 16px rgba(26,79,160,0.08);
    padding: 0;
    min-width: 320px;
    max-width: 600px;
    flex: 1 1 320px;
    position: relative;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}
.notice-tab-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f8f9fa;
    border-bottom: 1.5px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
    padding: 0 16px;
    min-height: 48px;
}
.notice-tab-title {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a4fa0;
    padding: 16px 0 12px 0;
    background: none;
    border: none;
    border-radius: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notice-tab-back {
    position: static;
    margin-left: 12px;
    background: none;
    border: none;
    color: #1a4fa0;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.18s;
    font-weight: 700;
    padding: 2px 10px 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.notice-tab-back:hover {
    color: #0d2b5e;
}
.notice-tab-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 1.3em;
    cursor: pointer;
    z-index: 2;
    transition: color 0.18s;
}
.notice-tab-close:hover {
    color: #1a4fa0;
}
.notice-tab-content {
    padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    background: #fff;
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
    word-break: break-all;
    min-height: 80px;
}

@media (max-width: 700px) {
    .notice-tab-area {
        flex-direction: column;
        gap: 16px;
        max-width: 100vw;
    }
    .notice-tab {
        min-width: 0;
        max-width: 100vw;
    }
    .notice-tab-content {
        min-height: 1500px;
        height: 100%;
        overflow-y: scroll;
        padding: 15px;
    }

    .notice-table, .notice-table thead, .notice-table tbody, .notice-table tr {
        display: table;
        width: 100%;
    }
    .notice-table thead {
        display: table-header-group;
    }
    .notice-table tr {
        display: table-row;
        background: #fff;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .notice-table td {
        display: table-cell;
        padding: 12px 8px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
        width: auto;
    }
    .notice-table td:before {
        display: none;
    }
    .notice-title-cell, .notice-summary {
        font-size: 15px;
    }
    .notice-table tr:last-child {
        margin-bottom: 0;
    }
    .write-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .pagination {
        margin-top: 12px;
    }
    .page-btn {
        font-size: 12px;
        padding: 6px 8px;
        border-radius: 8px 8px 0 0;
    }
    .notice-detail-inner {
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    }
    .notice-summary {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        font-size: 13px;
        margin-bottom: 4px;
    }
    .mobile-detail-guide {
        color: #b71c1c;
        font-size: 12px;
        margin-top: 2px;
        margin-bottom: 6px;
        display: block;
    }
}

@media (max-width: 700px) {
    .notice-content {
        max-height: 180px;
        font-size: 13px;
        padding: 8px 4px;
    }
}

.summary-mobile { display: none; }
.summary-pc { display: inline; }
@media (max-width: 700px) {
    .summary-mobile { display: block; color: #b71c1c; font-size: 12px; margin-top: 2px; margin-bottom: 6px; }
    .summary-pc { display: none; }
}

.recent-star {
    color: #e74c3c;
    margin-right: 8px;
    font-size: 0.6em;
    animation: starPulse 1.5s infinite;
}

@keyframes starPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 에디터 툴바 스타일 */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.toolbar-group {
    display: flex;
    gap: 5px;
    padding: 0 5px;
    border-right: 1px solid #dee2e6;
}

.toolbar-group:last-child {
    border-right: none;
}

.toolbar-btn {
    padding: 5px 10px;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

.toolbar-btn.active {
    background-color: #e9ecef;
    color: #0d6efd;
}

/* 글자 간격 버튼 스타일 */
.letter-spacing-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s;
}

.letter-spacing-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

.letter-spacing-btn i {
    font-size: 14px;
}

.letter-spacing-btn.active {
    background-color: #e9ecef;
    color: #0d6efd;
}

.font-select,
.font-size-select {
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    color: #495057;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-select:hover,
.font-size-select:hover {
    border-color: #86b7fe;
}

.font-select:focus,
.font-size-select:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 폰트 미리보기 스타일 */
.font-select option {
    font-family: var(--font-family);
}

.font-select option[value="Arial"] { font-family: Arial, sans-serif; }
.font-select option[value="Times New Roman"] { font-family: "Times New Roman", serif; }
.font-select option[value="맑은 고딕"] { font-family: "맑은 고딕", sans-serif; }
.font-select option[value="나눔고딕"] { font-family: "나눔고딕", sans-serif; }
.font-select option[value="나눔명조"] { font-family: "나눔명조", serif; }
.font-select option[value="Noto Sans KR"] { font-family: "Noto Sans KR", sans-serif; }
.font-select option[value="Noto Serif KR"] { font-family: "Noto Serif KR", serif; }
.font-select option[value="Pretendard"] { font-family: "Pretendard", sans-serif; }
.font-select option[value="Montserrat"] { font-family: "Montserrat", sans-serif; }
.font-select option[value="Roboto"] { font-family: "Roboto", sans-serif; }
.font-select option[value="Open Sans"] { font-family: "Open Sans", sans-serif; }

/* 에디터 콘텐츠 영역 스타일 */
.editor-content {
    min-height: 300px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 0 0 4px 4px;
    background-color: white;
    overflow-y: auto;
}

.editor-content:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 에디터 내부 요소 스타일 */
.editor-content p {
    margin: 0 0 1em 0;
}

.editor-content ul,
.editor-content ol {
    margin: 0 0 1em 0;
    padding-left: 2em;
}

.editor-content a {
    color: #0d6efd;
    text-decoration: none;
}

.editor-content a:hover {
    text-decoration: underline;
}

@media (max-width: 1600px) {
    .notice-container {
        width: 1400px;
    }
    
    .notice-table th:nth-child(2), .notice-table td:nth-child(2) {
        width: 800px;
    }
}

@media (max-width: 1400px) {
    .notice-container {
        width: 1200px;
    }
    
    .notice-table th:nth-child(2), .notice-table td:nth-child(2) {
        width: 600px;
    }
}

@media (max-width: 768px) {
    .notice-container {
        width: 100%;
        padding: 10px;
    }
    
    .notice-table th:nth-child(1), .notice-table td:nth-child(1),
    .notice-table th:nth-child(2), .notice-table td:nth-child(2),
    .notice-table th:nth-child(3), .notice-table td:nth-child(3) {
        width: auto;
        white-space: normal;
    }
    
    .notice-edit-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .notice-edit-btn i {
        font-size: 14px;
    }
}

.notice-title-cell {
    cursor: pointer;
    transition: color 0.2s ease;
}

.notice-title-cell:hover {
    color: #1a4fa0;
}

@media (max-width: 1600px) {
    .notice-write-wrap {
        width: 1400px;
    }
}

@media (max-width: 1400px) {
    .notice-write-wrap {
        width: 1200px;
    }
}

@media (max-width: 768px) {
    .notice-write-wrap {
        width: 100%;
        padding: 0 16px;
        margin-bottom: 16px;
    }
}

/* ChatGPT 버튼 스타일 */
.chatgpt-btn {
    background-color: #10a37f;
    color: white;
    transition: all 0.3s ease;
}

.chatgpt-btn:hover {
    background-color: #0d8c6d;
    transform: scale(1.05);
}

.chatgpt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.chatgpt-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chatgpt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chatgpt-modal-header h2 {
    margin: 0;
    color: #333;
}

.chatgpt-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.chatgpt-modal-body {
    margin-bottom: 1rem;
}

.chatgpt-modal-body textarea {
    width: 100%;
    height: 150px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.chatgpt-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.chatgpt-modal-footer button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatgpt-modal-footer .cancel-btn {
    background-color: #f5f5f5;
    color: #333;
}

.chatgpt-modal-footer .generate-btn {
    background-color: #10a37f;
    color: white;
}

.chatgpt-modal-footer button:hover {
    opacity: 0.9;
}

/* 폰트 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Noto+Serif+KR:wght@400;500;700&family=Montserrat:wght@400;500;700&family=Roboto:wght@400;500;700&family=Open+Sans:wght@400;500;700&display=swap');

@media (max-width: 900px) {
    #main {
        padding: 0;
        min-height: 100vh;
    }

    #section.main-section {
        min-height: 200px;
        padding-top: 60px;
        background-attachment: fixed;
    }

    .main-title {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 16px;
    }

    .notice-container {
        padding: 16px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .notice-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 100;
        padding: 8px 0;
        margin-bottom: 16px;
        border-bottom: 1px solid #eee;
    }

    .write-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .notice-list {
        padding: 0;
    }

    .notice-item {
        margin-bottom: 12px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        border: 1px solid #eee;
    }

    .notice-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .notice-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.85rem;
    }

    .pagination {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 0;
        margin: 0;
        border-top: 1px solid #eee;
        z-index: 100;
    }

    .page-btn {
        flex: 1;
        max-width: 60px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    #section.main-section {
        min-height: 180px;
        padding-top: 50px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .notice-container {
        padding: 12px;
    }

    .notice-header {
        padding: 6px 0;
        margin-bottom: 12px;
    }

    .write-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .notice-item {
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .notice-title {
        font-size: 1rem;
    }

    .notice-meta {
        font-size: 0.8rem;
    }

    .notice-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .pagination {
        padding: 8px 0;
    }

    .page-btn {
        max-width: 50px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* 모바일에서 테이블 스타일 최적화 */
@media (max-width: 768px) {
    .notice-table {
        margin: 0;
        border: none;
        background: transparent;
    }

    .notice-table tr {
        margin: 0 0 12px 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .notice-table td {
        padding: 12px;
        border-bottom: 1px solid #f5f5f5;
    }

    .notice-table td:before {
        width: 70px;
        font-size: 0.85rem;
    }

    .notice-title-cell {
        font-size: 1.05rem;
        padding: 12px;
        background: #f8f9fa;
    }

    .notice-title-cell:before {
        display: none;
    }

    .notice-date-cell,
    .notice-author-cell {
        font-size: 0.85rem;
        color: #666;
    }
}

/* 모바일에서 에디터 최적화 */
@media (max-width: 480px) {
    .editor-toolbar {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 100;
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

    .toolbar-group {
        flex-wrap: wrap;
        gap: 4px;
    }

    .toolbar-btn {
        flex: 1;
        min-width: 40px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .font-select,
    .font-size-select {
        height: 36px;
        padding: 0 8px;
    }

    .editor-content {
        padding: 12px;
        font-size: 16px; /* 모바일에서 더 나은 가독성을 위해 */
    }
}

/* 모바일에서 상세보기 최적화 */
@media (max-width: 768px) {
    .notice-detail {
        padding: 16px;
        margin: 0;
        border-radius: 0;
    }

    .notice-detail-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 100;
        padding: 12px 0;
        margin-bottom: 16px;
        border-bottom: 1px solid #eee;
    }

    .notice-back-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .notice-detail h2 {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .notice-detail .notice-content {
        font-size: 1rem;
        line-height: 1.3;
        padding: 16px;
    }
}

/* 모바일에서 스크롤 최적화 */
@media (max-width: 768px) {
    .notice-list,
    .notice-detail,
    .editor-content {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .notice-item,
    .notice-table tr {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* 모바일에서 터치 영역 최적화 */
@media (max-width: 768px) {
    .write-btn,
    .page-btn,
    .notice-back-btn,
    .toolbar-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .notice-title-cell,
    .notice-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* 모바일용 공지사항 카드 스타일 */
.notice-list-mobile {
    display: none;
}

.notice-list-pc {
    display: block;
}

.notice-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    border: 1px solid #ececec;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.notice-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.notice-card-date {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notice-card-date:before {
    content: attr(data-label);
    color: #888;
    font-weight: 600;
    margin-right: 8px;
}

.notice-card-body {
    padding: 16px;
}

.notice-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a4fa0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.notice-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.notice-card-actions .notice-edit-btn,
.notice-card-actions .notice-delete-btn {
    width: 32px;
    height: 32px;
    padding: 6px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .notice-list-mobile {
        display: block;
    }

    .notice-list-pc {
        display: none;
    }

    .notice-container {
        padding: 12px;
    }

    .notice-card {
        margin-bottom: 12px;
    }

    .notice-card-header {
        padding: 10px 14px;
    }

    .notice-card-body {
        padding: 14px;
    }

    .notice-card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .notice-card-actions {
        margin-top: 10px;
        padding-top: 10px;
    }
} 