/* style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 헤더 스타일 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.logo { font-size: 24px; font-weight: bold; color: #003366; }
nav ul { display: flex; gap: 30px; }
nav ul li { font-weight: 500; position: relative; }

/* 드롭다운 */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1001;
}
.dropdown li a { padding: 10px 20px; display: block; font-size: 14px; }
.dropdown li a:hover { background-color: #f0f7ff; color: #007bff; }
nav ul li:hover .dropdown { display: block; }

/* 버튼 디자인 (어두운 파란색 적용) */
.nav-buttons { display: flex; gap: 10px; }
.btn-donation { 
    background: #003366; /* 어두운 파란색 */
    color: #fff; 
    padding: 8px 20px; 
    border-radius: 20px; 
    font-weight: bold; 
    display: inline-block; 
}

/* 히어로 및 섹션 */
.hero {
    height: 500px;
    background: #fdf2e9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.section, .nohuwon-1 { padding: 80px 10%; text-align: center; }
.section-title { font-size: 32px; margin-bottom: 50px; position: relative; }
.card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.3s; }
.card:hover { transform: translateY(-10px); }
.card-img { height: 200px; background: #ddd; }
.card-body { padding: 25px; }
.card-body h3 { margin-bottom: 15px; color: #003366; } /* 어두운 파란색 */

.btn-card { 
    display: inline-block; 
    border: 1px solid #003366; /* 어두운 파란색 */
    color: #003366; 
    padding: 5px 15px; 
    border-radius: 5px; 
}

/* 푸터 */
footer { background: #333; color: #fff; padding: 50px 10%; font-size: 14px; }
.footer-info { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-bottom { margin-top: 30px; border-top: 1px solid #555; padding-top: 20px; color: #999; }


/* style.css 하단에 추가 */

/* 팝업 배경 (어둡게) */
.modal-overlay {
    display: none; /* 평소에는 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* 팝업 박스 */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 닫기 버튼 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.account-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: left;
}
