/* 메인 컨테이너 */
.main-container {
    width: 100%;
}

/* 메인 콘텐츠 */
.main-container__main {
    position: relative;
}

.main-content {
    position: absolute;
    bottom: 90px;
    color: #fff;
    max-width: 1200px;
    text-align: center;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(32% - 5%), rgba(0, 0, 0, .85) 33%, rgba(0, 0, 0, 1) 100%);
    z-index: 1;
}

.main-content__sub {
    font-size: var(--fs-xlarge);
    text-align: center;
}

.event {
    display: flex;
    gap: 20px;
    color: #fff;
    margin-top: 10px;
    justify-content: center;
}

.event span {
    position: relative;
    padding-left: 20px;
}

.event span:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.5);
}

.main-content__actions {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.main-content__actions a {
    display: inline-block;
    min-width: 200px;
    padding: 5px 30px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    border-radius: var(--radius-xlg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-content__actions a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.main-content__actions a:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 섹션 스타일 */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container__main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section:last-child {
    position: relative;
}

/* 스크롤 화살표 */
.scroll-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-right: 3px solid #a5a5a5;
    border-bottom: 3px solid #a5a5a5;
    transform: translate(-50%, -60%) rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 상단 이동 버튼 */
.scroll-to-top {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: var(--radius-circle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xlarge);
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-to-top:hover {
    background-color: #555;
    transform: scale(1.1);
}

.countdown-container {
    position: absolute;
    bottom: 40px;
    z-index: 2;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dday-label {
    font-size: var(--fs-xlarge);
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
}

.time-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-number {
    font-size: var(--fs-xlarge);
    font-weight: 600;
    color: #fff;
    min-width: 45px;
    text-align: center;
}

.time-label {
    color: #fff;
    opacity: 0.9;
}

.separator {
    font-size: var(--fs-xxlarge);
    color: #fff;
    opacity: 0.7;
    margin: 0 5px;
}

/* 애니메이션 효과 */
.time-number {
    transition: all 0.3s ease;
}

.time-number.changed {
    transform: scale(1.1);
    color: #fcfcfc;
}

/* 모바일 반응형 */
@media (max-width: 1280px) {
    .main-content {
        bottom: 80px;
        padding: 0 15px;
    }

    .main-content__sub {
        font-size: var(--fs-medium);
    }

    .event {
        gap: 5px;
    }

    .event span {
        font-size: var(--fs-small);
        text-align: center;
        padding-left: 5px;
    }

    .event span::before {
        display: block;
        margin-bottom: 3px;
    }

    .main-content__actions {
        gap: 15px;
        align-items: center;
    }

    .main-content__actions a {
        min-width: 170px;
    }

    .dday-label {
        font-size: var(--fs-large);
    }

    .time-number {
        font-size: var(--fs-large);
        min-width: 35px;
    }

    .time-label {
        font-size: var(--fs-xsmall);
    }

    .separator {
        font-size: var(--fs-large);
    }
}

@media (max-width: 768px) {
    /* 메인 */
    .main-container__main img {
        top: -90px;
    }

    .hero-overlay {
        background: radial-gradient(circle at 50% 37%, rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0) calc(48% - 5%), rgba(0, 0, 0, .85) 33%, rgba(0, 0, 0, 1) 100%);
    }

    .main-content__title {
        font-size: var(--fs-xlarge);
    }

    .main-content__sub {
        font-size: var(--fs-medium);
    }

    .event-info {
        padding: 15px 10px;
    }

    .main-content__actions a {
        min-width: 150px;
        padding: 5px 10px;
    }

    .countdown-timer {
        gap: 0;
    }

    .dday-label {
        font-size: var(--fs-medium);
    }

    .time-number {
        font-size: var(--fs-medium);
        min-width: 30px;
    }

    .time-label {
        font-size: var(--fs-xsmall);
    }

    .separator {
        font-size: var(--fs-medium);
        margin: 0 3px;
    }
}

/* ai pick */
/* ==================================================
   AI-PICK (DESKTOP + MOBILE COMPLETE)
================================================== */

/* ---------- SECTION ---------- */
.aipick-new {
    background: #fafafa;
    padding: 120px 0;
}

.aipick-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ---------- HEADER ---------- */
.aipick-header {
    text-align: center;
    margin-bottom: 56px;
}

.aipick-eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #8a8a8a;
}

.aipick-title {
    font-size: 44px;
    margin: 8px 0 6px;
    line-height: 1.15;
}

.aipick-desc {
    font-size: 15px;
    color: #666;
}

/* ---------- FEATURED (상단 대표 카드) ---------- */
.aipick-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    margin-bottom: 50px;
    box-sizing: border-box;
}

.featured-media {
    height: 320px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-media img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

.featured-category {
    font-size: 14px;
    color: #888;
}

.featured-title {
    font-size: 32px;
}

.featured-company {
    color: #666;
    margin-bottom: 15px;
}

.featured-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 22px;
}

/* 줄 수 고정 + 말줄임 */
.clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-btn {
    border: none;
    background: #111;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease;
}

.featured-btn:hover {
    background: #333;
}

/* ---------- TRACK (카드 리스트) ---------- */
.aipick-track {
    position: relative;
    padding: 0 60px; /* 버튼 공간 */
    box-sizing: border-box;
}

.track-scroll {
    overflow: hidden;
}

.track-items {
    display: flex;
    gap: 16px;
    transition: transform .3s ease;
}

.track-item {
    width: 200px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: box-shadow .2s ease, transform .2s ease;
}

.track-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.track-thumb {
    height: 120px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-thumb img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.track-info {
    padding: 14px;
}

.track-info strong {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info span {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- NAV BUTTON ---------- */
.track-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
}

.track-nav.prev {
    left: 0;
}

.track-nav.next {
    right: 0;
}

/* ==================================================
   MOBILE / TABLET 대응
================================================== */

@media (max-width: 1024px) {

    .aipick-new {
        padding: 56px 0;
    }

    .aipick-container {
        max-width: 100%;
        padding: 0 16px;
    }

    .aipick-header {
        margin-bottom: 20px;
    }

    .aipick-title {
        font-size: 28px;
    }

    .aipick-desc {
        font-size: 14px;
    }

    /* FEATURED → 세로 스택 */
    .aipick-featured {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 18px !important;
        border-radius: 18px;
        margin-bottom: 26px;
    }

    .featured-media {
        height: 220px;
        border-radius: 14px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-company {
        font-size: 14px;
    }

    /* 모바일에서 설명 줄 수 증가 */
    .clamp-3 {
        -webkit-line-clamp: 4;
    }

    .featured-btn {
        width: 100%;
        padding: 12px 16px;
    }

    /* TRACK → 가로 스와이프 */
    .aipick-track {
        padding: 0;
    }

    .track-nav {
        display: none !important;
    }

    /* 🔥 핵심: JS transform 무력화 */
    #itemsWrapper,
    .track-items {
        transform: none !important;
        transition: none !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 4px 2px 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    #itemsWrapper::-webkit-scrollbar {
        display: none;
    }

    .track-item {
        width: 150px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        border-radius: 16px;
    }

    .track-thumb {
        height: 96px;
    }

    .track-info {
        padding: 12px;
    }

    .track-info strong {
        font-size: 13px;
    }

    .track-info span {
        font-size: 12px;
    }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {

    .aipick-title {
        font-size: 26px;
    }

    .featured-media {
        height: 200px;
    }

    .track-item {
        width: 138px;
    }
}


/* baxpo cup */
.main-container__baxpocup {
    position: relative;
}

.baxpocup__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.baxpocup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.75) 20%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.baxpocup__container {
    position: absolute;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 120px);
    z-index: 2;
}

.baxpocup__content {
    color: #fff;
}

.baxpocup__title {
    color: #fff;
}

.baxpocup__subtitle {
    font-size: var(--fs-medium);
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.baxpocup__info {
    margin-bottom: 30px;
}

.baxpocup__info-item {
    margin-bottom: 15px;
}

.baxpocup__info-title {
    font-size: var(--fs-medium);
    color: #fff;
}

.baxpocup__info-text {
    color: rgba(255, 255, 255, 0.7);
}

.baxpocup__list-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding-left: 20px;
}

.media-section__video {
    border-radius: var(--radius-lg);
    overflow: hidden;
}


@media (max-width: 1280px) {
    .baxpocup__container {
        padding: 20px;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .baxpocup__container {
        grid-template-columns: 1fr;
    }

    .baxpocup__overlay {
        background-color: rgba(0, 0, 0, 0.6)
    }

    .baxpocup__title {
        font-size: var(--fs-xxlarge);
    }

    .baxpocup__subtitle {
        margin-bottom: 10px;
    }

    .baxpocup__info {
        margin-bottom: 5px;
    }

    .baxpocup__info-title {
        font-size: var(--fs-medium);
    }

    .baxpocup__list {
        font-size: var(--fs-small);
    }

    .media-section {
        display: none;
        /*max-width: min(560px, 80vw);
        margin-inline: auto;*/
    }
}

/* map */
.map {
    width: 1280px;
    margin: 20px 0;
}

.map-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-header p {
    color: #7f8c8d;
}

.map-section {
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-container {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transport-section {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.transport-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title {
    font-size: var(--fs-large);
    font-weight: 600;
    color: #2d3748;
}

.info-link {
    font-size: var(--fs-xsmall);
    color: #6b7280;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.info-link:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.content-list {
    list-style: none;
}

.content-item {
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}

.content-item:last-child {
    margin-bottom: 0;
}

.bus-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 5px;
    position: relative;
    padding-left: 20px;
}

.bus-item:last-child {
    margin-bottom: 0;
}

.bus-location {
    font-weight: 500;
    color: #2d3748;
    min-width: 160px;
    flex-shrink: 0;
}

.parking-item {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 5px;
    padding: 5px;
    position: relative;
    padding-left: 20px;
}

.parking-item:last-child {
    margin-bottom: 0;
}

.parking-type {
    font-weight: 500;
    color: #2d3748;
    min-width: 120px;
    flex-shrink: 0;
}

.parking-price {
    color: #4a5568;
    font-weight: 500;
}

.route-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.route-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: var(--fs-xsmall);
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

@media (max-width: 1280px) {
    .map {
        padding: 20px;
    }
}

@media (max-width: 768px) {

    .map-header h1 {
        font-size: 28px;
    }

    .map-container {
        height: 300px;
    }

    .bus-item {
        flex-direction: column;
        gap: 10px;
    }

    .bus-location {
        min-width: auto;
    }

    .parking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .parking-type {
        min-width: auto;
    }

}