/* ========================================
   Section3: AI 시대, 부동산빅뱅 섹션
   ======================================== */
.ai-era-section {
    width: 100%;
    max-width: 1440px;
    height: clamp(750px, 75.07vw, 1081px);
    margin: 0 auto;
    padding: 0;
    background: white;
    position: relative;
}

.ai-era-container {
    position: absolute;
    left: clamp(101px, 13.19vw, 190px);
    top: clamp(90px, 9.44vw, 136px);
    width: clamp(566px, 73.61vw, 1060px);
    height: clamp(560px, 56.11vw, 808px);
}

.ai-era-text {
    position: absolute;
    left: 25.94%;
    top: 0;
    width: clamp(350px, 35.42vw, 510px);
    text-align: center;
}

.ai-era-subtitle {
    font-size: clamp(16px, 1.39vw, 20px);
    font-weight: 500;
    line-height: 1.4;
    color: #171719;
    margin: 0 0 clamp(10px, 1.11vw, 16px) 0;
}

.ai-era-title {
    font-size: clamp(32px, 3.33vw, 48px);
    font-weight: 700;
    line-height: 1.33;
    color: #171719;
    margin: 0;
}

.ai-era-image {
    position: absolute;
    left: 0;
    top: clamp(190px, 19.44vw, 280px);
    width: 100%;
    height: clamp(360px, 36.67vw, 528px);
    border-radius: clamp(16px, 1.67vw, 24px);
    overflow: hidden;
}

.ai-era-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: fill;
    display: block;
    max-width: none;
    max-height: none;
}

/* 오버레이 컨테이너 - flexbox로 동적 배치 */
.ai-era-overlay {
    position: absolute;
    top: clamp(14px, 1.39vw, 20px);
    left: 3.58%;
    right: 3.58%;
    height: clamp(22px, 2.08vw, 30px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 라벨 공통 스타일 */
.overlay-label {
    font-size: clamp(12px, 1.39vw, 20px);
    font-weight: 500;
    line-height: 1.5;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    height: clamp(22px, 2.08vw, 30px);
    display: flex;
    align-items: center;
}

/* 왼쪽 라벨 - REAL ESTATE */
.overlay-left {
    flex-shrink: 0;
}

/* 가운데 라벨 (AI + 화살표 그룹) */
.overlay-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(22px, 2.08vw, 30px);
    margin: 0 clamp(8px, 1.5vw, 20px);
    position: relative;
}

/* 오른쪽 라벨 - INNOVATION */
.overlay-right {
    flex-shrink: 0;
}

/* AI 텍스트 */
.label-text {
    position: relative;
    z-index: 1;
    font-size: clamp(14px, 1.53vw, 22px);
    font-weight: 500;
    line-height: 1.36;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(6px, 1vw, 14px);
    background: transparent;
}

/* 화살표 선 */
.arrow-line {
    position: absolute;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 1);
    box-shadow: none;
    transform: translateY(-50%);
}

/* 왼쪽 화살표 선 위치 */
.arrow-left {
    left: 0;
    width: calc(50% - clamp(16px, 2vw, 30px));
}

/* 오른쪽 화살표 선 위치 */
.arrow-right {
    right: 0;
    width: calc(50% - clamp(16px, 2vw, 30px));
}

/* 왼쪽 화살표 머리 (< 모양) */
.arrow-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-left: 2px solid rgba(255, 255, 255, 1);
    border-bottom: 2px solid rgba(255, 255, 255, 1);
    transform: translateY(-50%) rotate(45deg);
}

/* 오른쪽 화살표 머리 (> 모양) */
.arrow-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 1);
    border-top: 2px solid rgba(255, 255, 255, 1);
    transform: translateY(-50%) rotate(45deg);
}

/* ========================================
   AI Era Mobile Styles
   ======================================== */
@media (max-width: 767px) {
    /* vw 반응형 (375px 기준) */
    .ai-era-section {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 5.33vw 25.6vw 5.33vw !important;
        background: white !important;
        position: relative !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .ai-era-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 89.33vw !important;
        height: auto !important;
        padding: 0 !important;
        gap: 9.6vw !important;
    }

    .ai-era-text {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 70.67vw !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 3.73vw !important;
    }

    .ai-era-subtitle {
        font-size: 5.87vw !important;
        font-weight: 700 !important;
        line-height: 1.36 !important;
        color: #000000 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .ai-era-title {
        font-size: 7.47vw !important;
        font-weight: 700 !important;
        line-height: 1.36 !important;
        color: #000000 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .ai-era-image {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 89.33vw !important;
        height: 113.07vw !important;
        margin: 0 !important;
        border-radius: 3.73vw !important;
        overflow: hidden !important;
    }

    .ai-era-image img {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        border-radius: 3.73vw !important;
        z-index: 0 !important;
    }

    .ai-era-overlay {
        display: flex !important;
        position: absolute !important;
        top: 4.8vw !important;
        left: 4.8vw !important;
        right: 4.8vw !important;
        transform: none !important;
        width: auto !important;
        height: 4.27vw !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0 !important;
        background: transparent !important;
        z-index: 2 !important;
    }

    .overlay-label.overlay-left {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        font-size: 2.93vw !important;
        font-weight: 500 !important;
        line-height: 4.27vw !important;
        height: 4.27vw !important;
        color: white !important;
        text-shadow: none !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .overlay-center,
    .overlay-label.overlay-center {
        position: static !important;
        left: auto !important;
        top: auto !important;
        flex: 1 !important;
        height: 4.27vw !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        margin: 0 1.6vw !important;
    }

    .arrow-line {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        height: 4.27vw !important;
        background: transparent !important;
    }

    .arrow-line.arrow-left {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: 4.27vw !important;
        background: none !important;
    }

    .arrow-line.arrow-left::before {
        content: '' !important;
        display: block !important;
        width: 1.6vw !important;
        height: 1.6vw !important;
        border-top: 1px solid white !important;
        border-left: 1px solid white !important;
        border-right: none !important;
        border-bottom: none !important;
        transform: rotate(-45deg) !important;
        flex-shrink: 0 !important;
        margin-top: 1.2vw !important;
    }

    .arrow-line.arrow-left::after {
        content: '' !important;
        display: block !important;
        flex: 1 !important;
        height: 1px !important;
        background: white !important;
        margin-left: -0.2vw !important;
        margin-top: 4.05vw !important;
    }

    .label-text {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 2.93vw !important;
        font-weight: 500 !important;
        line-height: 4.27vw !important;
        height: 4.27vw !important;
        color: white !important;
        text-shadow: none !important;
        padding: 0 1.6vw !important;
        flex-shrink: 0 !important;
    }

    .arrow-line.arrow-right {
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        height: 4.27vw !important;
        background: none !important;
    }

    .arrow-line.arrow-right::before {
        content: '' !important;
        display: block !important;
        flex: 1 !important;
        height: 1px !important;
        background: white !important;
        margin-right: -0.2vw !important;
        margin-top: 4.05vw !important;
    }

    .arrow-line.arrow-right::after {
        content: '' !important;
        display: block !important;
        width: 1.6vw !important;
        height: 1.6vw !important;
        border-top: 1px solid white !important;
        border-right: 1px solid white !important;
        border-left: none !important;
        border-bottom: none !important;
        transform: rotate(45deg) !important;
        flex-shrink: 0 !important;
        margin-top: 1.2vw !important;
    }

    .overlay-label.overlay-right {
        position: static !important;
        width: auto !important;
        font-size: 2.93vw !important;
        font-weight: 500 !important;
        line-height: 4.27vw !important;
        height: 4.27vw !important;
        color: white !important;
        text-shadow: none !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}
