/* ------------------------------------------ */
:root {
  --maxWidth: 1400px;
}

.middle {
  margin-top: 50px;
}

.middle > .loading {
  z-index: var(--zindex0);
}

.blog-text {
  width: 90%;
  margin: 0 auto;
  max-width: var(--maxWidth);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blog-text-img {
  min-width: 320px;
  margin: 0 auto;
  width: 40%;
  background-color: #d8d8d8;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 340px;
  aspect-ratio: 560 / 340;
}

.blog-text-img img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.blog-text-img img:hover {
  cursor: pointer;
}

.blog-text-right {
  width: 54%;
  min-width: 350px;
  max-height: 340px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-around;
}

.blog-text-right a {
  font-family: "Mukta ExtraBold";
  font-weight: 800;
  font-size: 34px;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 25px;
  user-select: none;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-text-right a:hover {
  cursor: pointer;
  text-decoration: underline;
}

.blog-text-right p {
  font-family: "MuktaRegular";
  font-weight: 400;
  font-size: 20px;
  color: #130f35;
  line-height: 30px;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.blog-text-right .tag {
  margin: auto 0;
  margin-bottom: 10px;
}

.blog-text-right .tag > * {
  border-radius: 8px;
  border: 1px solid #bdc2d1;
  font-family: "MuktaRegular";
  font-weight: 400;
  font-size: 17px;
  color: #868595;
  padding: 0px 12px;
  margin: 5px 0;
  margin-right: 20px;
  display: inline-block;
  cursor: pointer;
}

.blog-text-right .tag > *:hover {
  color: #ffa51d;
  border: 1px solid #ffa51d;
}

.blog-text-right .time {
  font-family: "RobotoMedium";
  font-weight: 500;
  font-size: 14px;
  color: #868595;
  line-height: 21px;
  z-index: var(--z-index-background);
}

/* ------------------------------------------ key-and-search ↓------------------------------------------ */
.key-and-search {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  max-width: var(--maxWidth);
  --searchInputWidth: 25%;
}

.key-word-nav {
  width: calc(100% - var(--searchInputWidth) - 90px);
  max-width: var(--maxWidth);
  display: flex;
  flex-wrap: wrap;
}

.key-word-nav > * {
  font-family: "MuktaRegular";
  font-weight: 400;
  font-size: 17px;
  margin-right: 15px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #c4c8d6;
  padding: 0 12px;
  margin-bottom: 15px;
  color: #868595;
  white-space: nowrap;
}

.key-word-nav > *:hover,
.key-word-nav > *.active {
  color: #ff9e00;
  border: 1px solid #ff9e00;
}

/* ------------------------------------------key-and-search ↑------------------------------------------ */
/* ------------------------------------------ search_input_box ↓------------------------------------------ */
.search_input_box {
  position: relative;
  width: var(--searchInputWidth);
  height: 42px;
  max-width: 865px;
  box-sizing: border-box;
  padding: 0 30px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid #bdc3d6;
  background-color: white;
  box-shadow: 0px 2px 23px 0px rgba(17, 50, 83, 0.1);
}

.search_input_box:focus-within {
  border: 1px solid transparent;
}

.search_input_box .search_magnifier {
  margin-right: 20px;
  display: inline-block;
}

.search_input_box .search_magnifier.select {
  display: none;
}

.search_input_box:focus-within .search_magnifier.select {
  display: inline-block;
}

.search_input_box:focus-within .search_magnifier {
  display: none;
}

.search_input_box .search_input {
  flex-grow: 1;
  height: 100%;
  box-sizing: border-box;
  outline: none;
  border: none;
  font-weight: 400;
  font-size: 18px;
  color: #000000;
  max-width: calc(100% - 60px);
}

.search_input_box .search_input::placeholder {
  font-weight: 400;
  font-size: 18px;
  color: #868595;
}

.search_input_box .search_close {
  cursor: pointer;
  display: none;
}

.search_result {
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: 0px 2px 23px 0px rgba(17, 50, 83, 0.2);
  border-radius: 7px;
  left: 0;
  transform: translateY(100%) scaleY(0);
  z-index: var(--zindex0);
  text-align: initial;
  padding: 20px 19px;
  bottom: -20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-origin: center top;
}

.search_result.open {
  transform: translateY(100%) scaleY(1);
}

.search_result .search_result_cell {
  margin-bottom: 10px;
  cursor: pointer;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search_result .search_result_cell:last-of-type {
  margin-bottom: 0;
}

.search_result .search_result_cell:hover {
  color: #ff9c00;
}

.search_result .no-data {
  text-align: center;
  color: #868595;
}

/* ------------------------------------------ search_input_box ↑------------------------------------------ */
.more-blog {
  margin: 0 auto;
  width: 90%;
  max-width: var(--maxWidth);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

.more-blog .no-data {
  padding: 10px 0;
  text-align: center;
  color: #868595;
  width: 100%;
  font-size: 20px;
  min-height: 30vh;
  line-height: 30vh;
}

.more-blog .more-blog-text {
  margin: unset;
  width: 46%;
  margin-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-width: 300px;
}

.more-blog-text-img {
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 250px;
  aspect-ratio: 250 / 180;
}

.more-blog-text-img img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.more-blog-text-img img:hover {
  cursor: pointer;
}

.more-blog-text-right {
  width: calc(100% - 250px - 30px);
  min-width: 300px;
  max-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.more-blog a {
  font-family: "MuktaExtraBold";
  font-weight: 800;
  font-size: 24px;
  color: #000000;
  line-height: 28px;
  user-select: none;
  margin-bottom: 14px;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.more-blog a:hover {
  cursor: pointer;
  text-decoration: underline;
}

.more-blog p {
  font-family: "MuktaRegular";
  font-weight: 400;
  font-size: 16px;
  color: #130f35;
  line-height: 22px;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

.more-blog .tag-time {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: auto 0;
  margin-bottom: 0;
}

.more-blog .tag-time > div {
  max-height: 24px;
  overflow: hidden;
}

.more-blog .tag {
  padding: 0px 10px;
  margin-right: 10px;
  display: inline-block;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #c4c8d6;
  font-family: "MuktaRegular";
  font-weight: 400;
  font-size: 14px;
  color: #868595;
  overflow: hidden;
  cursor: pointer;
}

.more-blog .tag:hover {
  color: #ff9c00;
  border: 1px solid #ff9c00;
}

.more-blog .time {
  font-family: "Roboto Medium";
  font-weight: 500;
  font-size: 12px;
  color: #868595;
  line-height: 14px;
  white-space: nowrap;
  transform: translateY(-25%);
  z-index: var(--z-index-background);
}

/* ------------------------------------------------------ */
.footer-page {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 50px;
  margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
  .middle {
    margin-top: 20px;
  }

  .middle h1 {
    font-size: 40px;
    margin: 20px 0;
  }

  /* ----------- */
  .blog-text-img {
    width: 100%;
    max-width: unset;
    max-height: unset;
    margin-bottom: 15px;
  }

  .blog-text-right {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }

  .blog-text-right p {
    margin-bottom: 15px;
  }

  .blog-text-right .tag {
    margin-bottom: 6px;
  }

  .blog-text-right .time {
    margin-bottom: 10px;
  }

  /* ----------- */
  .more-blog .more-blog-text {
    width: 100%;
  }

  .more-blog-text-img {
    margin: auto;
    width: 100%;
    max-height: unset;
    margin-bottom: 15px;
    aspect-ratio: unset;
    max-width: unset;
  }

  .more-blog-text-right {
    width: 100%;
  }

  .key-word-nav {
    min-width: 100%;
    flex-wrap: nowrap;
    overflow: auto hidden;
    height: 40px;
  }

  .key-word-nav > * {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .search_input_box {
    order: -1;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 15px;
  }
}
