/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    font-weight: bold;
}
.main-nav a:hover {
    color: #3498db;
}

/* Adjust body padding to account for fixed nav */
body {
    padding-top: 70px;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.9em;
    color: #e74c3c;
    background-color: #fdd;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

main {
    display: flex;
    gap: 30px;
}

.form-container, .result-container {
    flex: 1;
}

h2 {
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Noto Sans KR', sans-serif;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.result-container {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
}

#portfolio-result p {
    font-style: italic;
    color: #7f8c8d;
}

.portfolio-item {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.portfolio-item h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.portfolio-item p {
    margin: 5px 0 0 0;
    font-style: normal;
    color: #34495e;
}

.portfolio-item .yield {
    font-weight: bold;
    color: #27ae60;
}


/* Blog Post Enhancements */
.toc {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.toc h4 {
    margin-top: 0;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}
.toc ul {
    list-style-type: none;
    padding-left: 0;
}
.toc ul li {
    margin: 8px 0;
}
.toc ul li a {
    text-decoration: none;
    color: #0056b3;
}
.toc ul li a:hover {
    text-decoration: underline;
}

.callout-box {
    background-color: #e7f3ff;
    border-left: 5px solid #007bff;
    margin: 20px 0;
    padding: 15px 20px;
    font-size: 1.05em;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.img-caption {
    text-align: center;
    font-size: 0.9em;
    color: #6c757d;
    margin-top: -10px;
    margin-bottom: 20px;
}


.result-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.result-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.result-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #34495e;
    font-size: 1.1em;
}
.result-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}
.result-section ul li {
    margin-bottom: 8px;
}
.result-section table {
    width: 100%;
    border-collapse: collapse;
}
.result-section th, .result-section td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.result-section th {
    background-color: #f2f2f2;
}

@media (max-width: 600px) {
    main {
        flex-direction: column;
    }
    .container {
        padding: 20px;
    }
}