html, body {
    overflow-x: hidden;
}

/* Dark Header with 2-Depth Menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #F5F5F5;
    margin-left: 12px;
}

header nav {
    display: flex;
    gap: 45px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    padding: 10px 0;
    display: block;
}

.nav-item > a:hover,
.nav-item > a.active {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(229, 57, 53, 0.6);
}

/* 2-Depth Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-dropdown a i {
    font-size: 12px;
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    opacity: 0.7;
}

.nav-dropdown a:hover {
    background: rgba(229, 57, 53, 0.1);
    color: #fff;
}

.nav-dropdown a:hover i {
    opacity: 1;
}

.nav-dropdown a.active {
    background: rgba(229, 57, 53, 0.15);
    color: var(--primary-color);
}

.header-cta {
    display: flex;
    align-items: center;
}

.header-cta .btn-primary {
    padding: 12px 28px;
    background: var(--primary-color);
    color: #F5F5F5;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cta .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(229, 57, 53, 0.4);
}

@media (max-width: 1024px) {
    .header-cta {
        display: none;
    }
    .nav-dropdown {
        display: none;
    }
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #F5F5F5;
    transition: all 0.3s ease;
    display: block;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    header nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #0a0a0f;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    header nav.active {
        opacity: 1;
        visibility: visible;
    }

    header nav .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    header nav .nav-item > a {
        display: block;
        padding: 20px;
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.8);
    }

    header nav .nav-item > a:hover {
        color: var(--primary-color);
        background: rgba(229, 57, 53, 0.1);
    }

    header nav .nav-dropdown {
        display: none !important;
    }
}

/* Page Hero */
.page-hero {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0a0a0f 0%, #14141a 100%);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(229, 57, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 179, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-hero h1 span {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb span:last-child {
    color: var(--primary-color);
}

/* Sub Navigation */
.sub-nav {
    background: #1a1a22;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sub-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
}

.sub-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.sub-nav a i {
    font-size: 0.9rem;
}

.sub-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
}

.sub-nav a.active {
    color: #fff;
    background: rgba(229, 57, 53, 0.1);
    border-bottom-color: var(--primary-color);
}

/* Main Content */
.content-section {
    padding: 60px 0 100px;
    background: #f8f8f8;
    min-height: calc(100vh - 280px - 60px);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a22;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1rem;
    color: #666;
}

/* Warning Notice */
.warning-notice {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08) 0%, rgba(255, 179, 0, 0.05) 100%);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.warning-notice .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.warning-notice .icon i {
    color: #fff;
    font-size: 1.3rem;
}

.warning-notice .content h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.warning-notice .content p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.7;
}

/* Notice Table */
.notice-table {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.notice-header {
    display: grid;
    /*grid-template-columns: 100px 1fr 120px;*/
    grid-template-columns: 1fr 120px;
    padding: 18px 25px;
    background: #1a1a22;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.notice-row {
    display: grid;
    /*grid-template-columns: 100px 1fr 120px;*/
    grid-template-columns: 1fr 120px;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notice-row:hover {
    background: rgba(229, 57, 53, 0.03);
}

.notice-row:last-child {
    border-bottom: none;
}

.notice-row .category {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.notice-row .title {
    font-size: 0.95rem;
    color: #333;
    transition: color 0.3s;
}

.notice-row:hover .title {
    color: var(--primary-color);
}

.notice-row .date {
    font-size: 0.9rem;
    color: #999;
    text-align: center;
}

.notice-row.important {
    background: rgba(229, 57, 53, 0.04);
}

.notice-row.important .title {
    font-weight: 600;
}

.notice-row.important .title::before {
    content: '[중요] ';
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination a.arrow {
    background: transparent;
}

/* Footer */
footer {
    background: #0a0a0f;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    opacity: 0.8;
}

.footer-info p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-info strong {
    color: rgba(255,255,255,0.8);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.copyright {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.registration-info {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .page-hero {
        height: 220px;
    }

    .sub-nav-inner {
        overflow-x: auto;
    }

    .sub-nav a {
        padding: 15px 20px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .notice-header,
    .notice-row {
        /*grid-template-columns: 60px 1fr;*/
        grid-template-columns: 100%;
        padding: 15px 18px;
    }

    .notice-header > div:last-child,
    .notice-row .date {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}