/* ========================
   floating_nav (index.jsp 전용, 좌측 고정)
   ======================== */
.floating_nav {
  position: fixed;
  left: 2%;
  top: calc(50%);
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 28px 0;
}

.floating_item {
  display: flex;
  align-items: center;
  gap: 0 12px;
  cursor: pointer;
}

.floating_item .fn_label {
  color: var(--blue);
  opacity: 0;
}

.fn_dot_wrap {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fn_dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  transition: width .3s, height .3s, background-color .3s, border-color .3s;
}

.floating_item.on.Home .fn_dot {
  background-color: rgba(255, 255, 255, 0.5);
}

.floating_item.on .fn_dot {
  width: 22px;
  height: 22px;
  background-color: rgba(204, 204, 204, 0.5);
}


.floating_item.on .fn_dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue);
  transform: translate(-50%, -50%);
}

.floating_item.on .fn_label {
  opacity: 1;
  width: auto;
}

.floating_item.on .fn_label.Home {
  color: #fff;
}

/* ========================
   section1 : 메인 비주얼
   ======================== */
.section1_inner {
  padding-top: 60px;
  width: 100%;
  height: 100vh;
  background-image: url(../images/main_bg.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.s1_label {
  color: #fff;
  margin-bottom: 30px;
}

.s1_sub {
  color: #fff;
  margin-bottom: 10px;
}

.s1_title {
  color: #fff;
  margin-bottom: 60px;
}

.s1_desc {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 40px;
}

.s1_btn {
  display: inline-flex;
  align-items: center;
  gap: 0 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #4AA8C8 0%, #6D68AE 100%);
  cursor: pointer;
}

.s1_btn i {
  font-size: 18px;
}

/* ========================
   section2 : Quick Menu
   ======================== */
.section2_inner {
  padding: 100px 0;
  background-color: #fff;
}

.s2_title {
  color: #111111;
}

.s2_box {
  background-color: #F9F9F9;
  border-radius: 15px;
  padding: 30px 40px;
  gap: 0 40px;
}

.s2_big_btns {
  gap: 0 16px;
  flex-shrink: 0;
}

.s2_big_btn {
  width: 140px;
  height: 140px;
  background-color: var(--blue);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px 0;
  cursor: pointer;
  transition: background-color .3s;
}

.s2_big_btn:hover {
  background-color: #0d3a7a;
}

.s2_big_btn img {
  width: 48px;
  height: 48px;
}

.s2_big_btn p {
  color: #fff;
}

.s2_divider {
  width: 1px;
  height: 100px;
  background-color: #dddddd;
  flex-shrink: 0;
}

.s2_icon_list {
  flex: 1;
  justify-content: space-between;
}

.s2_icon_list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px 0;
  cursor: pointer;
}

.s2_icon_circle {
  position: relative;
  padding: 25px;
  border-radius: 50%;
  border: 1px solid #fff;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .3s;
}

.s2_icon_list li:hover .s2_icon_circle {
  border: 1px solid var(--blue);
}

.s2_icon_list li:hover p {
  color: var(--blue);
}

.s2_icon_circle img {}

.s2_icon_list li p {
  color: #333333;
}

/* ========================
   section3 : 성과
   ======================== */
.section3_inner {
  padding: 100px 0;
  background-color: #f5f6f8;
  background-image: url(../images/section3_wave.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.s3_head {
  margin-bottom: 50px;
}

.s3_title {
  color: #111111;
  margin-bottom: 12px;
}

.s3_sub {
  color: #999;
}

.s3_stat_list {
  gap: 0;
  margin-bottom: 50px;
}

.s3_stat_list li {
  position: relative;
  padding: 0 60px;
  flex: 1;
}

.s3_stat_list li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background-color: #dddddd;
}

.s3_stat_list li:first-child::before,
.s3_stat_list li:last-child::before {
  content: '';
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #111111;
}

.s3_stat_list li:first-child::before {
  left: 0;
}

.s3_stat_list li:last-child::before {
  right: 0;
}

.s3_num {
  color: var(--blue);
  margin-bottom: 12px;
}

.s3_desc {
  color: #777777;
  line-height: 1.5;
}

.s3_btn {
  display: inline-flex;
  align-items: center;
  gap: 0 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  border: 0;
  background-color: var(--blue);
  color: #fff;
  cursor: pointer;
}

/* ========================
   section4 : 컨설팅 사례
   ======================== */
.section4_inner {
  position: relative;
  padding: 80px 0 200px;
  overflow: hidden;
  background-color: #F2F7FF;
}

.section4_inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 310px;
  background-image: url(../images/sec4_bg.png);
  z-index: 0;
}

.section4_inner .center {
  position: relative;
  z-index: 1;

}

.s4_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.s4_head_text {
  gap: 0 20px;
  align-items: flex-end;
}

.s4_head_text h3 {
  color: #fff;
}

.s4_head_text p {
  color: #CCCCCC;
}

.s4_all_btn {
  padding: 15px 50px;
  border-radius: 10px;
  border-top-left-radius: 0;
  border: 0;
  background-color: var(--skyblue);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;

}

.s4_all_btn:hover {
  color: var(--skyblue);
  background-color: #fff;
}

.s4_card_list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
}

.s4_card {
  height: 305px;
  cursor: pointer;
  perspective: 1200px;
}

.s4_card_inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

/* 1,2번째 열은 왼쪽으로, 3,4번째 열은 오른쪽으로 뒤집힘 (책 펼쳐지는 느낌) */
.s4_card:nth-child(4n+1):hover .s4_card_inner,
.s4_card:nth-child(4n+2):hover .s4_card_inner {
  transform: rotateY(180deg);
}

.s4_card:nth-child(4n+3):hover .s4_card_inner,
.s4_card:nth-child(4n):hover .s4_card_inner {
  transform: rotateY(-180deg);
}

.s4_card_face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  backface-visibility: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.s4_card_front {
  background-color: #fff;
}

.s4_card_back {
  transform: rotateY(180deg);
  background-color: #fff;
  padding: 24px 24px 30px;
}

.s4_card_img {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.s4_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.s4_card:hover .s4_card_img img {
  transform: scale(1.05);
}

.s4_card_info {
  background-color: #fff;
  padding: 20px 24px 30px;
  flex: 1;
}

.s4_label {
  color: var(--blue);
  margin-bottom: 8px;
}

.s4_title {
  color: #111111;
  line-height: 1.4;
}

.s4_card_back .s4_title {
  margin-top: 8px;
  margin-bottom: 16px;
}

.s4_detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px 0;
}

.s4_detail li {
  color: #555555;
  line-height: 1.5;
}

/* 자세히 보기 코너 뱃지 (이미지) */
.s4_more {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 140px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 23px 10px 30px;
  background-image: url(../images/s4_more.png);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  color: #fff;
  box-sizing: border-box;
}

/* ========================================================
   반응형 - 태블릿 (768px ~ 1024px)
======================================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    .floating_nav {
        left: 12px;
    }

    .floating_item .fn_label {
        display: none;
    }

    /* section1 */
    .s1_title {
        margin-bottom: 40px;
    }

    .s1_desc {
        margin-bottom: 30px;
    }

    /* section2 */
    .section2_inner {
        padding: 70px 0;
    }

    .s2_box {
        flex-direction: column;
        padding: 24px 30px;
        gap: 24px 0;
    }

    .s2_big_btns {
        width: 100%;
        justify-content: center;
    }

    .s2_divider {
        display: none;
    }

    .s2_icon_list {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    /* section3 */
    .section3_inner {
        padding: 70px 0;
    }

    .s3_stat_list li {
        padding: 0 24px;
    }

    /* section4 */
    .section4_inner {
        padding: 60px 0 140px;
    }

    .s4_card_list {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================================
   반응형 - 모바일 (~767px)
======================================================== */
@media screen and (max-width: 767px) {

    /* ---- floating_nav : 좁은 화면에서 본문과 겹치므로 숨김 ---- */
    .floating_nav {
        display: none;
    }

    /* ---- section1 : 메인 비주얼 ---- */
    .section1_inner {
        height: 100vh;
        padding-top: 40px;
    }

    .s1_label {
        margin-bottom: 16px;
    }

    .s1_sub {
        margin-bottom: 8px;
    }

    .s1_title {
        margin-bottom: 30px;
    }

    .s1_desc {
        margin-bottom: 24px;
    }

    .s1_btn {
        width: 100%;
        justify-content: center;
        height: 50px;
        padding: 0 20px;
    }

    /* ---- section2 : Quick Menu ---- */
    .section2_inner {
        padding: 50px 0;
    }

    .s2_box {
        flex-direction: column;
        padding: 20px;
        gap: 20px 0;
    }

    .s2_big_btns {
        width: 100%;
        justify-content: center;
        gap: 0 12px;
    }

    .s2_big_btn {
        width: 100%;
        max-width: 140px;
        height: 100px;
    }

    .s2_divider {
        display: none;
    }

    .s2_icon_list {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px 16px;
    }

    .s2_icon_list li {
        width: calc(33.333% - 12px);
    }

    .s2_icon_circle {
        padding: 18px;
    }

    /* ---- section3 : 성과 (가로 3개 → 세로 스택) ---- */
    .section3_inner {
        padding: 50px 0;
    }

    .s3_head {
        margin-bottom: 30px;
    }

    .s3_stat_list {
        flex-direction: column !important;
        gap: 24px 0;
        margin-bottom: 30px;
    }

    .s3_stat_list li {
        padding: 20px 0;
    }

    /* 가로형 세로 구분선(오른쪽) → 세로 스택에서는 아래쪽 가로 구분선으로 전환 */
    .s3_stat_list li:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 10%;
        width: 80%;
        height: 1px;
    }

    /* 좌우 굵은 세로선(첫/마지막 항목) → 세로 스택에서는 의미 없으므로 제거 */
    .s3_stat_list li:first-child::before,
    .s3_stat_list li:last-child::before {
        display: none;
    }

    .s3_btn {
        width: 100%;
        justify-content: center;
    }

    /* ---- section4 : 컨설팅 사례 ---- */
    .section4_inner {
        padding: 50px 0 60px;
    }

    .section4_inner::before {
        height: 220px;
    }

    .s4_head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px 0;
        margin-bottom: 30px;
    }

    .s4_head_text {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px 0;
    }

    .s4_all_btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* 4열 그리드 → 1열, 카드 높이는 auto로 풀어서 내용에 맞게 */
    .s4_card_list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .s4_card {
        height: auto;
        perspective: none;
    }

    /* 모바일은 hover가 없어 플립이 발동하지 않으므로 뒷면(상세정보)은 숨기고 앞면만 표시 */
    .s4_card_inner {
        transform: none !important;
        height: auto;
    }

    .s4_card_face {
        position: relative;
        backface-visibility: visible;
    }

    .s4_card_back {
        display: none;
    }

    .s4_card_img {
        height: 200px;
    }

    .s4_more {
        width: 120px;
        height: 50px;
        padding: 16px 18px 8px 24px;
    }
}