/* 기본 스타일 */
main {line-height: 1.2;}
.header__logo {display: block !important;}
.header__title {display: none !important;}
.inner-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 상단 링크 스타일 */
.top-bar {
    background: #ffffff;
    padding: 10px;
    text-align: right;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 20;
}

.top-bar a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin-left: 24px;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #1d4ed8;
}

/* Hero 섹션 (기존 스타일 유지) */
.hero {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.95), rgba(66, 153, 225, 0.85));
    color: #ffffff;
    text-align: center;
    padding: 0;
    min-height: 500px; /* 이미지 높이에 맞춤 */
    overflow: hidden; /* 이미지가 넘칠 경우 숨김 */
}

.hero-inner {
    width: 100%;
    max-width: 5000px; /* 이미지 최대 너비 */
    margin: 0 auto; /* 가로 중앙 정렬 */
    position: relative;
    height: 500px; /* 이미지 높이 고정 */
    display: flex; /* 추가: 중앙 정렬을 위해 */
    justify-content: center; /* 추가: 중앙 정렬을 위해 */
}

.hero-inner img {
    width: 5000px; /* 원본 너비 유지 */
    height: 500px; /* 원본 높이 유지 */
    display: block; /* 블록 요소로 설정 */
    margin: 0 auto; /* 가로 중앙 정렬 */
    object-fit: none; /* 원본 크기 유지 */
}

/* 버튼 스타일 */
main .btn {
    display: inline-flex;
    height: auto;
    align-items: center;
    padding: 19.2px 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 17.6px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

main .btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* Features 섹션 */
.features {
    padding: 96px 0;
    background: #f0f0f0;
}

.features h2 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    color: #1e293b;
}

.features h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    margin: 19.2px auto 0;
    border-radius: 4px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature {
    background: #ffffff;
    padding: 35px 24px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature i {
    font-size: 64px;
    color: #3b82f6;
    margin-bottom: 24px;
}
.feature img {margin-bottom: 25px;}
.feature h3 {
    font-size: 22.4px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature p {
    font-size: 16px;
    color: #475569;
    line-height: 1.4;
}

/* Notices 섹션 */
.notices {
    padding: 80px 0;
    background: #ffffff;
}

.notices h2 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    color: #1e293b;
}

.notices h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    margin: 19.2px auto 0;
    border-radius: 4px;
}

.notice-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.notice-list li {
    padding: 19.2px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
}

.notice-list li:hover {
    background: #f9fafb;
    transform: translateX(5px);
}

.notice-list a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.notice-list a:hover {
    color: #3b82f6;
}

/* CTA 섹션 */
.cta {
    background: linear-gradient(135deg, #777, #ddd);
    color: #ffffff;
    text-align: center;
    padding: 96px 0;
}

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    margin: 19.2px auto 0;
    border-radius: 4px;
}

.cta p {
    font-size: 19.2px;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.4;
}

/* 모바일 뷰에서 버튼 위치 조정 */
@media (max-width: 768px) {
    .inner-container {
        padding: 0 16px;
    }

    .hero {
        min-height: auto; /* 높이 자동 조절 */
    }

    .hero-inner {
        height: auto; /* 높이 자동 조절 */
        max-width: 100%; /* 최대 너비 100% */
    }

    .hero-inner img {
        width: 100%; /* 너비 100% */
        height: auto; /* 높이 자동 조절 */
        object-fit: contain; /* 이미지 비율 유지하며 영역에 맞춤 */
    }

    main .btn {
        padding: 14.4px 32px;
        font-size: 16px;
    }

    .features {
        padding: 48px 0;
    }

    .features h2, .notices h2, .cta h2 {
        font-size: 28.8px;
        margin-bottom: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature {
        padding: 32px 16px;
    }

    .feature i {
        font-size: 48px;
    }

    .feature h3 {
        font-size: 19.2px;
    }

    .feature p {
        font-size: 15.2px;
    }

    .notices {
        padding: 48px 0;
    }

    .notice-list li {
        padding: 16px 0;
        font-size: 15.2px;
    }

    .cta {
        padding: 64px 0;
    }

    .cta p {
        font-size: 17.6px;
    }

    .cta .btn {
        margin-top: 20px;
    }

    /* 로그인 후 버튼 위치 조정 */
    .cta.logged-in .btn {
        margin-top: 0;
        margin-bottom: 20px;
    }

    /* 비로그인 상태에서는 기본 위치 유지 */
    .cta:not(.logged-in) .btn {
        margin-top: 20px;
        margin-bottom: 40px;
    }
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Login Form */
.login_form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 32px;
    z-index: 1000;
}

.login-header {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    font-size: 28.8px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.login-header .close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 24px;
    color: #475569;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.login-header .close-btn:hover {
    color: #1e293b;
}

.login-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    width: 100%;
}

.login_form input[type="text"],
.login_form input[type="password"] {
    width: 100%;
    padding: 14.4px 19.2px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login_form input[type="text"]:focus,
.login_form input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.login-btn {
    padding: 14.4px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Register Form */
.register_form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    min-width: 400px;
    max-width: 600px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 32px;
    z-index: 1000;
}

.register-header {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.register-header h2 {
    font-size: 28.8px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.register-header .close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 24px;
    color: #475569;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.register-header .close-btn:hover {
    color: #1e293b;
}

.register-content {
    width: 100%;
    height: 400px;
}

.register-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background-color: #f9fafb;
}

/* Notice Popup */
.notice-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.notice-header {
    position: relative;
    background: #f8f8f8;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-header h3 {
    font-size: 28.8px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.notice-header .close-btn {
    position: absolute;
    top: 12px;
    right: 5px;
    font-size: 22px;
    color: #475569;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.notice-header .close-btn:hover {
    color: #1e293b;
}

.notice-content {
    padding: 20px;
    max-height: 400px;
    line-height: 1.4;
    overflow-y: auto;
}

/* Updated close button styles for better visibility */
.close-btn {
    font-size: 24px; /* Larger size for visibility */
    color: #333; /* Darker color for contrast */
    font-weight: bold; /* Bold to make it stand out */
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #ff0000; /* Red on hover for emphasis */
}

/* Ensure the notice header's text is clear */
.notice-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}