* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; background: #f5f7fa; min-height: 100vh; }
.container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }

/* 헤더 */
.header { text-align: center; margin-bottom: 60px; padding-top: 20px; }
.logo {
    display: inline-block;
}
.logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

/* 메인 카드 그리드 */
.main-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }

.main-card {
    background: linear-gradient(135deg, #8b9dc3 0%, #6b7fa8 100%);
    border-radius: 30px; padding: 60px 40px; text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); transition: all 0.3s ease;
    position: relative; overflow: hidden;
}

.main-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(255,255,255,0.1);
    opacity: 0; transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.main-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.main-card:hover::before { opacity: 1; }



.card-title { font-size: 32px; font-weight: 700; color: white; margin-bottom: 40px;
    line-height: 1.4; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.btn {
    padding: 15px 40px; border-radius: 25px; font-size: 16px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.3s ease; min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-epki { background: white; color: #2c3e50; }
.btn-epki:hover { background: #ecf0f1; transform: scale(1.05); }
.btn-kakao { background: #FEE500; color: #191919; }
.btn-kakao:hover { background: #FDD835; transform: scale(1.05); }

/* 하단 그리드 */
.bottom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }

.info-card {
    background: white; border-radius: 20px; padding: 40px 30px; text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s ease;
    position: relative; overflow: hidden; cursor: pointer;
}

.info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.info-card-number {
    position: absolute; top: 20px; left: 20px; width: 40px; height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: bold; font-size: 18px;
}

.info-card-title { font-size: 28px; font-weight: 700; color: #2c3e50;
    margin-bottom: 20px; margin-top: 30px; }
.info-card-subtitle { font-size: 14px; color: #7f8c8d; line-height: 1.6; }

/* 공지사항/자료실 */
.board-section { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.board-card { background: white; border-radius: 20px; padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); }

.board-card-number {
    display: inline-block; width: 35px; height: 35px; background: #e74c3c;
    color: white; border-radius: 50%; text-align: center; line-height: 35px;
    font-weight: bold; margin-bottom: 15px;
}

.board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.board-title { font-size: 24px; font-weight: 700; color: #2c3e50; }
.board-more { color: #7f8c8d; font-size: 14px; cursor: pointer; transition: color 0.3s ease; }
.board-more:hover { color: #667eea; }

.board-list { list-style: none; }
.board-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #ecf0f1;
    cursor: pointer; transition: all 0.2s ease;
}
.board-item:last-child { border-bottom: none; }
.board-item:hover { padding-left: 10px; color: #667eea; }
.board-item-title { font-size: 15px; color: #2c3e50; flex: 1; }
.board-item-date { font-size: 13px; color: #95a5a6; margin-left: 20px; }

/* 푸터 */
.footer { text-align: center; padding: 40px 0; }
.footer-logo { cursor: pointer; display: inline-block; transition: all 0.3s ease; position: relative; }
.footer-logo:hover { transform: scale(1.05); }
.footer-logo-number {
    position: absolute; top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px; background: #e74c3c;
    color: white; border-radius: 50%; text-align: center; line-height: 40px;
    font-weight: bold; z-index: 10;
}
.footer-logo img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-top: 30px;
}

/* 모달 */
.modal {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white; margin: 10% auto; padding: 0;
    width: 90%; max-width: 450px; border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: #FEE500; padding: 30px; text-align: center; position: relative;
}
.modal-header.admin { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.close {
    position: absolute; top: 15px; right: 20px; font-size: 28px;
    font-weight: bold; color: #191919; cursor: pointer; opacity: 0.7;
    transition: opacity 0.2s;
}
.modal-header.admin .close { color: white; }
.close:hover { opacity: 1; }

.modal-logo {
    width: 80px; height: 80px; background: #191919; border-radius: 50%;
    margin: 0 auto 15px; display: flex; align-items: center;
    justify-content: center; font-size: 40px;
}

.modal-header h2 { font-size: 24px; font-weight: 700; color: #191919; margin-bottom: 10px; }
.modal-header.admin h2 { color: white; }
.modal-header p { font-size: 14px; color: #191919; opacity: 0.8; }
.modal-header.admin p { color: white; }

.modal-body { padding: 40px 30px; }

.login-type-info {
    background: #f8f9fa; padding: 15px; border-radius: 10px;
    margin-bottom: 25px; text-align: center;
}
.login-type-info .icon { font-size: 32px; margin-bottom: 10px; }
.login-type-info .title { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 5px; }
.login-type-info .desc { font-size: 13px; color: #666; }

.admin-login-form input {
    width: 100%; height: 60px; border: 1px solid #ddd; padding: 0 20px;
    font-size: 16px; margin-bottom: 15px; border-radius: 10px;
}
.admin-login-form input:focus { outline: none; border-color: #667eea; }

.btn-submit {
    width: 100%; padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none; border-radius: 12px; font-size: 17px; font-weight: 700;
    color: white; cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }

.btn-kakao-login {
    width: 100%; padding: 18px; background: #FEE500; border: none;
    border-radius: 12px; font-size: 17px; font-weight: 700; color: #191919;
    cursor: pointer; transition: all 0.2s; display: flex; align-items: center;
    justify-content: center; gap: 10px;
}
.btn-kakao-login:hover {
    background: #FDD835; transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254,229,0,0.4);
}

.privacy-notice {
    margin-top: 20px; padding: 15px; background: #f8f9fa;
    border-radius: 8px; font-size: 12px; color: #666; line-height: 1.6;
}

/* 동의 알럿 */
.alert-popup {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 5000; background: rgba(0,0,0,0.7);
}

.alert-box {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 540px; max-width: 90%; border-radius: 20px; padding: 30px; background: #fff;
}

.alert-memo {
    font-size: 16px; line-height: 24px; margin: 20px 0 30px 0; text-align: center;
}

.btn-group { display: flex; gap: 10px; justify-content: center; }

.btn-alert {
    flex: 1; height: 60px; line-height: 60px; text-align: center;
    font-size: 18px; font-weight: 700; border: 1px solid #ddd;
    border-radius: 10px; background: #f5f5f5; cursor: pointer; transition: all 0.2s;
}
.btn-alert:hover { background: #667eea; color: white; border-color: #667eea; }

/* ========== 레이어 팝업 스타일 ========== */
.layer-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.layer-popup-content {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 420px;
    animation: slideInLeft 0.4s ease;
}

.layer-popup-image {
    display: block;
    width: 100%;
    height: auto;
}

.layer-popup-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
}

.layer-popup-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.layer-popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.layer-popup-checkbox label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.layer-popup-close {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.layer-popup-close:hover {
    background: #5568d3;
    transform: scale(1.05);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    from {
        left: -100%;
        opacity: 0;
    }
    to {
        left: 50px;
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .main-grid, .bottom-grid { grid-template-columns: 1fr; }
    .board-section { grid-template-columns: 1fr; }
    .logo img { max-width: 400px; }
    .footer-logo img { max-width: 350px; }
}

@media (max-width: 768px) {
    .logo img { max-width: 300px; }
    .footer-logo img { max-width: 250px; }

    .layer-popup-content {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }

    .layer-popup-image {
        width: 100%;
    }
}