/* 보험 상담 배너 (includes/insurance_banner.php) */

.ib-wrap {
  display: block;
}
.ib-home_after_search {
  margin-top: 3rem;
}

/* 열차 목록(ul) 안에 들어갈 때는 열차 카드 모양을 지운다 */
.common_list_wrap ul li.ib-wrap {
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: default;
  margin: .6rem 0;
}

.ib {
  position: relative;
}
.ib-viewport {
  overflow: hidden;
  border-radius: 1.2rem;
}
.ib-track {
  display: flex;
  align-items: stretch;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.ib-track.ib-no-anim {
  transition: none;
}

.ib-slide {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 11rem;
  padding: 1.6rem;
  border-radius: 1.2rem;
  -webkit-tap-highlight-color: transparent;
}

.ib-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #fff;
}
.ib-icon svg {
  width: 2.4rem;
  height: 2.4rem;
}

.ib-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ib-title {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 2.2rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.ib-desc {
  display: block;
  font-size: 1.3rem;
  line-height: 1.9rem;
  margin-top: .4rem;
  color: #5f5b5b;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.ib-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1.2rem;
  padding: .8rem 1rem .8rem 1.4rem;
  border-radius: 10rem;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.ib-cta svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* 운전자보험 : 파란색 */
.ib-driver { background: #EAF1FE; }
.ib-driver .ib-icon { color: #2F6BE0; }
.ib-driver .ib-title { color: #1A3E8C; }
.ib-driver .ib-cta { background: #2F6BE0; }
.ib-driver .ib-cta svg { stroke: #fff; }

/* 건강보험 : 초록색 */
.ib-health { background: #E6F5EB; }
.ib-health .ib-icon { color: #1F8A4C; }
.ib-health .ib-title { color: #155C35; }
.ib-health .ib-cta { background: #1F8A4C; }
.ib-health .ib-cta svg { stroke: #fff; }

/* 실비보험 : 보라색 */
.ib-silbi { background: #F0EDFD; }
.ib-silbi .ib-icon { color: #6A4FD6; }
.ib-silbi .ib-title { color: #3D2A8F; }
.ib-silbi .ib-cta { background: #6A4FD6; }
.ib-silbi .ib-cta svg { stroke: #fff; }

/* 몇 번째 배너인지 */
.ib-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .8rem;
}
.ib-dot {
  width: .6rem;
  height: .6rem;
  border-radius: .3rem;
  background: #D9D5D2;
  transition: width .3s, background .3s;
}
.ib-dot.on {
  width: 1.6rem;
  background: #A9A4A1;
}

/* 좁은 화면에서는 아이콘을 빼고 글자에 자리를 준다 */
@media (max-width: 359px) {
  .ib-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ib-track { transition: none; }
}
