﻿.news_list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 50px;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.image-grid img {
  height: 200px !important;
}
.custom-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.custom-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.custom-col {
  flex: 1;
}

.custom-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.news_item {
  width: calc(100%/4 - 15px);
  margin: 0;
}
.news_item:nth-child(4n) {
  margin-right: 0;
}
.news_item a {
  display: block;
  height: 100%;
  border: 1px solid #dedede;
  border-radius: 15px;
  background: white;
  text-decoration: none;
  color: #666;
  transition: all 0.3s;
}
.news_itm_img {
  margin: 0;
  position: relative;
}
.news_itm_main {
  padding: 30px 30px 10px;
}
.hotJob {
  background-color: var(--mcolor);
  color: white;
  padding: 10px 15px;
  /* border-radius: 5px;     */
  margin: 0 auto;
  width: 50%;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
}
.news_itm_img .date {
  position: absolute;
  width: 110px;
  left: 0;
  background: #486fb6;
  font-size: 14px;
  color: #fff;
  text-align: center;
  bottom: 10px;
  padding: 4px;
}
.slick-track{
  display: flex;
  gap: 10px !important;
}
.news_itm_ttl {
  height: 40px;
  color: #000;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.3em;
  margin: 30px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
}
.news_itm_dt{
  display:  grid;
  grid-template-columns: repeat(2, 1fr);
}
.news_itm_dt p{
  display: flex;
  align-items: center;
  gap: 10px;
}
.news_itm_txt {
  display: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 15px;
  text-align: justify;
}
.news_itm_more {
  display: none;
  margin: 0;
  font-size: 14px;
  color: #486fb6;
  text-decoration: underline;
}
.news_itm_img img {
  width: 100%;
}
.news_item a:hover {
  transform: translateY(-10px);
}

@media screen and (max-width:768px) {
    .news_list {
        justify-content: space-between;
    }
    .news_item {
        width: 100%;
        margin: 0 0 20px;
    }
    .custom-item {
      flex-direction: column;
    }
    .news_item a {
        display: flex;
    }
    .news_itm_img {
        flex-shrink: 0;
        width: 40%;
    }
    .news_itm_main {
        width: 100%;
        padding: 30px 15px;
    }

    .image-grid{
      grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width:480px) {
    .news_itm_img {
        width: 45%;
    }
    .news_itm_main {
        padding: 10px;
    }
    .news_itm_img img {
       
        height: 100%;
        object-fit: cover;
    }
    .news_itm_ttl {
        line-height: 1.4em;
        font-size: 14px;
    }
}
