.tm-dynamic-mega {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 28px;
  display: grid;
  grid-template-columns: 310px 390px minmax(300px, 1fr) 330px;
  gap: 0;
  background: #fff;
  box-sizing: border-box;
  min-height: 430px;
}

.tm-dynamic-mega *,
.tm-dynamic-mega *::before,
.tm-dynamic-mega *::after { box-sizing: border-box; }

.tm-dynamic-mega__col { min-width: 0; }

.tm-dynamic-mega__col--lv1 {
  padding-right: 18px;
  border-right: 1px solid #e5e7eb;
}

.tm-dynamic-mega__col--lv2 {
  padding: 0 0 0 18px;
  border-right: 1px solid #eef0f3;
}

.tm-dynamic-mega__col--detail {
  padding: 0 22px;
  border-right: 1px solid #eef0f3;
}

.tm-dynamic-mega__col--image {
  padding-left: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tm-lv1 {
  appearance: none;
  border: 0 !important;
  width: 100%;
  background: #fff;
  color: #2f3337;
  display: grid !important;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px !important;
  min-height: 68px;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
  font: inherit;
  border-radius: 0;
}

.tm-lv1:hover,
.tm-lv1.is-active {
  color: #ed1c24;
  background: transparent !important;
  background-color: transparent !important;
}

.tm-lv1__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ed1c24;
  font-size: 22px;
  opacity: .85;
}

.tm-lv1__text strong {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.tm-lv1__text small {
  display: block;
  margin-top: 3px;
  color: #8a8f98;
  font-size: 12px;
  line-height: 1.35;
}

.tm-lv1__arrow { color: currentColor; opacity: .65; text-align: right; }

.tm-lv2-group,
.tm-detail-panel,
.tm-image-panel { display: none; }

.tm-lv2-group.is-active,
.tm-detail-panel.is-active,
.tm-image-panel.is-active { display: block; }

.tm-lv2-group h3 {
  margin: 0 0 16px;
  padding: 16px 18px;
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
  background: #ed1c24;
  font-weight: 700;
}

.tm-lv2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  min-height: 50px;
  color: #5e646b;
  background: #fff;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
  border-bottom: 1px solid transparent;
}

.tm-lv2:hover,
.tm-lv2.is-active {
  background: #f5f6f8;
  color: #ed1c24;
}

.tm-detail-panel h4 {
  margin: 0 0 15px;
  color: #5e646b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.tm-lv3 {
  display: block;
  padding: 12px 0;
  color: #636a72;
  text-decoration: none;
  line-height: 1.45;
}

.tm-lv3:hover { color: #ed1c24; }

.tm-image-panel {
  width: 100%;
  max-width: 270px;
  color: #222;
  text-decoration: none;
  text-align: center;
}

.tm-image-panel img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f2f3f5;
}

.tm-image-panel strong {
  display: block;
  margin: 18px auto 0;
  padding: 13px 18px 0;
  font-size: 16px;
  line-height: 1.35;
  color: #222;
  background: #fff;
}

.tm-image-panel span {
  display: block;
  margin: 8px auto 0;
  padding: 0 16px 14px;
  color: #8a8f98;
  font-size: 13px;
  line-height: 1.55;
  background: #fff;
}

@media (max-width: 1200px) {
  .tm-dynamic-mega {
    grid-template-columns: 270px 320px 1fr 270px;
    padding: 24px;
  }
}

@media (max-width: 1024px) {
  .tm-dynamic-mega {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .tm-dynamic-mega__col--lv1,
  .tm-dynamic-mega__col--lv2,
  .tm-dynamic-mega__col--detail {
    border-right: 0;
    padding: 0;
  }
  .tm-dynamic-mega__col--image { padding-left: 0; justify-content: flex-start; }
}

.tm-lv3.is-active {
  color: #ed1c24;
  font-weight: 700;
}
