/* ====================================
   Investment Point - Tab Layout
   좌측 카드 + 우측 탭 구조
==================================== */

.investment-point-section {
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (min-width: 1501px) {
    .investment-point-section {
        padding: 10vh 5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-point-section {
        padding: 100px 75px;
    }
}

/* 패딩 래퍼: 외부 여백 담당 */
.investment-point-section__padding-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 컨테이너: 헤더 + 컨텐츠 중앙정렬 */
.investment-point-section__container {
    display: flex;
    flex-direction: column;
}

/* 좌우 레이아웃 */
.ip-tab-layout {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1501px) {
    .ip-tab-layout {
        gap: 2vw;
        max-width: 71vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-tab-layout {
        gap: 30px;
        max-width: 1065px;
    }
}

/* 좌측 카드 영역 */
.ip-card-area {
    flex: 2;
    position: relative;
}

@media (min-width: 1501px) {
    .ip-card-area {
        height: 50vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card-area {
        height: 500px;
    }
}

.ip-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

@media (min-width: 1501px) {
    .ip-card {
        border-radius: 2.4vh;
        box-shadow: 0 1vh 4vh rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card {
        border-radius: 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
}

.ip-card.active {
    opacity: 1;
    pointer-events: auto;
}

.ip-card__inner {
    display: flex;
    height: 100%;
}

@media (min-width: 1501px) {
    .ip-card__inner {
        gap: 1.2vw;
        padding: 2.5vh 1.4vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__inner {
        gap: 18px;
        padding: 25px 21px;
    }
}

.ip-card__media {
    flex: 0.85;
    min-height: 100%;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1501px) {
    .ip-card__media {
        border-radius: 2vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__media {
        border-radius: 20px;
    }
}

.ip-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 이미지 크레딧 (네 번째 카드) */
.ip-card__image-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(102, 153, 204, 0.92) 0%, rgba(102, 153, 204, 0.85) 30%, rgba(102, 153, 204, 0.6) 60%, rgba(102, 153, 204, 0.3) 80%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1501px) {
    .ip-card__image-credit {
        padding: 8vh 2vw 2vh;
        gap: 2vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__image-credit {
        padding: 80px 30px 20px;
        gap: 20px;
    }
}

.ip-card__image-credit p {
    margin: 0;
    color: white;
    line-height: 1.6;
    font-family: 'SUIT', var(--font-family-korean);
    font-weight: 400;
    text-align: center;
}

@media (min-width: 1501px) {
    .ip-card__image-credit p {
        font-size: 0.7vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__image-credit p {
        font-size: 10px;
    }
}

/* 확대 버튼 */
.ip-card__zoom-btn {
    position: relative;
    min-width: 40px;
    min-height: 40px;
    max-width: 50px;
    max-height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

@media (min-width: 1501px) {
    .ip-card__zoom-btn {
        width: 3vw;
        height: 3vw;
        box-shadow: 0 0.4vh 1.2vh rgba(0, 0, 0, 0.15);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__zoom-btn {
        width: 45px;
        height: 45px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }
}

.ip-card__zoom-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

@media (min-width: 1501px) {
    .ip-card__zoom-btn:hover {
        box-shadow: 0 0.6vh 1.8vh rgba(0, 0, 0, 0.2);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__zoom-btn:hover {
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
    }
}

.ip-card__zoom-btn svg {
    min-width: 20px;
    min-height: 20px;
    max-width: 26px;
    max-height: 26px;
    color: #0f172a;
}

@media (min-width: 1501px) {
    .ip-card__zoom-btn svg {
        width: 1.2vw;
        height: 1.2vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__zoom-btn svg {
        width: 18px;
        height: 18px;
    }
}

.ip-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

@media (min-width: 1501px) {
    .ip-card__body {
        padding: 1vh 1vw 1vh 0;
        gap: 1.5vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__body {
        padding: 10px 15px 10px 0;
        gap: 18px;
    }
}

.ip-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@media (min-width: 1501px) {
    .ip-card__content {
        gap: 1vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__content {
        gap: 12px;
    }
}

.ip-card__tag {
    display: inline-flex;
    align-items: center;
    color: #6699cc;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

@media (min-width: 1501px) {
    .ip-card__tag {
        gap: 0.8vw;
        font-size: 0.8vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__tag {
        gap: 12px;
        font-size: 14px;
    }
}

.ip-card__tag-text {
    font-family: 'Outfit', var(--font-family-english);
}

.ip-card__title {
    font-family: 'SUIT', var(--font-family-korean);
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.04em;
}

@media (min-width: 1501px) {
    .ip-card__title {
        font-size: 1.5vw;
        margin-bottom: 1.5vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__title {
        font-size: 23px;
        margin-bottom: 18px;
    }
}

.ip-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-card__list li {
    font-family: 'SUIT', var(--font-family-korean);
    color: #475569;
    line-height: 1.8;
}

@media (min-width: 1501px) {
    .ip-card__list li {
        font-size: 0.9vw;
        margin-bottom: 0.6vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__list li {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

.ip-card__list li:last-child {
    margin-bottom: 0;
}

.ip-card__description {
    margin: 0;
}

.ip-card__description p {
    font-family: 'SUIT', var(--font-family-korean);
    color: #475569;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
    letter-spacing: -0.02em;
}

@media (min-width: 1501px) {
    .ip-card__description p {
        font-size: 0.8vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__description p {
        font-size: 15px;
    }
}

.ip-card__cta {
    display: inline-block;
    width: fit-content;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 50vh;
    font-family: 'SUIT', var(--font-family-korean);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    text-align: center;
}

@media (min-width: 1501px) {
    .ip-card__cta {
        padding: 1vh 2vw;
        font-size: 0.85vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__cta {
        padding: 12px 30px;
        font-size: 13px;
    }
}

.ip-card__cta:hover {
    background: #1e2f45;
    color: #ffffff;
}

@media (min-width: 1501px) {
    .ip-card__cta:hover {
        transform: translateY(-0.2vh);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-card__cta:hover {
        transform: translateY(-3px);
    }
}

/* 우측 탭 영역 */
.ip-tab-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

@media (min-width: 1501px) {
    .ip-tab-area {
        gap: 1.5vh;
        height: 35vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-tab-area {
        gap: 18px;
        height: 350px;
    }
}

.ip-tab-button {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    flex: 1;
    overflow: hidden;
}

@media (min-width: 1501px) {
    .ip-tab-button {
        gap: 1.5vw;
        padding: 0 2vw;
        border-radius: 1.2vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-tab-button {
        gap: 22px;
        padding: 0 30px;
        border-radius: 15px;
    }
}

.ip-tab-button:hover {
    background: #f1f5f9;
}

.ip-tab-button.active {
    background: #6699cc;
}

.ip-tab-number {
    font-family: 'Outfit', var(--font-family-english);
    font-weight: 700;
    color: #cbd5e1;
    transition: color 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

@media (min-width: 1501px) {
    .ip-tab-number {
        font-size: 1.5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-tab-number {
        font-size: 22px;
    }
}

.ip-tab-button.active .ip-tab-number {
    color: rgba(255, 255, 255, 0.6);
}

.ip-tab-title {
    font-family: 'SUIT', var(--font-family-korean);
    font-weight: 400;
    color: #0f172a;
    line-height: 1.4;
    transition: all 0.3s ease;
    letter-spacing: -0.04em;
}

@media (min-width: 1501px) {
    .ip-tab-title {
        font-size: 1vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-tab-title {
        font-size: 17px;
    }
}

.ip-tab-button.active .ip-tab-title {
    color: #ffffff;
    font-weight: 700;
}

/* 반응형 */
@media (max-width: 1200px) {
    .investment-point-section {
        padding: 100px 40px;
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .investment-point-section__padding-wrapper {
        padding: 0;
        overflow-y: visible;
    }

    .ip-tab-layout {
        flex-direction: column-reverse;
        max-width: 100%;
    }

    .ip-card-area {
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .ip-card {
        position: relative;
        height: auto;
        min-height: auto;
        border-radius: 20px;
    }

    .ip-card:not(.active) {
        display: none;
    }

    .ip-tab-area {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 16px;
    }

    .ip-tab-button {
        flex-direction: row;
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
        gap: 10px;
        height: 50px;
        max-height: 50px;
        align-items: center;
        border-radius: 12px;
    }

    .ip-tab-number {
        display: none;
    }

    .ip-tab-title {
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ip-card__inner {
        flex-direction: row;
        padding: 24px;
        gap: 16px;
        height: 100%;
    }

    .ip-card__media {
        flex: 0.85;
        height: 300px;
        border-radius: 16px;
    }

    .ip-card__media img {
        border-radius: 16px;
    }

    .ip-card__body {
        flex: 1;
        padding: 0;
        gap: 16px;
    }

    .ip-card__content {
        gap: 12px;
    }

    .ip-card__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .ip-card__tag {
        font-size: 14px;
        gap: 8px;
    }

    .ip-card__list li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .ip-card__description p {
        font-size: 14px;
        letter-spacing: -0.02em;
        margin: 0;
    }

    .ip-card__cta {
        font-size: 14px;
        padding: 12px 24px;
    }
}

@media (max-width: 1024px) {
    .ip-card__title {
        font-size: 18px;
    }

    .ip-card__list li {
        font-size: 13px;
    }

    .ip-card__description p {
        font-size: 13px;
        letter-spacing: -0.02em;
    }
}

@media (max-width: 768px) {
    .investment-point-section {
        padding: 60px 20px;
    }


    .ip-tab-area {
        gap: 6px;
    }

    .ip-tab-button {
        padding: 10px 8px;
        gap: 0;
        height: auto;
        max-height: none;
        min-height: 40px;
        border-radius: 4px;
    }

    .ip-tab-button,
    .ip-tab-button.active {
        font-weight: 600;
    }

    .ip-tab-number {
        display: none;
    }

    .ip-tab-title {
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        font-weight: 600;
    }

    /* 모바일에서 탭 텍스트를 Point로 변경 */
    .ip-tab-button[data-tab-index="0"] .ip-tab-title::before {
        content: "Point 1";
    }

    .ip-tab-button[data-tab-index="1"] .ip-tab-title::before {
        content: "Point 2";
    }

    .ip-tab-button[data-tab-index="2"] .ip-tab-title::before {
        content: "Point 3";
    }

    .ip-tab-button[data-tab-index="3"] .ip-tab-title::before {
        content: "Point 4";
    }

    .ip-tab-title {
        font-size: 0;
    }

    .ip-tab-title::before {
        font-size: 11px;
    }

    .ip-card-area {
        height: auto;
        min-height: auto;
    }

    .ip-card {
        position: relative;
        height: auto;
        min-height: auto;
        opacity: 1;
        pointer-events: auto;
    }

    .ip-card.active {
        display: block;
    }

    .ip-card:not(.active) {
        display: none;
    }

    .ip-card {
        border-radius: 8px;
        min-height: auto !important;
        height: auto !important;
    }

    .ip-card__inner {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .ip-card__media {
        width: 100% !important;
        min-height: 200px !important;
        max-height: 200px !important;
        height: 200px !important;
        border-radius: 8px !important;
        flex: none !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        overflow: hidden !important;
    }

    .ip-card__media img {
        border-radius: 8px !important;
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    /* 첫 번째 카드만 이미지 포지션 위로 이동 */
    .ip-card[data-card-index="0"] .ip-card__media img {
        object-position: center 35% !important;
    }

    .ip-card__body {
        width: 100%;
        padding: 0;
        flex: 1;
    }

    .ip-card__title {
        font-size: 22px;
    }

    .ip-card__tag {
        font-size: 14px;
    }

    .ip-card__list li {
        font-size: 13px;
    }

    .ip-card__description p {
        font-size: 15px;
        letter-spacing: -0.02em;
        margin: 0;
    }

    .ip-card__cta {
        width: 100%;
        text-align: center;
        font-size: 13px;
        padding: 10px 20px;
    }

    /* 4번째 카드 크레딧 - 모바일 */
    .ip-card__image-credit {
        padding: 60px 16px 16px;
    }

    .ip-card__image-credit p {
        font-size: 12px;
        line-height: 1.5;
    }

    .ip-card__zoom-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .ip-card__zoom-btn svg {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }
}

/* ====================================
   Investment Stats Section (숫자 카운트)
==================================== */

.investment-stats-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@media (min-width: 1501px) {
    .investment-stats-section {
        padding: 10vh 5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stats-section {
        padding: 100px 75px;
    }
}

.investment-stats {
    width: 100%;
    max-width: 1220px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.investment-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 140px;
    flex: 1;
}

.investment-stat-number {
    font-family: 'Outfit', var(--font-family-english);
    font-weight: 700;
    color: #6699cc;
    margin-bottom: 12px;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

@media (min-width: 1501px) {
    .investment-stat-number {
        font-size: clamp(3rem, 4.5vw, 4.5rem);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stat-number {
        font-size: 4rem;
    }
}

.investment-stat-label {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    position: relative;
    width: 100%;
    text-align: center;
}

.investment-stat-divider {
    color: #0f172a;
    font-size: 0.8rem;
}

/* Stats 반응형 */
@media (max-width: 1000px) {
    .investment-stat-divider {
        display: none;
    }
}

@media (max-width: 850px) {
    .investment-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 30px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .investment-stat-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .investment-stats-section {
        padding: 80px 20px;
    }

    .investment-stats {
        gap: 32px;
        margin-top: 80px;
    }
}

@media (max-width: 500px) {
    .investment-stat-number {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        height: 45px;
    }

    .investment-stat-item {
        min-width: 100px;
    }

    .investment-stat-label {
        font-size: 0.9rem;
    }

    .investment-stats {
        gap: 20px;
        max-width: 300px;
    }
}

/* ====================================
   이미지 확대 모달
==================================== */
.ip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.ip-modal__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

@media (min-width: 1501px) {
    .ip-modal__container {
        max-width: 90vw;
        max-height: 90vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-modal__container {
        max-width: 1200px;
        max-height: 800px;
    }
}

.ip-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1501px) {
    .ip-modal__content {
        gap: 2vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-modal__content {
        gap: 20px;
    }
}

.ip-modal__image {
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (min-width: 1501px) {
    .ip-modal__image {
        max-width: 90vw;
        max-height: 80vh;
        border-radius: 1.5vh;
        box-shadow: 0 2vh 6vh rgba(0, 0, 0, 0.3);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-modal__image {
        max-width: 1200px;
        max-height: 700px;
        border-radius: 18px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

.ip-modal__caption {
    color: #ffffff;
    font-family: 'SUIT', var(--font-family-korean);
    font-weight: 400;
    text-align: center;
    margin: 0;
}

@media (min-width: 1501px) {
    .ip-modal__caption {
        font-size: 0.9vw;
        text-shadow: 0 0.2vh 0.8vh rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-modal__caption {
        font-size: 13px;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    }
}

.ip-modal__close {
    position: absolute;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

@media (min-width: 1501px) {
    .ip-modal__close {
        top: -5vh;
        width: 4vh;
        height: 4vh;
        font-size: 2.5vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .ip-modal__close {
        top: -50px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
}

.ip-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 모달 반응형 */
@media (max-width: 768px) {
    .ip-modal__caption {
        font-size: 13px;
    }

    .ip-modal__image {
        max-width: 95vw;
        max-height: 75vh;
        border-radius: 12px;
    }

    .ip-modal__close {
        top: -60px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
