@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&display=swap');

:root {
    --main-blue: #0073e6;
    --light-blue: #f0f8ff;
    --light-gray: #f8f9fa;
    --border-blue: #b3d4ff;
    --text-dark: #333333;
    --text-gray: #666666;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans KR', sans-serif; }
body { background-color: #fafbfc; color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; }

header { background-color: var(--white); border-bottom: 2px solid var(--border-blue); padding: 0 40px; height: 80px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo { font-size: 24px; font-weight: 900; color: var(--main-blue); text-decoration: none; }
nav ul { display: flex; list-style: none; gap: 25px; }
nav a { text-decoration: none; color: var(--text-dark); font-weight: 700; font-size: 16px; transition: color 0.3s; }
nav a:hover, nav a.active { color: var(--main-blue); }
.btn-discord { background-color: #5865F2; color: var(--white); padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 14px; }

main { flex-grow: 1; max-width: 1200px; margin: 0 auto; padding: 60px 20px; width: 100%; }
.page-title { font-size: 36px; color: var(--main-blue); margin-bottom: 30px; text-align: center; font-weight: 900; }
.content-box { background: var(--white); border: 2px solid var(--border-blue); border-radius: 12px; padding: 40px; box-shadow: 0 4px 15px rgba(0,115,230,0.05); margin-bottom: 20px; line-height: 1.6; }

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 15px; border-bottom: 1px solid #eee; text-align: center; }
th { background-color: var(--light-blue); color: var(--main-blue); font-weight: bold; }
ul.styled-list { list-style: none; padding-left: 0; }
ul.styled-list li { margin-bottom: 15px; padding-left: 20px; position: relative; }
ul.styled-list li::before { content: '•'; color: var(--main-blue); position: absolute; left: 0; font-weight: bold; }

footer { background-color: var(--white); border-top: 1px solid #eaeaea; text-align: center; padding: 30px; color: var(--text-gray); font-size: 14px; margin-top: auto; }
footer a { color: var(--text-gray); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--main-blue); }

.org-chart { display: flex; flex-direction: column; align-items: center; margin-top: 40px; }
.org-node { background-color: var(--light-blue); padding: 15px 30px; border-radius: 8px; text-align: center; min-width: 180px; z-index: 2; }
.org-node.gray { background-color: var(--light-gray); border: 1px solid #eee; }
.org-title { color: var(--main-blue); font-weight: bold; margin-bottom: 5px; font-size: 16px; }
.org-name { color: var(--text-dark); font-size: 15px; }
.org-line-v { width: 2px; height: 30px; background-color: var(--border-blue); }
.org-departments { display: flex; gap: 20px; justify-content: center; padding-top: 30px; border-top: 2px solid var(--border-blue); margin-top: 0px; width: 100%; max-width: 1000px; }
.dept-col { display: flex; flex-direction: column; align-items: center; gap: 15px; position: relative; flex: 1; }
.dept-col::before { content: ''; position: absolute; top: -30px; left: 50%; width: 2px; height: 30px; background-color: var(--border-blue); }

.hero { background: linear-gradient(rgba(0,115,230,0.8), rgba(0,86,179,0.9)), url('../images/hero-bg.jpg'); background-size: cover; background-position: center; color: white; padding: 100px 20px; text-align: center; border-radius: 20px; margin-bottom: 50px; }
.hero h1 { font-size: 56px; font-weight: 900; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 20px; opacity: 0.9; margin-bottom: 30px; }

.server-stats { display: flex; gap: 20px; justify-content: center; margin-bottom: 50px; }
.stat-card { background: white; padding: 25px; border-radius: 15px; border: 1px solid var(--border-blue); flex: 1; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.stat-card i { font-size: 30px; color: var(--main-blue); margin-bottom: 10px; }
.stat-value { font-size: 24px; font-weight: 900; color: var(--text-dark); display: block; }
.stat-label { font-size: 14px; color: var(--text-gray); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.feature-item { text-align: center; padding: 30px; background: white; border-radius: 15px; transition: transform 0.3s; border: 1px solid #eee; }
.feature-item:hover { transform: translateY(-10px); border-color: var(--main-blue); }
.feature-icon { width: 70px; height: 70px; background: var(--light-blue); color: var(--main-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 30px; }
.feature-item h3 { margin-bottom: 15px; color: var(--text-dark); }
.feature-item p { font-size: 15px; color: var(--text-gray); line-height: 1.6; }

.join-banner { background: var(--text-dark); color: white; padding: 60px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; margin-top: 50px; }
.join-banner h2 { font-size: 32px; font-weight: 900; }
.join-banner p { opacity: 0.7; margin-top: 10px; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.modal-content { background: var(--white); width: 400px; padding: 40px; border-radius: 20px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3); border: 2px solid var(--main-blue); position: relative; animation: modalPop 0.3s ease-out; }
@keyframes modalPop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-title { font-size: 22px; font-weight: 900; color: var(--main-blue); margin-bottom: 20px; }
.loading-container { width: 100%; height: 10px; background: #eee; border-radius: 5px; overflow: hidden; margin-bottom: 20px; }
.loading-bar { width: 0%; height: 100%; background: var(--main-blue); transition: width 3s linear; }

.modal-msg { font-size: 15px; color: var(--text-gray); margin-bottom: 25px; min-height: 45px; }
.btn-cancel { background: #ff4757; color: white; border: none; padding: 10px 25px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.2s; }
.btn-cancel:hover { background: #ff6b81; }
.btn-close { background: var(--text-gray); color: white; border: none; padding: 10px 25px; border-radius: 8px; cursor: pointer; font-weight: bold; display: none; }