html, body {
    overflow-x: hidden;
    background-color: #FBFBFB;
    cursor: default;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.partition-1 {
    display: flex;
    height: 800px;
    padding: 160px 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    background: url("/resources/static/images/kbz/ta_manager/partition-01.png") lightgray 50% / cover no-repeat;
    box-sizing: border-box;
}

.partition-1-tab {
    display: flex;
    padding: 4px;
    align-items: center;
    gap: 1px;
    border-radius: 100px;
    border: 1px solid rgba(48, 45, 48, 0.10);
    background: #FFF;
    cursor: pointer;
}

.partition-1-tab-1 {
    display: flex;
    padding: 8px 19px;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    background: #DCEEFF;
}

.partition-1-tab-2 {
    display: flex;
    padding: 8px 19px;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
}

.tab-txt1 {
    color: #0045AA;
}

.tab-txt2 {
    color: #8A949E;
}

.partition-1-content {
    display: flex;
    padding: 0 15px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.partition-1-sub-copy {
    display: flex;
    max-width: 500px;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 2px;
    flex-wrap: wrap;
}

.partition-1-sub-copy-txt {
    color: #0045AA;
    text-align: center;
}

.partition-1-head-copy {
    display: flex;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

.partition-1-head-copy-txt {
    color: #272B2F;
    text-align: center;
}

.partition-1-sub-e {
    display: flex;
    padding: 0 10px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.partition-1-sub-e-txt {
    color: #1F2A42;
    text-align: center;
}


.head-line .sub-copy + .main-copy {
    margin-top: 10px;  /* sub-copy 바로 다음의 main-copy에만 적용 */
}


















.partition-2 {
    display: flex;
    padding: 50px 0;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    align-self: stretch;
    background: #FBFBFB;
}

.partition-2-main-container {
    display: flex;
    max-width: 800px;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    align-self: stretch;
    width: 100%;
    margin: 0 auto; /* 가운데 정렬 핵심 */
}

.partition-2-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    align-self: stretch;
    max-width: 800px;
    width: 100%;
    margin: 0 auto; /* 이거 필수 */
}

.partition-2-group-1,
.partition-2-group-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    align-self: stretch;
}

.group-1-1 {
    display: flex;
    max-width: 800px;
    align-items: center;
    align-content: center;
    gap: 50px;
    align-self: stretch;
    flex-wrap: wrap;
}

.group-1-1-left {
    display: flex;
    min-width: 300px;
    max-width: 400px;
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1 0 0;
}

.group-1-2-left {
    display: flex;
    height: 250px;
    min-width: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
}

.group-txt-sub {
    display: flex;
    padding: 5px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #DCE8F9;
}

.sub-txt {
    color: var(--sub-d-blue);
    text-align: center;
}

.group-txt-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
}

.title-txt {
    align-self: stretch;
    color: #272B2F;
}

.content-txt {
    align-self: stretch;
    color: var(--sub-d-gray);
}

.group-1-1-right {
    display: flex;
    height: 250px;
    min-width: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    border-radius: 10px;
}

.group-1-2-right {
    display: flex;
    min-width: 300px;
    max-width: 400px;
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1 0 0;
}

.img-group {
    display: flex;
    height: 250px;
    min-width: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    align-self: stretch;
}


.img-group2 {
    display: flex;
    height: 250px;
    min-width: 300px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    align-self: stretch;
    background: var(--Pastel-blue);
}

.img-group3 {
    background: var(--sub-w-gray);
}














.partition-3 {
    display: flex;
    padding: 50px 0;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    align-self: stretch;
    background: #FFF;
}

.partition-3-center {
    display: flex;
    max-width: 800px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /*align-self: stretch;*/

    /*align-items: center; !* 내부 요소 가로 가운데 *!*/
    justify-content: center; /* 세로 기준 가운데 */
    /*gap: 10px;*/
    align-self: center; /* 자기 자신을 가운데 정렬 */
    margin: 0 auto; /* 부모 기준 가운데 위치 */
}

.partition-3-center .head-copy{
    display: flex;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

.partition-3-center .head-copy .head-line{
    max-width: 800px;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 5px;
    align-self: stretch;
    flex-wrap: wrap;
}

.partition-3-center .head-copy .sub-copy{
    display: flex;
    padding: 0 15px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    margin-top: 10px;
}

.partition-3-center .head-copy .sub-copy .sub-copy-txt{
    flex: 1 0 0;
    color: #1F2A42;
    text-align: center;
}


.black {
    color: #272B2F;
}

.white {
    color: #FFF;
}

.blue700 {
    color: #0045AA;
    text-align: center;
    font-weight: 700;
}

.white400 {
    color: #FFF;
    text-align: center;
    font-weight: 400;
}

.white700 {
    color: #FFF;
    text-align: center;
    font-weight: 700;
}

.partition-3-contents-group {
    display: flex;
    max-width: 800px;
    align-items: flex-start;
    align-self: stretch;
    margin: 0 auto;
}

.partition-3-panel {
    display: flex;
    flex: 1 0 0;
    align-self: stretch;

    flex-direction: row; /* 가로 배치 */
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    height: 363px;
}

.partition-3-text {
    display: flex;
    padding-top: 10px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.partition-3-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*gap: 15px;*/
    align-self: stretch;
    padding: 10px 20px 0 20px;

    flex: 1; /* 동일 너비 */
    text-align: center; /* 내부 텍스트 가운데 */
}


.partition-3-title {
    align-self: stretch;
    color: var(--sub-d-blue);
    text-align: center;
}

.partition-3-contents {
    /*max-width: 200px;*/
    align-self: stretch;
    color: var(--sub-d-gray);

    width: 100%; /* 꽉 차게 */
    text-align: left; /* 왼쪽 정렬 */
    max-width: none; /* 기존 width 제한 해제 */
}

.partition-3-img-group {
    position: relative;

    width: 166px;
    height: 130px;
    aspect-ratio: 65/83;
    background: radial-gradient(40.4% 49.87% at 50% 50%, #8ADAFF 0%, rgba(175, 230, 255, 0.00) 100%);
    /*margin: 0 auto;*/
    overflow: visible; /* 이미지가 잘리지 않도록 */
}

.partition-3-img-group img {
    /*display: block;*/
    /*max-width: 120%;*/
    /*height: auto;*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 174px;
    height: 166px;
}

.partition-3-img-wrap {
    position: relative;
    width: 174px;
    height: 166px;
    margin: 0 auto;
    margin-top: auto;
}

/* 이미지 */
.partition-3-img-wrap img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
}

/* 그라데이션 배경 */
.partition-3-bg {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 166px;
    height: 130px;
    aspect-ratio: 65 / 83;

    background: radial-gradient(
            40.4% 49.87% at 50% 50%,
            #8ADAFF 0%,
            rgba(175, 230, 255, 0) 100%
    );
}



















.partition-4 {
    position: relative; /*  절대 위치 기준 생성 */

    display: flex;
    padding-top: 140px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    background: #EFF6FF;
}

.slide-wrapper {
    width: 100%;
    overflow: hidden;
    /*position: relative;*/

    position: absolute;   /*  이제 top 기준으로 고정됨 */
    top: 31.703px;        /*  원하는 위치 */
    left: 50%;            /* 화면 중앙 기준 */
    transform: translateX(-50%); /* 진짜 중앙 정렬 */
}

.slide-track {
    display: flex;
    width: max-content;
    animation: slide-move 40s linear infinite;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background: #EFF6FF;
}

.slide-img {
    width: 171.2px;
    height: 50.4px;
    margin-right: 30px; /* 간격 */
    object-fit: contain;
    opacity: 0.5;
    mix-blend-mode: multiply;
}

/* 오른→왼 무한 이동 */
@keyframes slide-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* 전체의 절반만 이동 (복제 때문) */
    }
}


.partition-4 .title-container {
    position: relative; /* 또는 absolute, 필요시 위치 조정 */
    width: 100%;            /* 화면 대비 비율 */
    max-width: 800px;      /* 최대 너비 */
    margin: 0 auto;        /* 중앙 정렬 */
    height: auto;          /* 내용에 맞춰 유동적 */
    display: flex;
    flex-direction: column;
    align-items: center;     /* 좌우 중앙 정렬 */

    gap: 20px;
}

.head-copy {
    width: 100%;       /* 부모 기준 */
    /*max-width: 780px;*/
    max-width: 100%;
    height: auto;      /* 내용에 맞춰 자동 */
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.head-copy .head-line {
    width: 100%;
    text-align: center;    /* 텍스트 중앙 정렬 */
    margin-bottom: 20px;
}
.head-copy .sub-copy {
    /*display: inline-block;*/
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

.main-copy {
    display: flex;
    flex-direction: column; /*  span들을 위아래로 배치 */
    align-items: center;    /*  가운데 정렬 유지 */
    white-space: normal;    /*  줄바꿈 허용 */
    gap: 5px;
}

.main-copy-txt {
    height: 50px;
    align-self: stretch;
    text-align: center;

    /* partition-headcopy */
    font-weight: 700;
}

.head-button {
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 1000px;
    height: 44px;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-navy {
    background: var(--main-navy);
}

.btn-blue {
    background: var(--main-blue);
}

.head-button:hover {
    background: var(--Transparent-black-60);
}

.panel-group-arr {
    position: relative; /* 버튼 absolute 기준 */

    display: flex;
    max-width: 1080px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;            /* 부모 폭 채우기 */
    /* 수평 가운데 정렬 */
    margin-top: 50px;    /* 위 여백 */
    margin-bottom: 50px; /* 아래 여백 */
    margin-left: auto;
    margin-right: auto;
}

.panel-group {
    display: flex;
    max-width: 1040px;   /* 패널 3개만 보이도록 고정 */
    /*padding: 0 20px;*/
    margin-left: 20px;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    overflow: hidden; /*  넘친 패널 안 보이게 */
    width: 100%;           /* 부모 폭 채우기 */
    justify-content: flex-start; /* 왼쪽 정렬 */
}

.panel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease; /*  슬라이드 애니메이션 */
}

.panel {
    flex-shrink: 0; /*  패널 크기 유지 */

    display: flex;
    width: 320px;
    height: 460px;
    padding: 20px 20px 150px 20px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-radius: 20px;
    background: var(--main-white);
    backdrop-filter: blur(150px);
    box-sizing: border-box;
    overflow: hidden;
}

.panel-title {
    align-self: stretch;
    color: var(--main-black);
}

.panel-content {
    max-width: 300px;
    align-self: stretch;
    color: var(--Transparent-black-60, rgba(19, 20, 22, 0.60));
}

.panel-img {
    width: 320px;
    height: 166px;
    position: absolute;
    left: 0.057px;
    bottom: 0;
}

.arrow-btn-group {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 10px;
    position: absolute;
    right: 20px;
    bottom: -19.703px;
    z-index: 3;
}

.arrow-btn {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    border: 1px solid var(--Transparent-black-10);
    background: var(--main-white);
    box-shadow: 0 0 4px 0 rgba(19, 20, 22, 0.10);
}

.arrow-btn:hover {
    border: 1px solid var(--Transparent-cyan-30);
    background: var(--Pastel-blue);
    box-shadow: 0 0 4px 0 rgba(19, 20, 22, 0.10);
    cursor: pointer;
}

.arrow-btn:hover svg path {
    stroke: #115AC6; /* 원하는 hover 색상 */
}








.partition-5 {
    display: flex;
    padding: 80px 0;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
    background: var(--sub-d-blue);
}

.partition-5-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    align-self: stretch;
}

.partition-5-headcopy{
    width: 100%;       /* 화면 폭에 맞추기 */
    max-width: 1280px; /* 필요하면 최대폭 제한 */
    display: flex;
    flex-direction: column;
    align-items: center; /* 가로 가운데 */
    gap: 10px;
}

.partition-5-headcopy .head-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    align-self: stretch;
    justify-content: center;  /* 세로 가운데 */
}

.partition-5-center .main-copy {
    display: flex;
    justify-content: center;   /* 가로 가운데 */
    align-items: center;       /* 세로 가운데 */
    gap: 5px;
    align-self: stretch;
    flex-wrap: wrap;
}

.partition-5-img {
    display: flex;
    padding: 5px 10px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    align-self: stretch;
    justify-content: center;   /* 세로 가운데 */
}

.partition-5-img-area{
    display: flex;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.partition-5-img-area img {
    display: block;
    /*width: 794px;*/
    /*height: 510px;*/
    max-width: 794px;
    width:  100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;            /* 이미지 자체 가운데 */
}

/* 초기 상태 - 스크롤로 들어오기 전 */
.partition-5-img-area {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* 화면에 보이면 적용될 상태 */
.partition-5-img-area.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

























.drop-faq-list {
    display: flex;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    transition: height 0.3s ease-in-out;

    width: 100%;              /* 최대 너비 지정 가능 */
    max-width: 700px;         /* 원하는 최대 너비 */
    margin: 0 auto;           /* 화면 좌우 중앙 정렬 */
}

.drop {
    display: flex;
    max-width: 700px;
    padding: 0 10px;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border-top: 0.5px solid #DCEEFF;
}

.drop-title {
    display: flex;
    padding: 10px 0;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    cursor: pointer;
}

.drop-title-txt {
    display: flex;
    padding: 13px 0;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
}

.title-left {
    color: #FFF;
    font-weight: 700;
    text-align: left;
}
.svg-group {
    height: 60px;
    display: flex;
    justify-content: center; /* 가로 가운데 */
    align-items: center;     /* 세로 가운데 */
}

.drop svg {
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.drop-content {
    overflow: hidden;          /* 높이 변경 시 내용이 잘리지 않도록 */
    max-height: 0;             /* 기본은 접혀있음 */
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;           /* 접힐 때도 패딩 유지 */
}

.drop-content.show {
    display: block;
    padding: 0 20px 42px 30px;
    align-items: flex-end;
    gap: 10px;
    align-self: stretch;

    max-height: 500px;         /* 충분히 큰 값, 내용에 맞게 늘어남 */
}

.drop-txt {
    flex: 1 0 0;
}

.svg.on {
    display: block;
}

.svg.off {
    display: none;
}
















.partition-8-btns {
    display: flex;
    padding: 0 20px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    max-width: 500px;  /* 버튼 최대 너비와 맞추기 */
    width: 100%;
    margin: 50px auto 0;
}

.partition-8-btn{
    display: flex;
    max-width: 500px;
    padding: 30px;
    align-items: center;
    gap: 40px;
    align-self: stretch;
    border-radius: 12px;
    justify-content: space-between; /* 텍스트 왼쪽, 아이콘 오른쪽 */


    /* 버튼 내부 내용이 위로 올라오도록 */
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;

}

.partition-8-btn svg {
    z-index: 5;
}

.white-btn {
    background: var(--main-white);
}

.black-btn {
    background: var(--main-black);
}

/* ::after 초기 상태 */
.partition-8-btn.white-btn::after {
    content: "";
    position: absolute;
    width: 378px;
    height: 378px;
    border-radius: 50%;
    right: -213px; /* 버튼 끝 기준 x 위치 */
    top: -122px;   /* 버튼 끝 기준 y 위치 */
    transform: scale(0);
    opacity: 0;
    background: radial-gradient(49.14% 96.61% at 51.11% 100%, #C0EFFF 45%, rgba(220, 238, 255, 0) 100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

.partition-8-btn.black-btn::after {
    content: "";
    position: absolute;
    width: 378px;
    height: 378px;
    border-radius: 50%;
    right: -213px; /* 버튼 끝 기준 x 위치 */
    top: -122px;   /* 버튼 끝 기준 y 위치 */
    transform: scale(0);
    opacity: 0;
    background: radial-gradient(49.14% 96.61% at 51.11% 100%, #0062C4 45%, rgba(0, 67, 134, 0) 100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 0;
}

/* hover 시 버블 효과 */
.partition-8-btn:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: bubbleEffect 0.4s ease-in-out 1;
}

@keyframes bubbleEffect {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}















.partition-6 {
    position: relative; /* 자식 절대 위치 기준 */

    display: flex;
    height: 400px;
    padding: 50px 0;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    align-self: stretch;
    background: url("/resources/static/images/kbz/public/partition-06(533+).png") lightgray 50% / cover no-repeat;
}

.partition-6-title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* 정확히 중앙으로 이동 */

    display: flex;
    max-width: 800px;
    padding: 0 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    align-self: stretch;
    width: 100%;
}

.partition-6-head-line {
    display: flex;
    max-width: 450px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
}

.partition-6-txt2 {
    color: var(--main-blue);
}














.floating-buttons {
    position: fixed;          /* 화면 기준 고정 */
    /*bottom: 0;*/
    display: flex;
    flex-direction: row; /* 버튼 나란히 */
    z-index: 10;

    justify-content: center;
    align-items: center;

    max-width: 100%;         /* 버튼 그룹 최대 너비 */
    width: 100%;
    padding: 5px 10px 15px 10px;
    align-content: center;
    flex-wrap: wrap;
    height: 84px;
    border-radius: 10px;
    /*position: absolute;*/
    bottom: -0.286px;
}

.floating-buttons .button-group {
    display: flex;
    max-width: 900px;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    flex-direction: row; /* 버튼 나란히 */
    height: 100%;

    border-radius: 10px;
    border: 2px solid var(--main-white, #FFF);
    background: var(--Transparent-d-blue-90, rgba(17, 71, 151, 0.90));
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
}

.floating-button1 {
    display: flex;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex: 1 0 0;
    align-self: stretch;
    border-right: 1px dashed rgba(255, 255, 255, 0.70);
    background: linear-gradient(90deg, rgba(50, 117, 253, 0.00) 0%, #3275FD 98.68%);
    cursor: pointer;
}

.floating-button2 {
    display: flex;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex: 1 0 0;
    align-self: stretch;
    background: linear-gradient(90deg, #3275FD 0%, rgba(50, 117, 253, 0.00) 100%);    cursor: pointer;
}

.floating-btn-txt {
    color: #FFF;
    text-align: center;
}

.floating-btn-txt .word {
    display: inline-block;   /* 단어 단위로 묶어서 줄바꿈 */
    white-space: nowrap;     /* 단어 안에서 줄바꿈 금지 */
}






/* ========== 1280px 이하: PC → 넓은 노트북 ========== */
@media (max-width: 1280px) {
}

@media (max-width: 1080px) {
    .panel-group {
        margin-left: 0;
    }
}

/* ========== 900px 미만: 태블릿 가로/작은 노트북 ========== */
@media (max-width: 899px) {

}

/* ========== 692px 미만: 태블릿 세로 ========== */
@media (max-width: 691px) {
    .partition-3-panel {
        flex-direction: column; /* 그룹 전체 세로 스택 */
        gap: 30px;
        height: auto;
    }
    .partition-3-text-group {
        flex-direction: row; /* 내부: 텍스트 왼쪽, 이미지 오른쪽 */
        align-items: flex-start;
        gap: 15px;
        min-height: 138px;
    }
    .partition-3-text {
        flex: 1; /* 텍스트가 남은 공간 차지 */
        text-align: left;
    }
    .partition-3-title {
        text-align: left;
    }
    .partition-3-bg {
        width: 128px;
        height: 100px;
        flex-shrink: 0;
    }
    .partition-3-img-wrap img {
        width: 134px;   /* 원하는 너비 */
        height: 128px;   /* 비율 유지 */
    }
    .partition-3-img-wrap {
        width: auto;
        height: auto;
    }
}

@media (max-width: 650px) {
    .group-1-1 {
        gap: 0;
    }

    .group-1-1-right,
    .group-1-2-left,
    .img-group,
    .img-group2 {
        height: auto !important;
        min-width: 0;
    }

    /* flex shrink로 박스가 눌리는 것 방지 */
    .group-1-1-left,
    .group-1-1-right,
    .group-1-2-left,
    .group-1-2-right {
        flex: 1 1 0;
        min-width: 0;
        overflow: visible;
    }

    /* 이미지 자체 비율 유지 */
    .group-1-1-left img,
    .group-1-1-right img,
    .group-1-2-left img,
    .group-1-2-right img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
}

/* ========== 533px 이하: 작은 스마트폰 ========== */
@media (max-width: 533px) {
    .group-1-1 {
        display: flex;
        flex-direction: column !important; /* 텍스트 → 이미지 */
        align-items: center;
        gap: 20px;
    }

    /* 모든 텍스트 그룹이 위에 오도록 */
    .group-1-1-left,
    .group-1-2-right {
        order: 1;
        width: 100%;
    }

    /* 모든 이미지 그룹이 아래에 오도록 */
    .group-1-1-right,
    .group-1-2-left {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* 이미지 크기 반응형 */
    .img-group img,
    .img-group2 img {
        max-width: 100%;
        height: auto;
    }


    .panel-group {
        justify-content: flex-start;
    }

    .floating-btn-txt {
        max-width: 150px;
    }
    .floating-buttons {
        max-height: 78px;
        height: 100%;
    }



    .partition-4-panel {
        flex-direction: column; /* 그룹 전체 세로 스택 */
        gap: 20px;
    }
    .partition-4-text-group {
        flex-direction: row; /* 내부: 텍스트 왼쪽, 이미지 오른쪽 */
        align-items: flex-start;
        gap: 15px;
    }
    .partition-4-text {
        flex: 1; /* 텍스트가 남은 공간 차지 */
        text-align: left;
    }
    .partition-4-title {
        text-align: left;
        margin-bottom: 10px;
    }
    .partition-4-img-group {
        width: 120px;
        height: auto;
        flex-shrink: 0;
    }

    .partition-6 {
        display: flex;
        height: 437px;
        padding: 50px 0;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        align-self: stretch;
        background: url("/resources/static/images/kbz/public/partition-06(0-532).png") lightgray 50% / cover no-repeat;
        backdrop-filter: blur(50px);
    }

    .partition-6-title-container {
        display: flex;
        flex-direction: column;
        align-items: center;       /* 자식 요소 가로 중앙 */
        text-align: center;        /* 텍스트 중앙 정렬 */
        width: 100%;               /* 부모 폭 전체 사용 */
        max-width: 800px;          /* 필요 시 최대폭 */
        margin: 0 auto;            /* 부모 가운데 배치 */
        gap: 15px;
    }

    /* 텍스트 내부도 중앙 정렬 */
    .partition-6-head-line {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========== 320px 이하: 최소 화면 대응 ========== */
@media (max-width: 320px) {
    #text-roller-wrapper {
        /*max-width: 280px;*/
        width: 100%;
        padding: 6px 10px;
    }
}
