/* styles.css */

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 바디 설정 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 0 20px;
}

/* 헤더 스타일 */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 3px 0;
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #007BFF;
}

p[itemprop="text"] {
    margin-bottom: 30px;
}

/* 메인 콘텐츠 스타일 */
main {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

ol, ul {
    margin: 0 10px;
}

article h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222222;
}

article p {
    margin-bottom: 20px;
    line-height: 1.8;
}

article h2 {
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333333;
}

article h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #444444;
}

article img {
    max-width: 800px;
    height: auto;
    margin: auto;
    display: block;
    border-radius: 4px;
}

/* 링크 스타일 */
a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #0056b3;
    text-decoration: underline;
}

/* FAQ 섹션 스타일 */
section {
    margin: 20px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333333;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.open h3::after {
    transform: rotate(45deg);
}

.faq-item p {
    display: none;
    padding-left: 20px;
    border-left: 3px solid #007BFF;
}

.faq-item.open p {
    display: block;
}

/* 푸터 스타일 */
footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin-bottom: 10px;
    color: #777777;
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

footer nav ul li {
    margin: 0 10px;
}

footer nav ul li a {
    color: #555555;
    font-size: 0.9rem;
}

footer nav ul li a:hover,
footer nav ul li a:focus {
    color: #007BFF;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 1px 0;
    }

    main {
        padding: 20px;
    }

    article h1 {
        font-size: 2rem;
    }

    article h2 {
        font-size: 1.75rem;
    }

    article img {
        width: 100%;
    }

    article h3 {
        font-size: 1.25rem;
    }

    footer nav ul {
        flex-direction: column;
    }

    footer nav ul li {
        margin: 5px 0;
    }
}

/* 접근성 개선 */
a:focus {
    outline: 2px dashed #007BFF;
    outline-offset: 4px;
}

/* 버튼 스타일 (FAQ 토글) */
.faq-item h3 {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    width: 100%;
    text-align: left;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    background-color: #fff;
}
article h1 {
    color: #004080;
    border-bottom: 2px solid #004080;
    padding-bottom: 10px;
}
h2 {
    color: #004080;
    border-bottom: 2px solid #004080;
    padding-bottom: 10px;
    margin-top: 40px;
}
h3 {
    color: #0066cc;
    margin-top: 20px;
}
h4 {
    color: #0080ff;
    margin-top: 15px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    padding: 12px;
    text-align: center;
}
th {
    background-color: #f2f2f2;
}