/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 5px;
}

.main-container {
    background-color: #ffffff;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* --- Header styles (Final Version for Image Titles) --- */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 250px;
    width: 100%;
    flex-shrink: 1;
}

.korean-name-img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0px;
}

.english-name-img {
    display: block;
    width: 100%;
    height: auto;
}

.illustration-img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}
/* --- End of Header styles --- */


/* Navigation styles */
nav {
    background-color: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.menu-button {
    padding: 10px 25px;
    background-color: #a6d4ff;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.5s ease;
    white-space: nowrap;
    min-width: fit-content;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-button:hover {
    background-color: #7fc3ff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.menu-button.inactive {
    background-color: #d0d0d0;
}

/* Main content area */
main {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sky-background {
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: url('images/sky_foreground_u35.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content section layout */
.content-section {
    display: none;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    min-height: 600px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.content-section h2 {
    font-size: 12px;
    color: #333;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 2px solid #e0e0e0;
}

#about h2, #staff h2, #guide h2, #location h2, #notice h2
{
    text-align: center;
}

.content-section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #333;
}

.content-section p {
    line-height: 1.8;
    margin: 15px 0;
    color: #555;
    font-size: 16px;
}

.doctor-name {
    font-size: 30px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.doctor-intro {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.doctor-creds {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.section-content {
    max-width: 100%;
}

.text-content {
    /* No specific styles needed now, handled by bio-wrapper */
}

/* Bio section layout (Doctor info and image) */
.bio-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
}

.bio-text {
    flex: 1;
}

.bio-text h3 {
    margin-top: 0;
}

#about .image-content,
#staff .image-content {
    width: 125px;
    flex-shrink: 0;
    text-align: center;
}

#about .image-content img,
#staff .image-content img {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.ahn-logo {
    max-width: 200px !important;
}

.ahn-title {
    max-width: 250px !important;
}

.location-content {
    margin-top: 30px;
    text-align: center;
}

.location-map {
    width: 900px;
    margin: 40px auto;
    padding: 40px;
    max-width: 100%; /* 700px에서 100%로 변경 */
    margin: 20px auto;
    display: block;
}

.location-info {
    width: 900px;
    margin: 40px auto;
    padding: 40px;
    text-align: left;
    max-width: 100%; /* 700px에서 100%로 변경 */
    margin: 0 auto;
}

.location-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* --- Notice section styles (Revised) --- */
.notice-box {
    width: 900px;
    margin: 40px auto;
    padding: 5px;
    text-align: center;
    max-width: 100%; /* 700px에서 100%로 변경 */
}

.notice-box h3 {
    width: 900px;
    margin: 20px auto;
    padding: 5px;
    
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 0px;
    margin-top: 30px;
    max-width: 100%; /* 700px에서 100%로 변경 */

}

.notice-box h3:first-of-type {
    margin-top: 10px;

}

.notice-box .date {
    font-size: 18px;
    color: #02A7F0;
    margin-bottom: 1px;
}

.notice-box .notice-footer {
    font-size: 16px;
    color: #02A7F0;
    margin-top: 10px;
}
/* --- End of Notice section styles --- */

#guide img {
    display: block;
    margin: 20px auto;
}

/* --- Footer styles (Revised for two images) --- */
footer {
    background-color: #ffffff;
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    flex-shrink: 0;
}

.footer-info-img {
    height: 30px;
    width: auto;
    max-width: 80%;
}
/* --- End of Footer styles --- */


/* --- Responsive design --- */
@media (max-width: 768px) {
    .logo-section {
        max-width: 200px;
    }
    .illustration-img {
        width: 180px;
    }
    
    .menu-button {
        font-size: 12px;
        padding: 8px 20px;
    }
    
    .content-section {
        margin: 20px auto;
        width: 90%;
    }

    .sky-background {
        padding: 20px;
    }
    .sky-background::before {
        font-size: 28px;
    }
    .sky-background::after {
        font-size: 16px;
    }

    .bio-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    #about .image-content,
    #staff .image-content {
        width: 100px;
        margin: 0 0 0 20px;
        order: 1;
        align-self: flex-start;
    }

    .bio-text {
        padding-right: 0;
        flex-grow: 1;
    }
    
    .content-section h2 { font-size: 22px; }
    .content-section h3 { font-size: 18px; }
    .content-section p { font-size: 15px; }
    .doctor-name { font-size: 19px; }
    .doctor-intro { font-size: 17px; }
    .doctor-creds { font-size: 15px; }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    .footer-logo-img, .footer-info-img {
        height: 25px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .logo-section {
        max-width: 180px;
        order: 1;
    }
    .illustration-img {
        width: 150px;
        order: -1;
    }
    
    .menu-button {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .content-section {
        padding: 25px;
        width: 95%;
    }

    .sky-background {
        padding: 0;
    }

    #about .image-content,
    #staff .image-content {
        width: 80px;
        margin: 0 0 0 15px;
    }
}

@media (max-width: 480px) {
    .logo-section {
        max-width: 150px;
    }
    .illustration-img {
        width: 120px;
    }
    
    #about .image-content,
    #staff .image-content {
        width: 70px;
        margin: 0 0 0 10px;
    }

    .menu-button {
        font-size: 10px;
        padding: 7px 12px;
    }
    
    .nav-container {
        gap: 5px;
    }
    
    body {
        padding: 3px;
    }

    .content-section {
        padding: 20px;
    }
    .sky-background {
        padding: 0;
    }

    .content-section h2 { font-size: 20px; }
    .content-section h3 { font-size: 20px; }
    .content-section p { font-size: 16px; }
    .doctor-name { font-size: 18px; }
    .doctor-intro { font-size: 16px; }
    .doctor-creds { font-size: 14px; }
}

@media (max-width: 380px) {
    .logo-section {
        max-width: 130px;
    }
    .illustration-img {
        width: 100px;
    }

    .menu-button {
        font-size: 9px;
        padding: 6px 10px;
    }
    
    .nav-container {
        gap: 3px;
    }
}