@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

.cesm-news-movement-page {
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #fff;
}

.cesm-news-movement-background {
  background: url('../images/1.jpg') no-repeat center center;
  background-size: cover;
  padding: 40px 0;
  box-sizing: border-box;
}

.cesm-news-movement-section {
  width: 100%;
  max-width: none;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
  color: #fff;
  position: relative;
}

.cesm-news-movement-section h2 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.05cm;
}

.cesm-news-movement-section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #a68dff;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.cesm-news-movement-section h2 a {
  font-weight: 400;
  font-size: 18px;
  color: #d1c5ff;
  margin-left: 10px;
  text-decoration: none;
  border-left: 1px solid #d1c5ff;
  padding-left: 12px;
  transition: color 0.3s ease;
}

.cesm-news-movement-section h2 a:hover {
  color: #fff;
}

.cesm-news-movement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 20px;
  box-sizing: border-box;
  overflow-x: visible;
}

.cesm-news-movement-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #222;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; 
  height: 100%;
}

.cesm-news-movement-card:hover {
  box-shadow: 0 15px 30px rgb(0 0 0 / 0.25);
  transform: translateY(-5px);
}

.cesm-news-movement-card img {
  width: calc(100% - 30px);
  height: 200px;
  object-fit: cover;
  margin: 10px 15px 0;
  display: block;
  transition: transform 0.3s ease;
}

.cesm-news-movement-card:hover img {
  transform: scale(1.05);
}

.cesm-category-tag {
  background-color: #ecb638;
  color: #422d00;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin: 12px 15px 0;
  max-width: max-content;
  box-shadow: 0 3px 6px rgb(236 182 56 / 0.5);
}

.cesm-news-content {
  flex-grow: 1;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}

.cesm-date {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.cesm-news-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.cesm-news-summary {
  font-size: 15px;
  color: #444;
  flex-grow: 1;
  margin-bottom: 10px;
  line-height: 1.4;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.cesm-read-more {
  display: none;
}

.cesm-count-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #7b52c0;
  color: white;
  font-weight: 700;
  font-size: 20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgb(123 82 192 / 0.6);
}

.cesm-views, .cesm-counts {
  display: none;
}

@media (max-width: 480px) {
  .cesm-news-movement-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  .cesm-news-movement-card img {
    height: 150px;
  }
  .cesm-news-title {
    font-size: 18px;
  }
  .cesm-news-summary {
    font-size: 14px;
  }
  .cesm-count-box {
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 32px;
    bottom: 15px;
    left: 15px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .cesm-news-movement-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 15px;
  }
  .cesm-news-movement-card img {
    height: 180px;
  }
  .cesm-news-title {
    font-size: 19px;
  }
  .cesm-news-summary {
    font-size: 15px;
  }
}

@media (min-width: 769px) {
  .cesm-news-movement-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
  .cesm-news-movement-card img {
    height: 200px;
  }
  .cesm-news-title {
    font-size: 20px;
  }
  .cesm-news-summary {
    font-size: 15px;
  }
}
