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

:root {
    --primary-color: #005a9c;
    --secondary-color: #f7f9fa;
    --text-color: #333;
    --light-gray-color: #e9ecef;
    --border-color: #dee2e6;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px; /* Increased max-width for 2-column layout */
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px); /* Make container height of viewport */
}

header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 25px 30px;
    text-align: center;
    flex-shrink: 0;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden; /* Prevent container from overflowing */
}

.disaster-nav {
    width: 280px; /* A bit wider for nav items */
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    padding: 20px 15px;
    flex-shrink: 0;
    overflow-y: auto;
}

.disaster-nav button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.disaster-nav button:hover {
    background-color: var(--secondary-color);
}

.disaster-nav button.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.disaster-nav button.active i {
    color: #fff;
}

.disaster-nav i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
    transition: color 0.3s;
}

.disaster-info {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-in-out;
}

.info-content-wrap {
    max-width: 800px;
}

#info-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

#info-title i {
    margin-right: 15px;
    font-size: 2rem;
}

.info-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.info-content h3 i {
    margin-right: 12px;
    font-size: 1.3rem;
}

.info-content ul {
    list-style-type: none;
    padding-left: 15px;
}

.info-content li {
    margin-bottom: 12px;
    padding-left: 22px;
    position: relative;
}

.info-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.9rem;
}

footer {
    background-color: var(--light-gray-color);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .container {
        height: auto;
    }
    .main-content {
        flex-direction: column;
        overflow: visible;
    }
    .disaster-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        overflow-x: auto;
        padding: 10px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .disaster-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .disaster-nav button {
        width: auto;
        flex-shrink: 0;
        margin: 5px;
    }
    .disaster-info {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .container {
        border-radius: 0;
        min-height: 100vh;
        height: 100vh;
    }
    header {
        padding: 20px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .disaster-nav {
        padding: 10px 5px;
    }
    .disaster-nav button {
        flex-grow: 1;
    }
    #info-title {
        font-size: 1.8rem;
    }
    .info-content h3 {
        font-size: 1.3rem;
    }
}
