body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: white;

    /* ✅ 추가: sticky footer 구조 */
    display: flex;
    flex-direction: column;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    color: gray;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================
   NAV
========================= */

nav {
    height: 80px;
    background-color: white;

    display: flex;
    justify-content: space-around;
    align-items: center;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

    border-radius: 0 0 50px 50px;
}

.nav-logo {
    color: black;
    font-size: 25px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    padding: 28px 17px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================
   NAV USER
========================= */

.nav-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 12px;

    background: #f3f4f6;

    border-radius: 20px;
}

.nav-user-name {
    font-size: 14px;
    font-weight: 600;

    color: #111827;
}

.nav-logout {
    text-decoration: none;

    color: #dc2626;

    font-size: 13px;
    font-weight: 600;
}

.nav-logout:hover {
    opacity: 0.7;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-name {
    font-weight: 600;
    color: #111827;
}

.nav-session-time {
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;

    color: #6b7280;
    min-width: 70px;
    text-align: center;
}

.nav-logout {
    text-decoration: none;
    color: #ef4444;
    font-weight: 600;
}

/* =========================
   FOOTER (FIXED STRUCTURE)
========================= */

footer {
    width: 100%;
    margin-top: auto; /* ✅ 핵심: 항상 아래로 밀림 */
}

.footer-a {
    height: 310px;

    display: flex;
    justify-content: space-evenly;
    align-items: center;

    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);

    border-radius: 80px 80px 0 0;
}

.footer-b {
    height: 100px;

    background-color: black;

    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-box {
    width: 250px;
    height: 250px;

    color: black;
}

.footer-box1-text {
    font-weight: 100;
}

.footer-box2-text {
    color: #BF3AB0;
}

.footer-box3-text {
    color: #BF3AB0;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

    nav {
        padding: 0 20px;
    }

    .nav-item {
        padding: 28px 10px;
        font-size: 14px;
    }

    .footer-a {
        padding: 0 20px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    nav {
        height: auto;

        display: flex;
        flex-direction: column;

        padding: 15px;

        gap: 12px;

        border-radius: 0 0 30px 30px;
    }

    .nav-logo {
        font-size: 22px;
    }

    .nav-menu {
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        flex-wrap: wrap;

        gap: 8px 12px;
    }

    .nav-item {
        padding: 6px 8px;
        font-size: 13px;
    }

    .footer-a {
        flex-direction: column;
        height: auto;
        padding: 30px 20px;
        gap: 20px;
        border-radius: 40px 40px 0 0;
    }

    .footer-box {
        width: 100%;
        height: auto;
        text-align: center;
    }

    .footer-b {
        height: auto;
        padding: 20px;
        text-align: center;
        font-size: 13px;
    }

    body {
        font-size: 14px;
    }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    nav {
        padding: 12px 10px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .nav-menu {
        gap: 6px 8px;
    }

    .nav-item {
        font-size: 12px;
        padding: 4px 6px;
    }

    .footer-a {
        padding: 25px 15px;
    }

    .footer-b {
        font-size: 12px;
    }
}