.page-topimg-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.variable-img {
    width: 100%;
    height: clamp(200px, 16.67vw + 50px, 350px);
    object-fit: cover;
    display: block;
}

/* 이미지 위 텍스트 중앙 배치 */
.page-topimg-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.page-topimg-title {
    font-size: clamp(1.5rem, 3vw + 1rem, 4rem);
    margin: 0;
}

.page-topimg-breadcrumb {
    font-size: 1rem;
    margin-top: clamp(20px, 5vw, 60px);
}


@media (max-width: 768px) {
    .page-topimg-title {
        font-size: 1.5rem;
    }

    .page-topimg-breadcrumb {
        font-size: 0.9rem;
    }
}

.introduction-warp {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.introduction-txt {
    flex: 1 1 500px;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

@media (max-width: 768px) {
    .introduction-txt {
        text-align: justify;
        word-break: keep-all;
        /* 줄 바꿈 시 단어 분리 방지 (한글에 유리) */
    }
}

.introduction-img {
    position: relative;
    flex: 1 1 400px;
    max-width: 600px;
    overflow: hidden;
}

/* mountain 이미지: 페이드 인 */
.introduction-bus-bg {
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in;
    display: block;
}

/* bus 이미지: 오른쪽에서 슬라이드 + 흔들림 */
.introduction-bus-img {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 80%;
    height: auto;
    opacity: 0;
    transform: translateX(100px) scale(0.6);
    transition: all 1s ease-out 0.5s;
}

/* 활성화 클래스 추가 시 */
.introduction-bus-bg.active {
    opacity: 1;
}

.introduction-bus-img.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: busShake 0.6s ease-in-out 1.2s 2;
}

@keyframes busShake {
    0% {
        transform: translateX(0) scale(1);
    }

    25% {
        transform: translateX(-5px) scale(1);
    }

    50% {
        transform: translateX(5px) scale(1);
    }

    75% {
        transform: translateX(-3px) scale(1);
    }

    100% {
        transform: translateX(0) scale(1);
    }
}


/* 📱 반응형 모바일 대응 */
@media (max-width: 768px) {
    .introduction-warp {
        flex-direction: column;
        padding: 20px 10px;
    }

    .introduction-img {
        max-width: 100%;
        margin-top: 3rem;
    }

    .introduction-bus-img {
        max-width: 90%;
        right: 5%;
    }
}

/* 전국적 네트워크 지도 시작 */
.introduction-korea-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
}

.introduction-korea-wrap .map {
    position: relative;
    width: 500px;
}

.korea_map {
    width: 100%;
}

.marker-seoul {
    position: absolute;
    top: 19%;
    left: 36%;
}

.marker-incheon {
    position: absolute;
    top: 10%;
    left: 25%;
}

.marker-daegu {
    position: absolute;
    top: 55%;
    left: 67%;
}

.marker-ulsan {
    position: absolute;
    top: 60%;
    left: 86%;
}

.marker-busan {
    position: absolute;
    top: 66%;
    left: 78%;
}

.marker-daejeon {
    position: absolute;
    top: 46%;
    left: 45%;
}

.marker-gyeonggi {
    position: absolute;
    top: 12%;
    left: 31%;
}

.marker-gangwon {
    position: absolute;
    top: 11%;
    left: 62%;
}

.marker-chungbuk {
    position: absolute;
    top: 38%;
    left: 44%;
}

.marker-chungnam {
    position: absolute;
    top: 38%;
    left: 25%;
}

.marker-gyeongbuk {
    position: absolute;
    top: 39%;
    left: 74%;
}

.marker-gyeongnam {
    position: absolute;
    top: 63%;
    left: 53%;
}

.marker-jeollabuk {
    position: absolute;
    top: 57%;
    left: 27%;
}

.marker-jeollanam {
    position: absolute;
    top: 72%;
    left: 26%;
}


.marker {
    position: absolute;
    cursor: pointer;
    z-index: 2;
}

.marker::after {
    content: attr(data-name);
    position: absolute;
    top: 100%;
    /* 마커 이미지 바로 아래 */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    background-color: #92C938;
    color: #fff;
    font-size: 1.5rem;
    padding: 3px 17px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;

    display: none;
}

.marker-active::after {
    display: block;
}

.marker-active {
    z-index: 10;
}

.bus-img-wrap {
    padding-left: 0;
    width: 590px;
}

.bus-img-wrap li {
    margin-bottom: 15px;
    width: 590px;
}

.bus-img-wrap li img {
    width: 100%;
}

/* 📱 반응형 모바일 대응 */
@media (max-width: 768px) {
    .introduction-korea-wrap {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .introduction-korea-wrap .map {
        width: 90%;
    }

    .marker::after {
        font-size: 1rem;
        padding: 3px 10px;
    }
}
/* Modal base */
.bus-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
  }
  .bus-modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
  }
  .bus-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    top: 50%; transform: translateY(-50%);
    padding: 1rem;
    border-radius: 8px;
    overflow-y: auto;
    background: rgb(78 78 78 / 50%);
  }
  .bus-modal-close {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    background: none;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  /* Modal 내부 이미지 리스트 */
  .bus-img-wrap.modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
  }
  .bus-img-wrap.modal li {
    width: 100%;
    margin-bottom: 1rem;
  }
  .bus-img-wrap.modal li:last-child {
    margin-bottom: 0;
  }
  
/* 모바일에서 데스크탑용 이미지 랩 숨기기 */
@media (max-width: 768px) {
    .bus-img-wrap:not(.modal) {
      display: none !important;
    }
  }
  
  /* 데스크탑에서 모달용 이미지 랩 숨기기 */
  @media (min-width: 769px) {
    .bus-img-wrap.modal {
      display: none !important;
    }
  }
/* 전국적 네트워크 지도 끝 */




/* 연혁 시작 */
.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 150px;
    padding: 0;
}

.timeline-item {
    position: relative;
    padding: 0 20px 0;
    width: 50%;
    box-sizing: border-box;
}

.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background: #fff;
    padding: 15px 15px 30px;
    position: relative;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #77b917;
    font-size: 1.8rem;
    font-weight: bold;
}

.timeline-left .timeline-content h3::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -27px;
    width: 15px;
    height: 15px;
    background-color: #77b917;
    border-radius: 8px;
}

.timeline-right .timeline-content h3::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -27px;
    width: 15px;
    height: 15px;
    background-color: #77b917;
    border-radius: 8px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.timeline-content ul li {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #333;
}

/* Central Line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    border-left: 1px dashed #B8B8B8;
    z-index: -1;
}

@media (max-width: 768px) {
    .timeline-container {
        margin: 50px auto;
        padding-left: 20px;
    }

    .timeline-container::before {
        left: 32px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        box-sizing: border-box;
    }

    .timeline-left,
    .timeline-right {
        left: 0;
        text-align: left;
    }

    .timeline-content {
        padding: 10px 10px 25px 20px;
    }

    .timeline-left .timeline-content h3::before,
    .timeline-right .timeline-content h3::before {
        left: -25px;
        right: auto;
    }
}
/* 연혁 끝 */