.modal-open {
    overflow: hidden;
    height: 100%;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - (.5rem * 2));
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - (.5rem * 2));
    content: "";
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
    border: none;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: .5;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: .3rem;
    border-top-right-radius: .3rem;
}

.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 20px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-body ul>li {
    /* margin-top: 30px; */
    word-break: keep-all;
}

.modal-body ol>li {
    margin-top: 8px;
    word-break: keep-all;
}

.modal-body table {
    margin: 16px 0;
    border: 1px solid #ddd;
}

.modal-body table th {
    padding: 8px 16px;
    background-color: #f8f8f8;
    text-align: left;
    color: #333;
    font-size: 13px;
}

.modal-body table th:not(last-child),
.modal-body table td:not(last-child) {
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.modal-body table td {
    padding: 8px 16px;
    text-align: left;
}

.modal-body table td ul>li,
.modal-body ol>li>ul>li {
    margin-top: 0;
    display: block;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem;
}

.modal-footer> :not(:first-child) {
    margin-left: .25rem;
}

.modal-footer> :not(:last-child) {
    margin-right: .25rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}


@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
    }

    .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
    }

    .modal-dialog-centered::before {
        height: calc(100vh - (1.75rem * 2));
    }

    .modal-sm {
        max-width: 300px;
    }

}

@media (min-width: 992px) {

    .modal-lg,
    .modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

.no-plugin,
.module-cover-slides.no-plugin .slides-control {
    height: 100%;
}

.modal-dialog {
    position: relative;
    /* margin: .5rem; */
    pointer-events: none;
    top: 50%;
    left: 50%;
}


.solution-item {
    margin: 12px 10px;
}

.solution-item.grid-2 {
    gap: 68px;
    height: auto;
    /* padding: 0 40px; */
}

.solution-item.grid-3 {
    gap: 56px;
    height: auto;
}

.solution-modal {
    opacity: 1;
    height: auto;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden !important;
    /* Strict global lock to prevent top-level scrollbars */
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}


.solution-modal .container {
    padding: 0;
    overflow: hidden !important;
    /* Prevent internal container from triggering a flicker scrollbar */
}


.solution-modal .module-cover-slides {
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    /* Prevent content expansion from pushing modal height */
    /* width: calc(100% + 20px) !important; */
    margin-right: -20px;
}

.solution-modal .slides-container li {
    /* padding-right: 30px; */
    box-sizing: border-box;
    background: transparent !important;
    width: 100% !important;
}

/* Hide all slides EXCEPT the first one before JS initialization to prevent layout shift without a blank screen */
.solution-modal .module-cover-slides:not(.superslides-initialized):not(:has(.solution-modal-slider)) .slides-container li:not(:first-child) {
    display: none !important;
}

.solution-modal .slides-pagination {
    display: block !important;
    bottom: 22px;
    position: fixed;
    right: 50%;
    transform: translateX(50%);
}

.solution-item-box {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    min-height: 0;
    /* overflow: auto; */
    gap: 30px;
    padding: 24px 23px;
    display: flex;
    flex-direction: column;
    opacity: 1;
    border-radius: 25px;
    background: linear-gradient(0deg, rgba(29, 47, 67, 0.00) 0%, rgba(29, 47, 67, 0.00) 100%), rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 1px 1px 1px 0px rgba(255, 255, 255, 0.5), -1px -1px 1px 0px rgba(255, 255, 255, 0.5);
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), inset 1px 1px 1px rgba(255, 255, 255, 0.5), inset -1px -1px 1px rgba(0, 0, 0, 0.05); */
}

.solution-item-box.row-2 {
    padding: 23px 20px;
    display: grid;
    /* align-content: space-between; */
    /* max-height: 646px; */
    gap: 20px;
}

.solution-item-content {
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.solution-item-title {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
    align-items: flex-start;
    flex-direction: column;
}

.solution-item-title span {
    color: #FFF;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    padding: 0;
    margin: 0;
}

.solution-item-img {
    flex: 1;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
}

.solution-item-img img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media(max-width: 1200px) {
    .solution-item-img {
        padding: 20px 0;
    }
}


img.h-auto {
    height: auto !important;
}

.solution-item-img video {
    height: 100%;
    display: block;
}


/* Pre-initialization FOUC fix for smooth modal opening animation */
ul.solution-modal-slider:not(.owl-loaded) {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 500px !important;
    /* Fixed height to match expected item height */
    overflow: hidden !important;
    /* Prevent uninitialized list from expanding vertical height */
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    /* Strictly hide before initialization */
    /* Hide before initialization to prevent flicker */
    transition: opacity 0.3s ease;
}

ul.solution-modal-slider.owl-carousel:not(.owl-loaded) {
    display: flex !important;
    opacity: 0 !important;
}


ul.solution-modal-slider.owl-loaded {
    opacity: 1;
    /* Fade in smoothly once initialized */
}


ul.solution-modal-slider:not(.owl-loaded)>li {
    display: block !important;
    flex: 0 0 33.333% !important;
    width: 33.333% !important;
    max-width: 33.333% !important;
}

#modal-solution-3 .solution-modal-slider:not(.owl-loaded)>li,
#modal-solution-4 .solution-modal-slider:not(.owl-loaded)>li {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
}


@media (max-width: 1600px) {

    /* Tablet and Laptop - stay at 2 items for better spacing in 850px modal */
    ul.solution-modal-slider:not(.owl-loaded)>li {
        flex: 0 0 calc(50% - 10px) !important;
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

@media (max-width: 767px) {

    /* Mobile - strictly 1 item to prevent horizontal jump from 2 items to 1 item */
    ul.solution-modal-slider:not(.owl-loaded) {
        height: 340px !important;
        /* Reduced from 380px to provide a buffer for mobile viewport heights */
    }


    ul.solution-modal-slider:not(.owl-loaded)>li {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Explicit 2-item FOUC for Desktop */
ul.solution-modal-slider.count-2:not(.owl-loaded)>li {
    flex: 0 0 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
}

@media (max-width: 767px) {

    /* Mobile */
    ul.solution-modal-slider:not(.owl-loaded)>li {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

ul.solution-modal-slider.owl-carousel.owl-loaded {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    margin: 0;
    height: 100% !important;
}

.solution-modal-slider .owl-stage-outer {
    overflow: hidden !important;
    overflow-x: hidden !important;
    width: 100% !important;
    height: 100% !important;
}

.solution-modal-slider .owl-stage {
    height: 100% !important;
}

.solution-modal-slider .owl-item {
    float: left !important;
    box-sizing: border-box !important;
    height: 100% !important;
}

.solution-modal-slider .owl-item>li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    height: 100% !important;
    padding: 10px 10px !important;
    box-sizing: border-box !important;
}

.solution-modal-slider .container {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 15px !important;
}

.solution-modal-slider .solution-item.grid-3,
.solution-modal-slider .solution-item.grid-2 {
    display: block !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
}

/* .solution-modal-slider .solution-item-box {
    width: 100% !important;
    height: auto !important;
    grid-template-rows: auto auto auto;
    align-content: center;
} */

/* .solution-modal-slider .solution-item-img {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
} */

#modal-solution-3 .solution-modal-slider .solution-item-img img {
    height: auto !important;
}

.solution-modal-slider .solution-item-img iframe,
.solution-modal-slider .solution-item-img video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Custom Owl Dots for solution modals */
.solution-modal-slider .owl-dots {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex;
    gap: 8px;
    /* space between dots */
    margin: 0 !important;
    padding: 0;
    z-index: 1055;
    /* Ensure it stays above other modal contents */
}

.solution-modal-slider .owl-dot {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.solution-modal-slider .owl-dot span {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    display: block;
}

.solution-modal-slider .owl-dot.active span {
    background-color: rgba(255, 255, 255, 1) !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    /* Prevent active scale effect if any */
}

.solution-item.grid-2 .solution-item-box.row-2 .solution-item-img {
    /* height: 400px; */
}

.solution-item-info {
    display: grid;
    gap: 10px;
    flex: 0 0 auto;
}

.solution-item-info p {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.solution-item-info p span:nth-of-type(1) {
    width: 57px;
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
    margin-right: 12px;
    padding: 0;
    margin: 0;
}

.en-page .solution-item-info p span:nth-of-type(1) {
    line-height: normal;
    text-justify: none;
}

.solution-item-info p span:nth-of-type(2) {
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    opacity: 0.7;
    padding: 0;
    margin: 0;
}

@media (max-width: 1620px) {
    .solution-item-info p span:nth-of-type(2) {
        font-size: 14px;
    }
}

.policy-modal {
    opacity: 1;
    border-width: 1px;
    border: 1px solid #FFFFFFCC;
    background: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: black;
}

.policy-modal .close img {
    filter: brightness(0);
}

.modal-small {
    width: 340px;
    max-width: 90vw;
}

.modal-medium {
    width: 600px;
    max-width: 90vw;
}

.modal-large {
    width: 715.5px;
    max-width: 90vw;
}

.modal-xlarge {
    width: 1260px;
    max-width: 95vw;
}

.modal-extra-large {
    width: 1500px;
    max-width: 95vw;
}

.modal-lg {
    max-width: 1624px;
    height: 800px;
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(-50%, -50%);
}

@media screen and (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
    }
}

.modal.show .modal-dialog {
    transform: translate(-50%, -50%);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: auto;
}

.solution-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 65vh !important;
    max-height: 75vh;
    overflow: hidden !important;
    overflow-x: hidden !important;

    pointer-events: auto;
    border-radius: 25px;
    border: 1px solid #FFFFFFCC;
    background: linear-gradient(76.05deg, rgba(41, 49, 60, 0.9) 6.59%, rgba(72, 89, 111, 0.9) 92.29%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 48px 43px;
    overscroll-behavior: contain;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: .5;
}

body:has(#modal-solution-1.show, #modal-solution-2.show, #modal-solution-3.show, #modal-solution-4.show) .modal-backdrop {
    background: linear-gradient(73deg, rgba(83, 93, 103, 0.70) 1.52%, rgba(22, 27, 36, 0.70) 89.93%) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    opacity: 1 !important;
    display: block !important;
}

.modal-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 37px;
    border-bottom: 1px solid rgba(19, 35, 56, 0.40);
    z-index: 999;
}

.solution-modal .close,
.modal-content .close {
    background-color: transparent;
    border: none;
    position: absolute;
    right: 22px;
    top: 24px;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 1000;
}

.modal-title {
    color: #2E5F9E;
    font-size: 26px;
    font-weight: 700;
    line-height: 26px;
}

.solution-modal.modal-xlarge {
    padding: 0;
}

.solution-modal .modal-body {
    padding-bottom: 20px !important;
    height: 100% !important;
    /* strictly fill modal-content to pass height down */
    overflow-x: hidden !important;
    padding: 0;
    flex: 1;
    /* 남은 공간 모두 차지 */
    min-height: 0;
    /* 자식 요소가 바디 영역을 뚫고 나가는 것을 방지 (아주 중요!) */
    display: flex;
    flex-direction: column;
}

.modal-body .slides-control {
    width: 100% !important;
}

.modal-body .container,
.modal-body .solution-item,
.modal-body .slides-container,
/* 슬라이드를 쓰신다면 슬라이드 뼈대도 포함 */
.modal-body .owl-stage-outer,
.modal-body .owl-stage,
.modal-body .owl-item {
    height: 100%;
    min-height: 0;
}

.padding-wrapper {
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.policy-modal .modal-body {
    padding: 40px 20px;
    overscroll-behavior: contain;
}

.policy-content {
    color: #000;
    height: 100%;
    padding: 0 30px;
    line-height: 1;
}

.policy-content p {
    margin-top: 0;
    margin-bottom: 1rem;
    word-break: keep-all;
    color: #788487;
    font-size: 16px;
}

.policy-content .text-box p {
    line-height: 25px;
}

.policy-list {
    margin-bottom: 0;
}

.policy-content ul>li,
.policy-content ol>li {
    word-break: keep-all;
    color: #788487;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 27px;
}

.policy-content table {
    margin: 16px 0;
    border: 1px solid #ddd;
}

.policy-content table th {
    padding: 8px 16px;
    background-color: #f8f8f8;
    text-align: left;
    color: #333;
    font-size: 13px;
}

.policy-content table th:not(last-child),
.policy-content table td:not(last-child) {
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.policy-content table td {
    padding: 8px 16px;
    text-align: left;
}

.policy-content table td ul>li,
.policy-content ol>li>ul>li {
    margin-top: 0;
    display: block;
}

.policy-section,
.solution-modal-section {
    display: grid;
    gap: 12px;
    height: 100% !important;
}


.policy-section-item-title {
    font-size: 19.5px;
    font-weight: 600;
    line-height: 27px;
}

.policy-section-item-content {
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    margin-left: 13.75px !important;
}

.policy-version {
    margin-top: 34.5px;
    color: rgba(0, 0, 0, 0.60);
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
}

.policy-section-item p,
.policy-version p {
    margin: 0;
    padding: 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    border-bottom-right-radius: .3rem;
    border-bottom-left-radius: .3rem;
}

.modal-footer> :not(:first-child) {
    margin-left: .25rem;
}

.modal-footer> :not(:last-child) {
    margin-right: .25rem;
}

@media (max-width: 1200px) {
    .solution-modal {
        width: 850px !important;
        max-width: 92vw;
    }

    .solution-modal.modal-xlarge {
        padding: 0;
    }

    .solution-modal .modal-content {
        padding: 48px 15px;
    }

    .solution-modal-slider .container {
        padding: 10px 5px !important;
    }

    .solution-item-box {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .solution-modal-slider .solution-item-box {
        width: 100% !important;
    }

    /* #modal-solution-3 .solution-item-img img {
        max-width: 260px !important;
    } */
}