/* 공통 스타일 */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #002244;
}

.layout__main {
    flex: 1;
    padding-top: 50px;/* 헤더 높이만큼 패딩 추가 */
}

footer {
    width: 100%;
    background-color: #002244;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    margin-top: auto; /* 푸터를 화면 하단에 고정 */
}

/* 헤더 스타일 */
.layout__header {
    background-color: #002244;
    padding: 5px 10px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layout__logo img {
    height: 40px;
}

.layout__nav {
    display: flex;
    gap: 15px;
}

/* 버튼을 a 태그처럼 보이도록 스타일 수정 */
.layout__nav button {
    background: none; /* 배경 제거 */
    border: none; /* 테두리 제거 */
    color: white; /* 텍스트 색상 */
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none; /* 밑줄 제거 */
    padding: 5px 10px;
    transition: color 0.3s;
}

.layout__nav button:hover {
    color: #ffdd57; /* hover 시 색상 변경 */
}

/* 버튼을 인라인 요소처럼 표시 (a 태그처럼 보이도록) */
.layout__nav button {
    display: inline;
}

.layout__nav a:hover {
    color: #ffdd57;
}

/* 푸터 스타일 */
.layout__footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout__footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.layout__footer-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.layout__footer-section ul li {
    margin-bottom: 5px;
}

/* 푸터 내 a 태그 기본 스타일 제거 */
.layout__footer button{
    background: none; /* 배경 제거 */
    border: none; /* 테두리 제거 */
    color: white; /* 텍스트 색상 */
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none; /* 밑줄 제거 */
    padding: 5px 10px;
    transition: color 0.3s;
}
.layout__footer button:hover{
    color: #ffdd57; /* hover 시 색상 변경 */
}
.layout__footer a {
    text-decoration: none;
    color: inherit;
    transition: text-decoration 0.2s ease-in-out;
}

.layout__footer a:hover {
    text-decoration: underline;
}

.layout__footer a:active,
.layout__footer a:focus {
    color: inherit;
    text-decoration: underline;
    outline: none;
}

.footer-icons {
    display: flex;
    gap: 10px;
}

.footer-icons a {
    font-size: 18px;
    transition: transform 0.3s;
}

.footer-icons a:hover {
    transform: scale(1.2);
}

.layout__footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 12px;
    color: #aaaaaa;
}
@media (max-width: 768px) {
    /* ✅ 헤더를 한 줄로 유지 (가로 정렬 유지) */
    .layout__header {
        flex-direction: row; /* 📌 모바일에서도 한 줄 유지 */
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        width: 100%;
        white-space: nowrap;
    }

    /* ✅ 네비게이션 메뉴 한 줄 유지 + 가로 스크롤 가능 */
    .layout__nav {
        display: flex;
        flex-wrap: nowrap; /* 📌 줄 바꿈 방지 */
        overflow-x: auto; /* 📌 스크롤 가능하도록 설정 */
        gap: 5px; /* 📌 간격 최소화 */
    }

    .layout__nav button {
        font-size: 14px; /* ✅ 버튼 크기 줄이기 */
        padding: 5px 8px;
    }

    /* ✅ 푸터 스타일 정리 */
    .layout__footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .layout__footer-section {
        margin-bottom: 15px;
        width: 100%;
    }

    /* ✅ 푸터 내 링크 크기 조정 */
    .layout__footer a {
        font-size: 14px;
    }
}
