@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800');

:root {
    --main-color: #dce7f7;        /* ë°ì€ ì „ì²´ ë°°ê²½ */
    --main-color-light: #e8f0fe;  /* ì¹´ë“œ ë“± */
    --point-color: #3478f6;       /* íŒŒëž‘ í¬ì¸íŠ¸ */
    --point-color2: #60b6f5;      /* ì—°í•œ í¬ì¸íŠ¸ */
    --soft-color: #f2f4fa;
    --bg-color: #0f5196;          /* ë”¥ ë„¤ì´ë¹„ í—¤ë” */
    --font-main: 'Manrope', 'Noto Sans KR', Arial, sans-serif;
    --font-color: #1c1d21;
    --hero-image: url('../images/springmainwide.png');
    --banner-height: 50px;
    --header-offset-height: 80px;
    --hero-offset: calc(var(--banner-height) + var(--header-offset-height));
    --content-offset: calc(100vh - var(--header-offset-height));
}

body {
    margin: 0;

    min-height: 100vh;
    padding-bottom: var(--content-offset);

    background-image: linear-gradient(to bottom, white 70%, var(--main-color) 100%);
    box-sizing: border-box;

    color: var(--font-color);
    font-family: var(--font-main);
}

.warningBanner {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: var(--banner-height);

    display: flex;
    background-color: #ff6573;
    box-sizing: border-box;

    align-items: center;
    justify-content: space-between;
}
.warningBanner .group {
    display: flex;

    align-items: center;
}
.warningBanner .group a {
    margin-left: 30px;

    color: white;
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;
}
.warningBanner .group button {
    margin-left: 30px;

    padding: 7px 10px 7px 10px;

    background: transparent;
    border-radius: 20px;
    border: 1px solid white;
    box-sizing: border-box;

    color: white;
    font-size: 15px;
    font-weight: 200;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.warningBanner .group button:hover {
    background-color: white;

    color: #ff6573;
}
.warningBanner span {
    margin-right: 30px;

    color: white;
    font-size: 30px;

    cursor: pointer;
    transition: color 0.2s;
    vertical-align: middle;
}

header {
    position: relative;
    top: var(--banner-height);
    left: 0;

    width: 100%;
    height: 80px;
    padding: 0 10%;

    display: flex;

    color: white;

    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    box-sizing: border-box;
}
header::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;

    height: calc(100vh - var(--banner-height));
    width: 100%;

    content: '';
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
header.bannerClosed::before {
    height: 100vh;
}
header::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

    height: calc(100vh - var(--banner-height));
    width: 100%;

    content: '';
    background-color: rgba(0, 0, 0, 0.6);
}
header.bannerClosed::after {
    height: 100vh;
}
header .menu {
    display: flex;
    flex: 1 1 auto;
    gap: 70px;
    align-items: center;
    min-width: 0;
}
header a {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px #3564f522;
    line-height: 0;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    white-space: nowrap;
    flex: 0 0 auto;

    cursor: pointer;
}
header .admin-button {
    margin-left: 30px;
    padding: 8px 30px;

    border: 2px solid white;
    box-sizing: border-box;
    background: transparent;

    color: white;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    flex: 0 0 auto;

    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
}
header .admin-button:hover {
    background-color: white;

    color: var(--font-color);
}

@media (max-width: 1400px) {
    header .menu {
        gap: clamp(18px, 5vw, 70px);
    }

    header .admin-button {
        margin-left: clamp(16px, 2.5vw, 30px);
    }
}

@media (max-width: 1200px) {
    header {
        padding: 0 clamp(24px, 6vw, 10%);
    }
}

@media (max-width: 700px) {
    :root {
        --header-offset-height: 150px;
    }

    .warningBanner {
        height: auto;
        padding: 12px 14px;

        align-items: flex-start;
    }

    .warningBanner .group {
        flex-wrap: wrap;
        gap: 8px;
    }

    .warningBanner .group a {
        margin-left: 0;

        font-size: 13px;
        line-height: 1.45;
    }

    .warningBanner .group button {
        margin-left: 0;

        font-size: 12px;
    }

    .warningBanner span {
        margin-right: 0;

        font-size: 24px;
        line-height: 1;
    }

    header {
        height: auto;
        padding: 26px 10vw 20px 10vw;

        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px;
    }

    header .menu {
        flex: 0 0 100%;
        width: 100%;
        gap: 32px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        padding-bottom: 4px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    header .menu::-webkit-scrollbar {
        height: 4px;
    }

    header a {
        line-height: 1.2;
    }

    header .admin-button {
        width: 80vw;
        max-width: 80vw;
        margin-left: 0;
    }

}

.cover {
    position: absolute;
    top: var(--hero-offset);

    width: 100%;
    height: calc(100vh - var(--hero-offset));

    color: white;
}
.cover .title {
    margin-left: 10%;
    position: absolute;
    left: 0%;
    bottom: 25%;

    width: 35vw;
}
.cover .title strong {
    font-size: 3.87vw;
    font-weight: 700;
    letter-spacing: 5px;
    text-shadow: 0 2px 12px #3564f522;

    text-align: left;
}
.cover .coverTools {
    margin-right: 10%;
    position: absolute;
    right: 0%;
    bottom: 25%;

    height: 70%;
    width: 35vw;

    display: flex;
    
    flex-direction: column;
    justify-content: space-between;
}
.cover .coverTools .coverTool {
    position: relative;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.10);
    box-sizing: border-box;
    overflow: hidden;
    height: 45%;

    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cover .coverTools .coverTool:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);

    transform: translateY(-10px);
}
.cover .coverTools .coverTool .preview {
    width: 200%;
    height: 200%;

    display: block;
    border: none;

    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
}
.cover .coverTools .coverTool .overlay {
    position: absolute;
    inset: 0;

    display: flex;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,0) 70%);
    cursor: pointer;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}
.cover .coverTools .coverTool .overlay::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,.05) 75%);
    opacity: 0;
    transform: scaleY(0.9);
    transform-origin: bottom center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: none;
}
.cover .coverTools .coverTool:hover .overlay::after {
    opacity: 1;
    transform: scaleY(1);
}
.cover .coverTools .coverTool .overlay strong {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;
    line-height: 1.4;
}
.cover .scrollSign {
    position: absolute;
    left: 50%;
    bottom: 10%;

    font-size: 25px;
    font-weight: 100;
    text-shadow: 0 2px 12px #3564f522;

    display: block;
    transform: translateX(-50%) scaleX(1.5);

    text-align: center;
    cursor: pointer;
}

@media (max-width: 700px) {
    .cover {
        --mobile-cover-stack-gap: clamp(14px, 3svh, 24px);
        --mobile-cover-title-gap: clamp(18px, 3svh, 28px);
        --mobile-cover-bottom-offset: clamp(48px, 8svh, 72px);

        height: calc(100svh - var(--hero-offset));
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: var(--mobile-cover-stack-gap);
        padding: clamp(16px, 3svh, 28px) 0 var(--mobile-cover-bottom-offset);
        box-sizing: border-box;
        overflow: hidden;
    }

    .cover .title {
        position: static;
        margin: 0 0 var(--mobile-cover-title-gap) 0;

        width: 82vw;
        transform: none;
        flex: 0 0 auto;
    }

    header.bannerClosed + .cover .title {
        margin-top: 0;
    }

    .cover .title strong {
        display: block;

        font-size: clamp(22px, min(8.4vw, 4.8svh), 34px);
        letter-spacing: 2px;
        line-height: 1.2;

        text-align: left;
    }

    .cover .coverTools {
        position: static;
        margin: 0;
        padding: 0;

        width: 82vw;
        height: auto;
        gap: 12px;
        box-sizing: border-box;

        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        transform: none;
        flex: 0 0 auto;
    }

    .cover .coverTools .coverTool {
        width: calc((100% - 12px) / 2);
        height: clamp(120px, 22svh, 200px);
        flex: 0 0 auto;
    }

    .cover .coverTools .coverTool .overlay strong {
        font-size: 18px;
    }

    .cover .scrollSign {
        position: static;
        left: auto;
        bottom: auto;
        margin: 0;
        font-size: clamp(18px, 3svh, 25px);
        transform: scaleX(1.5);
        flex: 0 0 auto;
    }
}

.clubInfo, .departmentInfo, .schoolPaper {
    position: relative;
    top: var(--content-offset);

    width: 100%;
    padding-bottom: 20px;

    border-top: 1px solid transparent;
    box-sizing: border-box;
}
.clubInfo .content, .departmentInfo .content, .schoolPaper .content {
    margin: 50px auto 0 auto;
    
    width: 80%;

    display: flex;

    text-align: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.clubInfo .content strong, .departmentInfo .content strong, .schoolPaper .content strong {
    margin-bottom: 50px;

    flex: 0 0 100%;

    display: block;

    font-size: 25px;
    font-weight: 500;
    letter-spacing: 1px;

    text-align: center;
}
.clubInfo .content .club, .schoolPaper .content .paper {
    margin-bottom: 30px;

    width: calc((100% - 60px) / 3);

    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.10);
    box-sizing: border-box;

    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.clubInfo .content .club:hover, .schoolPaper .content .paper:hover {
    box-shadow: 0 6px 20px #3564f577;

    transform: translateY(-10px);
}
.clubInfo .content .club img, .departmentInfo .content .department img {
    width: 100%;
    height: 300px;

    border-radius: 20px 20px 0 0;
    object-fit: cover;
}
.clubInfo .content .club .clubContent, .departmentInfo .content .department .departmentContent, .schoolPaper .content .paper .paperContent {
    margin: 20px auto 0 auto;

    width: 85%;
}
.clubInfo .content .club .clubContent strong, .departmentInfo .content .department .departmentContent strong, .schoolPaper .content .paper .paperContent strong {
    margin-bottom: 10px;

    display: block;

    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;

    text-align: left;
}
.clubInfo .content .club .clubContent .description, .departmentInfo .content .department .departmentContent .description {
    display: block;

    font-size: 18px;
    font-weight: 200;
    letter-spacing: 1px;

    text-align: left;
}
.clubInfo .content .club .clubContent .info, .departmentInfo .content .department .departmentContent .info {
    margin: 20px auto 0 auto;

    width: 100%;
    padding: 20px;

    background-color: var(--main-color-light);
    border-radius: 20px;
    box-sizing: border-box;
}
.clubInfo .content .club .clubContent .info a, .departmentInfo .content .department .departmentContent .info a {
    display: block;

    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;
    line-height: 30px;

    text-align: left;
}
.clubInfo .content .club .clubContent .clubDetail, .departmentInfo .content .department .departmentContent .departmentDetail, .schoolPaper .content .paper .paperDetail {
    margin: 20px auto 20px auto;

    display: block;

    font-size: 16px;
    font-weight: 200;
    letter-spacing: 1px;

    text-align: left;
}
.clubInfo .content .moreClubButton {
    display: none;
    margin: 0 auto 0 auto;

    width: 100%;
    padding: 14px;

    background: var(--point-color);
    border: none;
    border-radius: 20px;
    box-sizing: border-box;

    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.clubInfo .content .moreClubButton:hover {
    box-shadow: 0 6px 20px #3564f577;
}

@media (max-width: 700px) {
    .clubInfo .content {
        width: 82vw;
    }

    .clubInfo .content .club {
        width: 100%;
    }

    .clubInfo .content .club:nth-of-type(n + 4) {
        display: none;
    }

    .clubInfo.expanded .content .club:nth-of-type(n + 4) {
        display: block;
    }

    .clubInfo .content .moreClubButton {
        display: block;
    }

    .departmentInfo .content {
        width: 82vw;
    }

    .departmentInfo .content .department {
        width: 100%;
    }
}

.departmentInfo .content .department {
    margin-bottom: 30px;

    width: calc((100% - 90px) /4);

    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.10);
    box-sizing: border-box;

    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.departmentInfo .content .department:hover {
    box-shadow: 0 6px 20px #3564f577;

    transform: translateY(-10px);
}

@media (max-width: 700px) {
    .departmentInfo .content {
        width: 82vw;
    }

    .departmentInfo .content .department {
        width: 100%;
    }

    .schoolPaper .content {
        width: 82vw;
    }

    .schoolPaper .content .paper {
        width: 100%;
    }
}

.schoolPaper {
    padding-bottom: 50px;
}
.schoolPaper .content .paper img {
    width: 100%;
    height: 500px;

    border-radius: 20px 20px 0 0;
    object-fit: cover;
}
.schoolPaper .content .moreSchoolPaper {
    margin: 0 auto 0 auto;

    width: 100%;
    padding: 14px;

    display: block;
    background: var(--point-color);
    border: none;
    border-radius: 20px;
    box-sizing: border-box;

    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;

    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.schoolPaper .content .moreSchoolPaper:hover {
    box-shadow: 0 6px 20px #3564f577;
}

.footer {
    position: relative;
    top: var(--content-offset);

    width: 100%;
    height: 200px;

    display: flex;

    border-top: 1px solid #eaeaea;
    background-color: white;

    align-items: center;
    justify-content: space-between;
}
.footer strong {
    margin-left: 10%;

    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 500;
    line-height: 40px;
}
.footer img {
    margin-right: 10%;

    height: 100px;

    cursor: pointer;
}

@media (max-width: 700px) {
    .footer {
        height: auto;
        padding: 28px 0 32px 0;

        flex-direction: column;
        gap: 18px;
        justify-content: center;
    }

    .footer img {
        order: 1;
        margin-right: 0;

        height: 88px;
    }

    .footer strong {
        order: 2;
        margin-left: 0;

        font-size: 15px;
        line-height: 1.8;

        text-align: center;
    }
}
