/* 모바일 메뉴 스타일 */
@media (max-width: 1024px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    header {
        height: auto;
        padding: 20px 0;
        box-sizing: border-box;
    }

    nav {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: transparent;
        transition: background-color 0.3s ease;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
        box-sizing: border-box;
    }

    nav.scrolled {
        background-color: rgba(0, 0, 0, 0.8);
    }

    nav .logo {
        height: 50px;
    }

    nav .logo img {
        height: 40px;
    }

    nav .hamburger {
        display: block;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        cursor: pointer;
    }

    nav .hamburger div {
        width: 30px;
        height: 3px;
        background-color: #fff;
        margin: 6px 0;
    }

    nav .menu {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 100vh;
        background-color: #333;
        padding-top: 60px;
        box-sizing: border-box;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
    }

    nav .menu.active {
        display: flex;
    }

    nav .menu .logo {
        display: block;
        margin-bottom: 20px;
    }

    .menu-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 80vh;
        margin-top: 10vh;
    }

    .menu-content .right-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        width: 100%;
        border-bottom: 1px solid #444;
    }

    .menu-content .right-menu a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        padding: 10px;
    }

    .menu-content .main-menu {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        flex-grow: 1;
    }

    .menu-content .left-icons-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        width: 100%;
    }

    .left-icons {
        display: none;
    }

    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    nav ul li {
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        padding: 20px;
        display: block;
        border-bottom: 1px solid #444;
    }

    nav ul li ul {
        display: none;
        flex-direction: column;
    }

    nav ul li.active ul {
        display: flex;
    }

    nav ul li ul li a {
        padding-left: 40px;
    }

    nav ul li a:hover,
    nav ul li a:focus,
    nav ul li a:active {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .text-container {
        text-align: center;
        padding: 20px;
        margin-top: 60px;
    }

    .main-text {
        font-size: 24px;
    }

    .sub-text {
        font-size: 18px;
        margin-top: 10px;
    }

    main {
        padding: 20px;
    }

    section {
        margin-bottom: 40px;
    }

    h1 {
        border-bottom: 2px solid #333;
        padding-bottom: 10px;
    }

    article {
        margin-bottom: 20px;
    }

    article h2 {
        color: #007BFF;
    }

    footer {
        background-color: #333;
        color: #fff;
        text-align: center;
        padding: 20px 0;
        position: relative;
        width: 100%;
        bottom: 0;
        box-sizing: border-box;
    }

    footer .footer-content {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    footer .footer-content div {
        margin: 10px;
    }

    footer .footer-content div a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
    }

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

    #to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: #fb0000;
        color: #fff;
        padding: 10px;
        border-radius: 50%;
        text-align: center;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
