/* ========================================
   Section 8: Semicircle Carousel (Timeline)
   ======================================== */

/* PC에서 모바일 타임라인 숨김 */
.mobile-timeline {
    display: none;
}

.circular-carousel-section {
    width: 100%;
    max-width: 1440px;
    height: clamp(660px, 66.67vw, 960px);
    margin: 0 auto;
    background: white;
    position: relative;
    overflow: hidden;
}

.circular-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 배경 원 제거 */
.background-circle {
    display: none;
}

/* 장식 사각형 제거 */
.deco-square {
    display: none;
}

/* Carousel circle container */
.carousel-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
}

/* Circle cards */
.circle-card {
    width: clamp(174px, 17.5vw, 252px);
    height: clamp(174px, 17.5vw, 252px);
    position: absolute;
    background: #F5F5F5;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: clamp(14px, 1.39vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.circle-card img,
.circle-card svg {
    width: 120%;
    height: 120%;
    object-fit: cover;
    border-radius: clamp(14px, 1.39vw, 20px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blue card - 파란색 배경 */
.circle-card.blue-card {
    background: #1A75FF;
}

.boopd-logo {
    width: clamp(52px, 5.21vw, 75px);
    height: clamp(68px, 6.88vw, 99px);
}

/* Center text content container */
.carousel-text-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: clamp(345px, 34.72vw, 500px);
    width: clamp(370px, 37.01vw, 533px);
    z-index: 15;
}

/* Individual text items */
.carousel-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 1.67vw, 24px);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-text[style*="display: block"] {
    display: flex !important;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-title {
    text-align: center;
    color: black;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1.33;
    margin: 0;
}

.carousel-description {
    text-align: center;
    color: rgba(46, 47, 51, 0.88);
    font-size: clamp(16px, 1.53vw, 22px);
    font-weight: 500;
    line-height: 1.36;
    margin: 0;
}

/* Navigation buttons */
.carousel-nav-btn {
    width: clamp(36px, 3.33vw, 48px);
    height: clamp(36px, 3.33vw, 48px);
    padding: clamp(7px, 0.69vw, 10px);
    position: absolute;
    top: clamp(375px, 37.71vw, 543px);
    background: #171719;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.3s;
}

.carousel-nav-btn:hover {
    background: #2a2a2c;
}

.carousel-prev {
    left: calc(50% - clamp(185px, 18.5vw, 267px) - clamp(36px, 3.33vw, 48px));
}

.carousel-next {
    left: calc(50% + clamp(185px, 18.5vw, 267px));
}

/* CTA button - variant Primary size Large */
.carousel-cta-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: clamp(537px, 54.1vw, 779px);
    width: clamp(108px, 10.83vw, 156px);
    height: clamp(36px, 3.33vw, 48px);
    padding: 0;
    background: var(--Primary-Normal, #005BE0);
    border: none;
    border-radius: clamp(8px, 0.69vw, 10px);
    color: white;
    font-size: clamp(14px, 1.11vw, 16px);
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-cta-btn:hover {
    background: var(--Primary-Hover, #0047b3);
}

/* ========================================
   Section 11: Footer Spacer
   ======================================== */
.footer-spacer-section {
    width: 100%;
    max-width: 1440px;
    height: 150px;
    margin: 0 auto;
    background: white;
}

/* ========================================
   Timeline Mobile Styles
   ======================================== */
@media (max-width: 767px) {
    /* vw 반응형 (375px 기준) */
    .circular-carousel-section {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 5.33vw 17.07vw 5.33vw !important;
        background: white !important;
        overflow: hidden !important;
    }

    .circular-carousel-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }

    /* PC용 요소들 숨김 */
    .background-circle,
    .deco-square,
    .carousel-circle,
    .carousel-text-container,
    .carousel-nav-btn,
    .carousel-cta-btn {
        display: none !important;
    }

    .mobile-timeline {
        display: flex !important;
        flex-direction: column !important;
        gap: 17.07vw !important;
        width: 89.33vw !important;
        margin: 0 auto !important;
        padding-top: 0 !important;
    }

    .timeline-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 3.73vw !important;
        text-align: center !important;
    }

    .timeline-subtitle {
        font-size: 5.87vw !important;
        font-weight: 700 !important;
        line-height: 1.36 !important;
        color: #000000 !important;
    }

    .timeline-title {
        font-size: 7.47vw !important;
        font-weight: 700 !important;
        line-height: 1.36 !important;
        color: #000000 !important;
        margin: 0 !important;
    }

    .timeline-description {
        font-size: 3.47vw !important;
        font-weight: 500 !important;
        line-height: 1.38 !important;
        color: rgba(55, 56, 60, 0.61) !important;
        margin: 0 !important;
    }

    .timeline-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 4.27vw !important;
        width: 100% !important;
    }

    .timeline-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 5.33vw !important;
        width: 100% !important;
    }

    .timeline-date {
        width: 22.67vw !important;
        min-width: 22.67vw !important;
        font-size: 3.73vw !important;
        font-weight: 700 !important;
        line-height: 1.43 !important;
        color: #000000 !important;
    }

    .timeline-content {
        flex: 1 !important;
        font-size: 3.47vw !important;
        font-weight: 500 !important;
        line-height: 1.38 !important;
        color: rgba(46, 47, 51, 0.88) !important;
    }

    .timeline-divider {
        width: 100% !important;
        height: 1px !important;
        background: rgba(112, 115, 124, 0.22) !important;
    }

    /* 푸터 숨김 */
    .footer-section,
    .footer-spacer-section {
        display: none !important;
    }
}
