/* ==========================================================================
   Home Quick Menu Override
   - nextaikorea 홈에서는 전용 원형 퀵을 숨기고 공용 partial quick만 사용
   ========================================================================== */
body[data-site="nextaikorea"] .nxa-homeQuick {
    display: none;
}

/* ==========================================================================
   Home Hero
   ========================================================================== */
.nxa-mainBg {
    position: relative;
    height: calc(100vh - var(--header-h));
    min-height: 700px;
    overflow: hidden;
    background: #000;
}

.nxa-mainBg__video,
.nxa-mainBg__video iframe,
.nxa-mainBg__overlay {
    position: absolute;
    inset: 0;
}

.nxa-mainBg__video iframe {
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: calc((100vh - var(--header-h)) * 16 / 9);
    min-height: calc(100vh - var(--header-h));
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.nxa-mainBg__overlay {
    background: rgba(0, 0, 0, 0.35);
}

.nxa-mainBg__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nxa-mainBg__title {
    width: min(54vw, 1040px);
    display: block;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
}

.nxa-mainBg__date {
    margin-top: 24px;
    padding: 14px 32px 13px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: clamp(22px, 1.8vw, 28px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* ==========================================================================
   Legacy Home Quick Actions
   - 기존 원형 이미지 퀵. 현재는 공용 quick-menu 사용을 위해 숨김 처리
   ========================================================================== */
.nxa-homeQuick {
    position: fixed;
    top: 248px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.nxa-homeQuick a,
.nxa-homeQuick img {
    display: block;
}

.nxa-homeQuick img {
    width: 163px;
    height: auto;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.nxa-mainContent1 {
    position: relative;
    background: #000;
    padding: 86px 0 94px;
    overflow: hidden;
}

.nxa-mainContent1__visualRoll {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 880px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nxa-mainContent1__visualRoll::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, #000 0%, #000 4%, rgba(0, 0, 0, 0.84) 14%, rgba(0, 0, 0, 0.26) 34%, rgba(0, 0, 0, 0) 54%);
}

.nxa-mainContent1__visualFrame {
    position: absolute;
    inset: 0;
    background: var(--nxa-main-roll-bg) no-repeat center bottom / cover;
    opacity: 0;
    animation: nxaMainVisualRoll 12s ease-in-out infinite;
    animation-delay: var(--nxa-main-roll-delay, 0s);
}

.nxa-mainContent1__visualFrame:first-child {
    opacity: 1;
}

.nxa-mainContent1__inner {
    display: block;
    position: relative;
    z-index: 1;
}

.nxa-mainContent1__copy {
    position: relative;
    z-index: 1;
    color: #fff;
    width: 100%;
    max-width: 58%;
}

.nxa-mainContent1__kicker,
.nxa-mainContent2__kicker {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.nxa-mainContent1__title {
    margin-top: 30px;
    color: #fff;
    font-size: clamp(34px, 3.1vw, 46px);
    font-weight: 100;
    line-height: 1.22;
    letter-spacing: -0.045em;
    white-space: nowrap;
    width: 100%;
}

.nxa-mainContent1__title b {
    display: block;
    margin-top: 8px;
    font-size: clamp(42px, 3.75vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.06em;
    white-space: normal;
    width: 100%;
}

.nxa-mainContent1__body {
    margin-top: 34px;
    width: 100%;
    max-width: none;
    color: #8d91a0;
    font-size: 14px;
    line-height: 1.9;
}

.nxa-mainLinks {
    display: flex;
    align-items: center;
    margin: 74px 0 0;
    padding: 0;
    list-style: none;
}

.nxa-mainLinks li {
    flex: 1 1 0;
    padding: 0 34px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nxa-mainLinks li:first-child {
    padding-left: 0;
}

.nxa-mainLinks li:last-child {
    border-right: 0;
}

.nxa-mainLinks a {
    position: relative;
    display: inline-block;
    padding-top: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.nxa-mainLinks .img {
    width: 150px;
    height: 100px;
    margin: 0 auto 18px;
}

.nxa-mainLinks .img img {
    max-width: 100%;
    max-height: 100%;
}

.nxa-mainLinks__star {
    position: absolute;
    right: -15px;
    top: 20px;
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Notice & Event Section
   ========================================================================== */
.nxa-mainContent2 {
    padding: 88px 0 92px;
    background: #fff;
}

.nxa-mainContent2__kicker {
    color: #111;
}

.nxa-mainContent2__title {
    margin: 12px 0 40px;
    color: #252934;
    font-size: clamp(38px, 3.4vw, 58px);
    font-weight: 200;
    line-height: 1.16;
    letter-spacing: -0.05em;
}

.nx-ne {
    background: #fff;
}

.nx-ne-grid {
    --nx-news-height: 462px;
    display: grid;
    grid-template-columns: 456px 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.nx-notice {
    grid-column: 2 / 4;
}

.nx-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.nx-title {
    margin: 0;
    color: #111;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nx-more {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
}

.nx-more::before {
    content: "+";
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(1px);
}

.nx-press-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: var(--nx-news-height);
}

.nx-press-item {
    margin: 0;
    flex: 0 0 auto;
    height: calc((var(--nx-news-height) - 36px) / 4);
}

.nx-press-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    height: 100%;
    padding: 14px 18px 12px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.nx-press-title {
    overflow: hidden;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nx-press-excerpt {
    min-height: 0;
    overflow: hidden;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nx-press-date {
    margin-top: 2px;
    color: #999;
    font-size: 13px;
    text-align: right;
    line-height: 1;
}

.nx-notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    height: var(--nx-news-height);
}

.nx-notice-card {
    display: block;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f5f5f5;
}

.nx-notice-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-footer {
    margin-top: 0;
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.sec-marquee {
    padding: 80px 0;
    background: #fff;
}

.marquee {
    --marquee-speed: 28s;
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marqueeMove var(--marquee-speed) linear infinite;
}

.marquee__group {
    display: inline-flex;
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
    padding-right: clamp(40px, 6vw, 90px);
}

.marquee__item {
    font-size: clamp(52px, 8vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

/* ==========================================================================
   Sponsor Logo Groups
   ========================================================================== */
.dscs-sponsors {
    padding: 0 0 90px;
    background: #fff;
}

.dscs-sponsors__title {
    margin: 0 0 16px;
    color: #111;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dscs-sponsors__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
    margin: 0 0 56px;
    align-items: stretch;
}

.dscs-sponsors__grid:last-child {
    margin-bottom: 0;
}

.dscs-sponsors__logo {
    height: 86px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dscs-sponsors__logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
}

.dscs-sponsors__logo img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dscs-sponsors__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px 14px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Hover Feedback
   ========================================================================== */
@media (hover: hover) {
    .nx-press-link:hover {
        border-color: #cfcfcf;
    }

    .nx-notice-card:hover img {
        transform: scale(1.03);
        transition: transform 0.25s ease;
    }
}

/* ==========================================================================
   Tablet Layout
   ========================================================================== */
@media (max-width: 1200px) {
    .nxa-homeQuick {
        display: none;
    }

    .nxa-mainBg__title {
        width: min(70vw, 760px);
    }

    .nxa-mainContent1__visualRoll {
        width: 745px;
        right: -50px;
    }

    .nxa-mainContent1__copy {
        max-width: 100%;
    }
}

/* ==========================================================================
   Mobile Layout
   ========================================================================== */
@media (max-width: 1024px) {
    .nxa-mainBg {
        min-height: 540px;
        height: calc(72vh - var(--header-h));
    }

    .nxa-mainBg__title {
        width: min(78vw, 620px);
    }

    .nxa-mainBg__date {
        font-size: 22px;
    }

    .nxa-mainContent1 {
        padding: 70px 0;
    }

    .nxa-mainContent1__visualRoll {
        inset: 0;
        width: 100%;
    }

    .nxa-mainContent1__visualRoll::before {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.54) 24%, rgba(0, 0, 0, 0.88) 58%, #000 100%);
    }

    .nxa-mainContent1__title {
        font-size: 36px;
        white-space: normal;
    }

    .nxa-mainContent1__title b {
        font-size: 50px;
    }

    .nx-ne-grid {
        grid-template-columns: 1fr;
    }

    .nx-notice {
        grid-column: auto;
    }
}

/* ==========================================================================
   Home Visual Rolling Animation
   ========================================================================== */
@keyframes nxaMainVisualRoll {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    38% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* ==========================================================================
   Small Mobile Layout
   ========================================================================== */
@media (max-width: 640px) {
    .nxa-mainBg {
        min-height: 420px;
    }

    .nxa-mainBg__title {
        width: min(86vw, 480px);
    }

    .nxa-mainBg__date {
        margin-top: 18px;
        padding: 12px 18px;
        font-size: 16px;
        line-height: 1.3;
        text-align: center;
    }

    .nxa-mainContent1 {
        padding: 34px 0 42px;
    }

    .nxa-mainContent1__title {
        font-size: 22px;
    }

    .nxa-mainContent1__title b {
        font-size: 34px;
    }

    .nxa-mainContent1__body {
        font-size: 14px;
    }

    .nxa-mainLinks {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 34px;
    }

    .nxa-mainLinks li {
        padding: 0;
        border-right: 0;
    }

    .nxa-mainLinks a {
        font-size: 20px;
        padding-top: 12px;
    }

    .nxa-mainLinks .img {
        width: 100px;
        height: 72px;
        margin-bottom: 8px;
    }

    .nxa-mainLinks__star {
        top: 12px;
        right: -10px;
    }

    .nxa-mainContent2 {
        padding: 34px 0 42px;
    }

    .nxa-mainContent2__title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .nx-notice-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .nx-notice-card {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .sec-marquee {
        padding: 54px 0;
    }

    .marquee__item {
        font-size: 42px;
    }

    .dscs-sponsors {
        padding-bottom: 56px;
    }

    .dscs-sponsors__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 40px;
    }

    .dscs-sponsors__logo {
        height: auto;
        aspect-ratio: 3 / 1;
    }
}

/* ==========================================================================
   Marquee Animation
   ========================================================================== */
@keyframes marqueeMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
