@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
*{margin: 0; padding: 0; font-family: 'Noto Sans KR','맑은 고딕', sans-serif; color: #333; box-sizing: border-box;}
html{
    scroll-behavior: smooth;
}
body {
    width: 100%;
    min-width: 320px;
}
button,
input,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
[hidden] {
    display: none !important;
}
/* 네비게이션 */
header {
    width: 100%;
    height: 60px;
    background-color: white;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.08));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-radius: 0 0 30px 30px;
    transition: border-radius 0.3s ease;
}
header:has(.menu.active) {
    border-radius: 0;
}
/* 로고 */
.logo img{
    width: 45px;
    height: 20px;
}
/* 햄버거 버튼 */
.hamburger {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    cursor: pointer;
    border: none;
}
/* 햄버거 선 */
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #EB2254;
    transition: 0.3s;
}
/* 메뉴 */
.menu {
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    position: fixed;
    top: 45px;
    left: 0;
    padding: 30px;
    right: 5px;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    background-color: white;
    text-align: right;
    z-index: 999;
}
.menu a{
    color: #787878;
    text-decoration: none;
    font-size: 30px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu a:nth-child(4) {
    color: #EB2254;
}
.menu a:last-child {
    margin-top: 20px;
}
/* 메뉴 활성화 */
.menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.menu.active a{
    opacity: 1;
    transform: translateX(0);
}
.menu.active a:nth-child(1) { transition-delay: 0.05s; }
.menu.active a:nth-child(2) { transition-delay: 0.10s; }
.menu.active a:nth-child(3) { transition-delay: 0.15s; }
.menu.active a:nth-child(4) { transition-delay: 0.20s; }
.menu.active a:nth-child(5) { transition-delay: 0.25s; }

/*첫 번째 선 */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
/* 두 번째 선 */
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
/* 세 번째 선 */
.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* 전체 게시판 */
.archive {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 110px 5% 100px;
}

/* 상단 */
.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 65px;
}
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #79b7eb;
}
.archive-header h1 {
    margin-top: 8px;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
}
.archive-header h1 span {
    color: #EB2254;
}
.archive-header p {
    margin-top: 10px;
    color: #777;
    font-size: clamp(11px, 2.8vw, 13px);
    white-space: nowrap;
}
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.write-btn,
.outline-btn,
.submit-btn {
    padding: 13px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.write-btn,
.submit-btn {
    border: 1px solid #EB2254;
    background: #EB2254;
    color: white;
}
.outline-btn {
    border: 1px solid #ddd;
    background: white;
    color: #555;
}
.write-btn:hover,
.submit-btn:hover {
    background: #d71948;
}

/* 게시물 영역 */
.archive-feed {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.post-list {
    display: flex;
    flex-direction: column;
    gap: 65px;
}

/* 게시물 블록 */
.post-block {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

/* 상단 이미지 */
.post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
}
.post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 하단 글 */
.post-info {
    padding: 25px 5px 35px;
}
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}
.post-meta h3 {
    font-size : 18px;
    font-weight: 800;
    color: #EB2254;
}
.post-meta time {
    font-size: 12px;
    color: #999;
}
.post-content {
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.post-controls {
    margin-top: 20px;
    text-align: right;
}
.delete-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #c0392b;
    font-size: 12px;
}

/* 로그인 및 작성 팝업 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
}
.modal-panel {
    position: relative;
    width: min(100%, 540px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 18px;
    background: white;
}
.modal-panel h2 {
    font-size: 25px;
    font-weight: 900;
}
.modal-desc {
    margin: 8px 0 25px;
    font-size: 13px;
    color: #888;
}
.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: transparent;
    font-size: 30px;
}

#loginForm,
#postForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#loginForm label,
#postForm label {
    font-size: 14px;
    font-weight: 700;
}

#loginForm input,
#postForm input,
#postForm textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline-color: #EB2254;
}

#postForm textarea {
    min-height: 160px;
    resize: vertical;
}

.preview {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}
.submit-btn {
    width: 100%;
    margin-top: 10px;
}
.status-text {
    font-size: 13px;
    color: #777;
}
.empty-message {
    padding: 80px 0;
    text-align: center;
    color: #999;
}

/* 푸터 */
footer {
    width: 100%;
    height: auto;
    margin-top: 40px;
    padding: 20px;
}
.footer-top {
    border-bottom: 1px solid #EB2254;
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.footer-top h2 {
    font-size: clamp(15px, 4.5vw, 20px);
    letter-spacing: -2px;
}
.footer-logo img{
    width: 90px;
    height: 55px;
}
.footer-middle {
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid #EB2254;
    margin-bottom: 20px;
}
.Univ-name-KR {
    font-size: clamp(14px, 4vw, 16px);
    color: #EB2254;
    font-weight: 700;
}
.Univ-name-EN {
    font-size: clamp(13px, 3.7vw, 15px);
    color: #4b4b4b;
    margin-bottom: 5px;
}
.footer-bottom {
    width: 100%;
}
.copy {
    color: #4b4b4b;
    font-size: clamp(9px, 2.7vw, 12px);
    margin-bottom: 10px;
}
.copy-KR {
    color: #4b4b4b;
    font-size: clamp(10px, 2.8vw, 12px);
    margin-bottom: 5px;
}
.copy-EN {
    color: #4b4b4b;
    font-size: clamp(10px, 2.8vw, 12px);
}

/* ========================================
   태블릿: 768px ~ 1199px
======================================== */
@media screen and (min-width: 768px) and (max-width: 1199px) {

    /* 헤더 */
    header {
        height: 76px;
        padding: 0 40px;
        border-radius: 0 0 35px 35px;
    }

    .logo img {
        display: block;
        width: 65px;
        height: auto;
    }

    .hamburger {
        width: 44px;
        height: 44px;
        padding: 11px 6px;
    }

    .menu {
        top: 76px;
        right: 0;
        height: calc(100vh - 76px);
        height: calc(100dvh - 76px);
        padding: 40px;
        gap: 28px;
        overflow-y: auto;
    }

    .menu a {
        font-size: clamp(30px, 3.5vw, 40px);
    }

    /* 아카이브 전체 */
    .archive {
        padding: 130px 40px 60px;
    }

    .archive-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
        margin-bottom: 45px;
    }

    .archive-title {
        min-width: 0;
    }

    .eyebrow {
        font-size: 13px;
    }

    .archive-header h1 {
        margin-top: 8px;
        font-size: clamp(32px, 5vw, 64px);
        font-weight: 900;
        line-height: 3;
        letter-spacing: -2px;
    }

    .archive-header p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.8;
        white-space: normal;
        word-break: keep-all;
    }

    /* 관리자 버튼 */
    .admin-actions {
        width: 100%;
        gap: 12px;
    }

    .write-btn,
    .outline-btn {
        min-height: 46px;
        padding: 12px 22px;
        font-size: 15px;
    }

    /* 게시물 */
    .archive-feed {
        max-width: 900px;
    }

    .post-list {
        gap: 50px;
    }

    .post-info {
        padding: 24px 0 30px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 10px 20px;
        margin-bottom: 18px;
    }

    .post-meta h3 {
        min-width: 0;
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .post-meta time {
        font-size: 13px;
    }

    .post-content {
        font-size: 17px;
        line-height: 1.9;
    }

    .delete-btn {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .status-text,
    .empty-message {
        font-size: 15px;
        line-height: 1.8;
    }

    /* 로그인·작성 팝업 */
    .modal {
        padding: 30px;
    }

    .modal-panel {
        width: min(100%, 600px);
        max-height: 90vh;
        max-height: 90dvh;
        padding: 45px 35px 35px;
    }

    .modal-panel h2 {
        padding-right: 40px;
        font-size: 30px;
    }

    .modal-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .close-btn {
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    #loginForm,
    #postForm {
        gap: 14px;
    }

    #loginForm label,
    #postForm label {
        font-size: 16px;
    }

    #loginForm input,
    #postForm input,
    #postForm textarea {
        min-width: 0;
        padding: 15px;
        font-size: 16px;
    }

    #postForm textarea {
        min-height: 200px;
    }

    .submit-btn {
        min-height: 50px;
        font-size: 16px;
    }

    /* 푸터 */
    footer {
        margin-top: 40px;
        padding: 35px 40px;
    }

    .footer-top {
        align-items: center;
        gap: 24px;
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .footer-top h2 {
        font-size: clamp(24px, 3vw, 34px);
        line-height: 1.3;
        letter-spacing: -1px;
    }

    .footer-logo {
        flex-shrink: 0;
    }

    .footer-logo img {
        display: block;
        width: 120px;
        height: auto;
    }

    .footer-middle {
        padding-bottom: 28px;
        margin-bottom: 28px;
    }

    .Univ-name-KR {
        font-size: 20px;
        line-height: 1.7;
    }

    .Univ-name-EN {
        font-size: 17px;
    }

    .copy,
    .copy-KR,
    .copy-EN {
        font-size: 12px;
        line-height: 1.8;
        overflow-wrap: break-word;
    }
}


/* ========================================
   데스크톱: 1200px 이상
======================================== */
@media screen and (min-width: 1200px) {

    /* 헤더 */
    header,
    header:has(.menu.active) {
        height: 88px;
        padding: 0 clamp(50px, 5vw, 100px);
        border-radius: 0 0 36px 36px;
    }

    .logo img {
        display: block;
        width: 80px;
        height: auto;
    }

    .hamburger {
        display: none;
    }

    /* 가로 메뉴 */
    header .menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;

        display: flex;
        flex-direction: row;
        align-items: center;
        gap: clamp(24px, 3vw, 56px);

        opacity: 1;
        visibility: visible;
        transform: none;
        overflow: visible;

        background: transparent;
        text-align: left;
        transition: none;
    }

    header .menu a {
        margin: 0;
        font-size: clamp(16px, 1.2vw, 21px);
        font-weight: 600;
        opacity: 1;
        transform: none;
        transition: color 0.2s ease;
    }

    header .menu a:last-child {
        margin-top: 0;
    }

    header .menu a:hover,
    header .menu a:focus-visible {
        color: #EB2254;
    }

    /* 아카이브 전체 */
    .archive {
        max-width: 1440px;
        padding: 160px 60px 70px;
    }

    .archive-header {
        align-items: flex-end;
        gap: 40px;
        margin-bottom: 70px;
    }

    .archive-title {
        flex: 1;
        min-width: 0;
    }

    .eyebrow {
        font-size: 15px;
        letter-spacing: 2.5px;
    }

    .archive-header h1 {
        font-size: clamp(50px, 4.3vw, 76px);
        line-height: 1.2;
        letter-spacing: -2px;
    }

    .archive-header p {
        margin-top: 20px;
        font-size: 18px;
        line-height: 1.8;
        white-space: normal;
    }

    /* 관리자 버튼 */
    .admin-actions {
        flex: 0 1 320px;
        justify-content: flex-end;
        gap: 12px;
    }

    .write-btn,
    .outline-btn {
        min-height: 48px;
        padding: 13px 24px;
        font-size: 15px;
    }

    /* 게시물 1열 유지 */
    .archive-feed {
        max-width: 1100px;
    }

    .post-list {
        gap: 75px;
    }

    .post-info {
        padding: 30px 0 40px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 12px 24px;
        margin-bottom: 22px;
    }

    .post-meta h3 {
        min-width: 0;
        font-size: 25px;
        overflow-wrap: anywhere;
    }

    .post-meta time {
        font-size: 14px;
    }

    .post-content {
        font-size: 18px;
        line-height: 2;
    }

    .post-controls {
        margin-top: 28px;
    }

    .delete-btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .status-text,
    .empty-message {
        font-size: 16px;
        line-height: 1.8;
    }

    /* 로그인·작성 팝업 */
    .modal {
        padding: 40px;
    }

    .modal-panel {
        width: min(100%, 640px);
        max-height: 90vh;
        max-height: 90dvh;
        padding: 50px 45px 40px;
        border-radius: 22px;
    }

    .modal-panel h2 {
        padding-right: 40px;
        font-size: 34px;
    }

    .modal-desc {
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 1.7;
    }

    .close-btn {
        top: 14px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 32px;
    }

    #loginForm,
    #postForm {
        gap: 16px;
    }

    #loginForm label,
    #postForm label {
        font-size: 16px;
    }

    #loginForm input,
    #postForm input,
    #postForm textarea {
        min-width: 0;
        padding: 16px;
        font-size: 16px;
    }

    #postForm textarea {
        min-height: 220px;
    }

    .preview {
        max-height: 380px;
    }

    .submit-btn {
        min-height: 54px;
        font-size: 17px;
    }

    /* 푸터 */
    footer {
        margin-top: 50px;
        padding: 50px clamp(60px, 6vw, 120px);
    }

    .footer-top {
        align-items: center;
        gap: 40px;
        padding-bottom: 35px;
        margin-bottom: 30px;
    }

    .footer-top h2 {
        font-size: clamp(30px, 2.6vw, 46px);
        line-height: 1.3;
        letter-spacing: -1px;
    }

    .footer-logo {
        flex-shrink: 0;
    }

    .footer-logo img {
        display: block;
        width: 160px;
        height: auto;
    }

    .footer-middle {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .Univ-name-KR {
        font-size: 23px;
        line-height: 1.7;
    }

    .Univ-name-EN {
        font-size: 19px;
    }

    .copy,
    .copy-KR,
    .copy-EN {
        font-size: 13px;
        line-height: 1.9;
        overflow-wrap: break-word;
    }
}