.transit-section {
  max-width: 1640px;
  margin: 0 auto;
  background: #fff;
}

/* 타이틀 */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 30px 40px 30px;
  padding: 70px 45px 0 45px;
}
.page-title img {
  width: 34px; height: 34px; display: block;
}
.page-title h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #232241;
  margin: 0;
}

/* 1. 2행 2열 그리드 레이아웃 */
.transit-grid {
  display: grid;
  max-width: 1640px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  gap: 30px 30px;
  padding: 0px 75px 60px 75px;
}

/* 2. 카드 스타일 */
.transit-card {
  background: #fff;
  border-radius: 18px;
  /* box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04); */
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  transition: box-shadow 0.2s;
}
.transit-card:hover {
  /* box-shadow: 0 8px 28px 0 rgba(100,90,180,0.09); */
  box-shadow: 0 8px 28px 0 rgba(100,90,180,0.15);
}

/* 3. 카드 타이틀 */
.transit-card-title {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transit-card-title h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3d2363;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* 4. 카드 이미지+내용 1행2열 */
.card-img-content {
  display: flex;
  flex-direction: row;
  /* align-items: center; */
  gap: 20px;
  min-height: 220px;
  height: 190px;
  box-sizing: border-box;
  margin: 20px;
}

.card-content {
  flex: 1 1 0;
  margin-top: 0;
  margin-bottom: 0;
  text-align: left;
  color: #353a42;
  font-size: 1.11rem;
  line-height: 1.7;
}
.card-content p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.11rem;
  line-height: 1.7;
}
.card-real-time-info {
    color: #3f51b5; 
    display: block; /* 줄바꿈을 위해 block 요소로 만듭니다. */
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 10px;
}

/* 5. fade 효과 이미지 공통 */
.image-box {
  width: 300px;
  /* height: 227px; */
  border-radius: 13px;
  overflow: hidden;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: container;
  border-radius: 13px;
  display: block;
}
.image-box img.active {
  display: block;
  opacity: 1;
}
.image-box.fade-effect img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: fill;
  display: block;
}

/* 버튼 중앙정렬 */
.transit-card .btn.btn-large.btn_w110 {
  margin: 20px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
}
.btn.btn-large.btn_w110:hover {
  background: #018ac1;
}
.btn.btn-large.btn_w110 img {
  width: 28px; height: 28px; /* margin-right: 5px; */
}
/* 비활성화 버튼 스타일 */
.btn.btn-large.btn_w110.disabled {
    background-color: #add6f6;
    cursor: not-allowed;
}

/* 호버 효과 제거 */
.btn.btn-large.btn_w110.disabled:hover {
    background: #e0e0e0; /* 비활성화 상태에서는 호버 색상도 동일하게 */
}

/* 테이블 */
.mini-rate-table caption {
    /* 왼쪽 정렬 */
    text-align: left;
    /* 캡션과 테이블 사이의 간격. */
    margin-bottom: 5px;
    /* 캡션 텍스트에 약간의 여백. */
    /* padding-left: 5px; */
    /* 글씨를 굵게 하여 제목임을 강조. */
    font-weight: 400;
}
.mini-rate-table {
  width: 100%;
  border-collapse: collapse;
  /* margin: 8px 0 16px 0; */
  font-size: 0.9rem;
}
.mini-rate-table th, .mini-rate-table td {
  border: 1px solid #e5e0e9;
  padding: 0px 0px;
  text-align: center;
  font-weight: 400;
}
.mini-rate-table th {
  background: #f4eefd;
  color: #7f47c5;
}
.card-img-content .mini-rate-table {
  margin-top: 15px;
  margin-bottom: 0;
}

/* 반응형: 900px 이하 */
@media (max-width: 900px) {
  .card-img-content {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 8px;
    height: auto;
    min-height: unset;
  }
  .card-img-content .image-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 160px;
  }
}
